FHEM Sprachsteuerung mit AMAD 2.6 und AutoVoice/Automagic

Begonnen von CoolTux, 11 August 2016, 14:15:31

Vorheriges Thema - Nächstes Thema

CoolTux

Jetzt weiß ich was Du meinst. Natürlich kannst als Condition auch die Variable room nach einem Namen abfragen. Die Variable wird ja im Skript entsprechend zugeordnet.

room == "Garten"

Direkt unterhalb der anderen Condition



Grüße
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Tueftler1983

Ah okay hatte die "" nicht gesetzt deshalb hat es wohl nicht funktioniert.

grappa24

Hallo zusammen,

hatte AMAD schon länger im Einsatz, jetzt hab ich mir AutoVoice dazu geholt, um die Sprachsteuerung für FHEM zu testen.

Im flow "Licht, Steckdosen, ..." hab ich mal testweise eines meiner device eingetragen (unter licht->wohnzimmer->esstisch).

Autovoice springt auch an, dann kommt von AMAD aber die Fehlermeldung "Kein Flow matched Pattern 'Send Data to AMADCommBridge'".

Habt Ihr einen Ansatzpunkt für mich?

P.S. Welche Rolle spielt der Eintrag im flow "fhemalias"? Muss der mit einem realen Device synchron sein?

Gruß, Dieter
Gebäudesicherheit/-komfort, PV-Prognose/Verbrauchssteuerung, Heizungssteuerung, Multimedia, ...
KNX, FS20, HM, HUE, Tradfri, Shellies, KLF200, Netatmo, Nuki, SolarForecast, HEOS, Alexa-FHEM, ...
FHEM 6.4, 2 x RasPi 3B+, Debian Bullseye

CoolTux

Hallo Dieter,

Du kannst fhemalias auch raus löschen. Mir ging es dabei nur darum das am Ende noch mal eine vernünftige Durchsage kommt.

Was ich nicht verstehe, Automagic matched nicht? Heißt für mich der Flow springt nicht an?
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

grappa24

ja, der flow spring wohl nicht an. Ich häng mal das LOG von automagic an, kann da aber nix erkennen ...2017 22:28:04.379 [Informations] Start executing condition 'Expression: getAndroidSDKVersion() >= "19"'
19.05.2017 22:28:04.379 [Informations] Action 'Flowsetversion' customHTTPHeaders = FHEMDEVICE: Dieter_Galaxy_S7
FHEMCMD: setreading
19.05.2017 22:28:04.380 [Informations] Start executing action 'Script: connected_devices_names = "null"; connected_devices_addresses = "null"'
19.05.2017 22:28:04.381 [Informations] End executing action 'Script: setCommandFlow_state = "aktiv"'
19.05.2017 22:28:04.381 [Informations] End executing condition 'Expression: getAndroidSDKVersion() >= "19"' with return value true
19.05.2017 22:28:04.381 [Informations] End executing condition 'Expression: getAndroidSDKVersion() >= "19"' with return value true
19.05.2017 22:28:04.382 [Informations] End executing action 'Script: connected_devices_names = "null"; connected_devices_addresses = "null"'
19.05.2017 22:28:04.522 [Informations] Action 'Flowsetversion' URL data fetched successfully.
19.05.2017 22:28:04.537 [Informations] End executing action 'Flowsetversion'
19.05.2017 22:28:04.582 [Informations] Flow continues executing with the next step.
19.05.2017 22:28:04.582 [Informations] Start executing action 'Flow Status SetCommands'
19.05.2017 22:28:04.582 [Informations] Action 'Flow Status SetCommands' url = http://192.168.178.32:8090
19.05.2017 22:28:04.582 [Informations] Action 'Flow Status SetCommands' contentType = text/plain
19.05.2017 22:28:04.582 [Informations] Action 'Flow Status SetCommands' generalTextData = flow_SetCommands@@aktiv@@@@
19.05.2017 22:28:04.583 [Informations] Action 'Flow Status SetCommands' variable = response
19.05.2017 22:28:04.583 [Informations] Start executing action 'Bluetooth Device Status'
19.05.2017 22:28:04.583 [Informations] Action 'Bluetooth Device Status' url = http://192.168.178.32:8090
19.05.2017 22:28:04.583 [Informations] Action 'Bluetooth Device Status' contentType = text/plain
19.05.2017 22:28:04.583 [Informations] Action 'Bluetooth Device Status' generalTextData = connectedBTdevices@@null@@@@connectedBTdevicesMAC@@null@@@@
19.05.2017 22:28:04.583 [Informations] Action 'Bluetooth Device Status' variable = response
19.05.2017 22:28:04.584 [Informations] Start executing condition 'Benachrichtigung in Statusbar angezeigt: Automagic'
19.05.2017 22:28:04.584 [Informations] Action 'Flow Status SetCommands' customHTTPHeaders = FHEMDEVICE: Dieter_Galaxy_S7
FHEMCMD: setreading
19.05.2017 22:28:04.586 [Informations] Action 'Bluetooth Device Status' customHTTPHeaders = FHEMDEVICE: Dieter_Galaxy_S7
FHEMCMD: setreading
19.05.2017 22:28:04.588 [Informations] End executing condition 'Benachrichtigung in Statusbar angezeigt: Automagic' with return value true
19.05.2017 22:28:04.588 [Informations] Start executing condition 'App Task läuft: {global_activetask} (neuster)'
19.05.2017 22:28:04.631 [Informations] End executing condition 'App Task läuft: {global_activetask} (neuster)' with return value false
19.05.2017 22:28:04.867 [Informations] Action 'Flow Status SetCommands' URL data fetched successfully.
19.05.2017 22:28:04.867 [Informations] End executing action 'Flow Status SetCommands'
19.05.2017 22:28:05.005 [Informations] Action 'Bluetooth Device Status' URL data fetched successfully.
19.05.2017 22:28:05.007 [Informations] End executing action 'Bluetooth Device Status'
19.05.2017 22:28:05.008 [Informations] Flow continues executing with the next step.
19.05.2017 22:28:05.008 [Informations] Start executing action 'Automagic State'
19.05.2017 22:28:05.009 [Informations] Action 'Automagic State' url = http://192.168.178.32:8090
19.05.2017 22:28:05.010 [Informations] Action 'Automagic State' contentType = text/plain
19.05.2017 22:28:05.010 [Informations] Action 'Automagic State' generalTextData = automagicState@@Flow Licht und Steckdosen schalten per Sprache mit Fehler beendet
Fehler: Kein Flow matched Pattern 'Send Data to AMADCommBridge'

Last executed: Action Flows ausführen: Send Data to AMADCommBridge mit warten
@@@@
19.05.2017 22:28:05.011 [Informations] Action 'Automagic State' variable = response
19.05.2017 22:28:05.012 [Informations] Start executing action 'Script: runTask = "0"'
19.05.2017 22:28:05.015 [Informations] Action 'Automagic State' customHTTPHeaders = FHEMDEVICE: Dieter_Galaxy_S7
FHEMCMD: setreading
19.05.2017 22:28:05.017 [Informations] End executing action 'Script: runTask = "0"'
19.05.2017 22:28:05.156 [Informations] Action 'Automagic State' URL data fetched successfully.
19.05.2017 22:28:05.158 [Informations] End executing action 'Automagic State'
19.05.2017 22:28:05.264 [Informations] Flow continues executing with the next step.
19.05.2017 22:28:05.264 [Informations] Start executing action 'Check run Task'
19.05.2017 22:28:05.264 [Informations] Action 'Check run Task' url = http://192.168.178.32:8090
19.05.2017 22:28:05.265 [Informations] Action 'Check run Task' contentType = text/plain
19.05.2017 22:28:05.265 [Informations] Action 'Check run Task' generalTextData = checkActiveTask@@0@@@@
19.05.2017 22:28:05.265 [Informations] Action 'Check run Task' variable = response
19.05.2017 22:28:05.268 [Informations] Action 'Check run Task' customHTTPHeaders = FHEMDEVICE: Dieter_Galaxy_S7
FHEMCMD: setreading
19.05.2017 22:28:05.408 [Informations] Action 'Check run T
Gebäudesicherheit/-komfort, PV-Prognose/Verbrauchssteuerung, Heizungssteuerung, Multimedia, ...
KNX, FS20, HM, HUE, Tradfri, Shellies, KLF200, Netatmo, Nuki, SolarForecast, HEOS, Alexa-FHEM, ...
FHEM 6.4, 2 x RasPi 3B+, Debian Bullseye

grappa24

Flow springt doch an. Es kommt die Ansage: "Der aktuelle Status des Sprachbefehls könnte nicht festgestellt werden.hier noch ein LOG20.05.2017 08:19:06.386 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' url = http://192.168.178.32:8090
20.05.2017 08:19:06.386 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' contentType = text/plain
20.05.2017 08:19:06.386 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' generalTextData = flowsetVersionAtDevice@@2.6.10@@@@flow_informations@@aktiv@@@@
20.05.2017 08:19:06.386 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' variable = response
20.05.2017 08:19:06.389 [Send Data to AMADCommBridge] End executing condition 'Expression: fhemcmd == "voiceinputvalue"' with return value false
20.05.2017 08:19:06.390 [Send Data to AMADCommBridge] End executing condition 'Host erreichbar: {global_fhemip}:{global_bridgeport}' with return value true
20.05.2017 08:19:06.390 [Send Data to AMADCommBridge] Flow continues executing with the next step.
20.05.2017 08:19:06.390 [Send Data to AMADCommBridge] Start executing action 'Script: Set FHEMDATA'
20.05.2017 08:19:06.391 [Send Data to AMADCommBridge] Flow continues executing with the next step.
20.05.2017 08:19:06.391 [Send Data to AMADCommBridge] Start executing condition 'Expression: fhemcmd == "setreading"'
20.05.2017 08:19:06.392 [Send Data to AMADCommBridge] Start executing condition 'Expression: fhemcmd == "set"'
20.05.2017 08:19:06.393 [Send Data to AMADCommBridge] Start executing condition 'Expression: fhemcmd == "readingsval"'
20.05.2017 08:19:06.393 [Send Data to AMADCommBridge] Start executing condition 'Expression: fhemcmd == "voiceinputvalue"'
20.05.2017 08:19:06.395 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' customHTTPHeaders = FHEMDEVICE: Dieter_Galaxy_S7
FHEMCMD: setreading
Connection: close
20.05.2017 08:19:06.396 [Informations] End executing action 'Script: runTask = "0"'
20.05.2017 08:19:06.396 [Informations] Flow continues executing with the next step.
20.05.2017 08:19:06.396 [Informations] Start executing action 'Script: checkActiveTask = "checkActiveTask@@" + {runTask}; fhemcmd = "setreading";'
20.05.2017 08:19:06.411 [Send Data to AMADCommBridge] End executing action 'Script: Set FHEMDATA'
20.05.2017 08:19:06.411 [Send Data to AMADCommBridge] Flow continues executing with the next step.
20.05.2017 08:19:06.411 [Send Data to AMADCommBridge] Start executing action 'HTTP Request: send READINGS data to AMADCommBridge '
20.05.2017 08:19:06.412 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' url = http://192.168.178.32:8090
20.05.2017 08:19:06.412 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' contentType = text/plain
20.05.2017 08:19:06.413 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' generalTextData = flowsetVersionAtDevice@@2.6.10@@@@deviceState@@online@@@@
20.05.2017 08:19:06.413 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' variable = response
20.05.2017 08:19:06.414 [Send Data to AMADCommBridge] End executing condition 'Expression: fhemcmd == "set"' with return value false
20.05.2017 08:19:06.414 [Send Data to AMADCommBridge] End executing condition 'Expression: fhemcmd == "setreading"' with return value true
20.05.2017 08:19:06.414 [Send Data to AMADCommBridge] End executing condition 'Expression: fhemcmd == "readingsval"' with return value false
20.05.2017 08:19:06.416 [Send Data to AMADCommBridge] End executing condition 'Expression: fhemcmd == "voiceinputvalue"' with return value false
20.05.2017 08:19:06.416 [Informations] End executing action 'Script: checkActiveTask = "checkActiveTask@@" + {runTask}; fhemcmd = "setreading";'
20.05.2017 08:19:06.416 [Send Data to AMADCommBridge] Flow continues executing with the next step.
20.05.2017 08:19:06.417 [Send Data to AMADCommBridge] Start executing action 'Script: Set FHEMDATA'
20.05.2017 08:19:06.417 [Informations] Flow continues executing with the next step.
20.05.2017 08:19:06.417 [Informations] Start executing action 'Flows ausführen: Send Data to AMADCommBridge'
20.05.2017 08:19:06.418 [Informations] End executing action 'Flows ausführen: Send Data to AMADCommBridge'
20.05.2017 08:19:06.419 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' customHTTPHeaders = FHEMDEVICE: Dieter_Galaxy_S7
FHEMCMD: setreading
Connection: close
20.05.2017 08:19:06.421 [Send Data to AMADCommBridge] Starting to execute flow 'Send Data to AMADCommBridge' with Context{global{global_activetask=none,global_apssid=dhg,dhg_5,global_track=no soundplayer active,global_userflowstate=none,global_fhemip=192.168.178.32,global_bridgeport=8090,global_volume_music=10,global_album=no soundplayer active,global_artist=no soundplayer active,global_fhemdevice=Dieter_Galaxy_S7},local{checkActiveTask=checkActiveTask@@0,flow_name=Send Data to AMADCommBridge,flow_SetCommands=flow_SetCommands@@aktiv,setCommandFlow_state=aktiv,runTask=0,deviceState=deviceState@@online,trigger=Periodischer Timer: alle 30s,triggertime=1495261146172,app_name=Automagic Premium,fhemcmd=setreading,flow_count=1,package_name=ch.gridvision.ppam.androidautomagic}}
20.05.2017 08:19:06.421 [Send Data to AMADCommBridge] Start executing condition 'Host erreichbar: {global_fhemip}:{global_bridgeport}'
20.05.2017 08:19:06.421 [Informations] Flow ended.
20.05.2017 08:19:06.422 [Send Data to AMADCommBridge] Condition 'Host erreichbar: {global_fhemip}:{global_bridgeport}' Executing socket check to host '192.168.178.32' and port '8090'
20.05.2017 08:19:06.435 [Send Data to AMADCommBridge] End executing condition 'Host erreichbar: {global_fhemip}:{global_bridgeport}' with return value true
20.05.2017 08:19:06.435 [Send Data to AMADCommBridge] End executing action 'Script: Set FHEMDATA'
20.05.2017 08:19:06.435 [Send Data to AMADCommBridge] Flow continues executing with the next step.
20.05.2017 08:19:06.435 [Send Data to AMADCommBridge] Start executing condition 'Expression: fhemcmd == "setreading"'
20.05.2017 08:19:06.436 [Send Data to AMADCommBridge] Start executing condition 'Expression: fhemcmd == "set"'
20.05.2017 08:19:06.436 [Send Data to AMADCommBridge] Start executing condition 'Expression: fhemcmd == "readingsval"'
20.05.2017 08:19:06.437 [Send Data to AMADCommBridge] Start executing condition 'Expression: fhemcmd == "voiceinputvalue"'
20.05.2017 08:19:06.437 [Send Data to AMADCommBridge] Flow continues executing with the next step.
20.05.2017 08:19:06.437 [Send Data to AMADCommBridge] Start executing action 'HTTP Request: send READINGS data to AMADCommBridge '
20.05.2017 08:19:06.438 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' url = http://192.168.178.32:8090
20.05.2017 08:19:06.438 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' contentType = text/plain
20.05.2017 08:19:06.438 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' generalTextData = flowsetVersionAtDevice@@2.6.10@@@@deviceState@@online@@@@flow_SetCommands@@aktiv@@@@
20.05.2017 08:19:06.438 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' variable = response
20.05.2017 08:19:06.440 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' customHTTPHeaders = FHEMDEVICE: Dieter_Galaxy_S7
FHEMCMD: setreading
Connection: close
20.05.2017 08:19:06.440 [Send Data to AMADCommBridge] End executing condition 'Expression: fhemcmd == "set"' with return value false
20.05.2017 08:19:06.443 [Send Data to AMADCommBridge] End executing condition 'Expression: fhemcmd == "voiceinputvalue"' with return value false
20.05.2017 08:19:06.444 [Send Data to AMADCommBridge] End executing condition 'Expression: fhemcmd == "setreading"' with return value true
20.05.2017 08:19:06.445 [Send Data to AMADCommBridge] End executing condition 'Expression: fhemcmd == "readingsval"' with return value false
20.05.2017 08:19:06.445 [Send Data to AMADCommBridge] Flow continues executing with the next step.
20.05.2017 08:19:06.445 [Send Data to AMADCommBridge] Start executing action 'Script: Set FHEMDATA'
20.05.2017 08:19:06.459 [Send Data to AMADCommBridge] End executing action 'Script: Set FHEMDATA'
20.05.2017 08:19:06.459 [Send Data to AMADCommBridge] Flow continues executing with the next step.
20.05.2017 08:19:06.459 [Send Data to AMADCommBridge] Start executing action 'HTTP Request: send READINGS data to AMADCommBridge '
20.05.2017 08:19:06.460 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' url = http://192.168.178.32:8090
20.05.2017 08:19:06.460 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' contentType = text/plain
20.05.2017 08:19:06.460 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' generalTextData = flowsetVersionAtDevice@@2.6.10@@@@checkActiveTask@@0@@@@deviceState@@online@@@@flow_SetCommands@@aktiv@@@@
20.05.2017 08:19:06.460 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' variable = response
20.05.2017 08:19:06.462 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' customHTTPHeaders = FHEMDEVICE: Dieter_Galaxy_S7
FHEMCMD: setreading
Connection: close
20.05.2017 08:19:06.523 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' URL data fetched successfully.
20.05.2017 08:19:06.524 [Send Data to AMADCommBridge] End executing action 'HTTP Request: send READINGS data to AMADCommBridge '
20.05.2017 08:19:06.525 [Send Data to AMADCommBridge] Flow ended.
20.05.2017 08:19:06.652 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' URL data fetched successfully.
20.05.2017 08:19:06.769 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' URL data fetched successfully.
20.05.2017 08:19:06.783 [Send Data to AMADCommBridge] End executing action 'HTTP Request: send READINGS data to AMADCommBridge '
20.05.2017 08:19:06.831 [Send Data to AMADCommBridge] End executing action 'HTTP Request: send READINGS data to AMADCommBridge '
20.05.2017 08:19:06.832 [Send Data to AMADCommBridge] Flow ended.
20.05.2017 08:19:06.875 [Send Data to AMADCommBridge] Flow ended.
20.05.2017 08:19:06.905 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge ' URL data fetched successfully.
20.05.2017 08:19:06.905 [Send Data to AMADCommBridge] End executing action 'HTTP Request: send READINGS data to AMADCommBridge '
20.05.2017 08:19:06.905 [Send Data to AMADCommBridge] Flow ended.
20.05.2017 08:19:36.157 Trigger 'Periodischer Timer: alle 30s' going to execute flows
20.05.2017 08:19:36.163 [Informations] Starting to execute flow 'Informations' with Context{global{global_activetask=none,global_apssid=dhg,dhg_5,global_track=no soundplayer active,global_userflowstate=none,global_fhemip=192.168.178.32,global_bridgeport=8090,global_volume_music=10,global_album=no soundplayer active,global_artist=no soundplayer active,global_fhemdevice=Dieter_Galaxy_S7},local{flow_name=Informations,trigger=Periodischer Timer: alle 30s,triggertime=1495261176157}}
20.05.2017 08:19:36.164 [Informations] Start executing condition 'Expression: trigger == "App Task Beendet"'
20.05.2017 08:19:36.172 [SetCommands] Starting to execute flow 'SetCommands' with Context{global{global_activetask=none,global_apssid=dhg,dhg_5,global_track=no soundplayer active,global_userflowstate=none,global_fhemip=192.168.178.32,global_bridgeport=8090,global_volume_music=10,global_album=no soundplayer active,global_artist=no soundplayer active,global_fhemdevice=Dieter_Galaxy_S7},local{flow_name=SetCommands,trigger=Periodischer Timer: alle 30s,triggertime=1495261176157}}
20.05.2017 08:19:36.172 [SetCommands] Start executing condition 'Expression: global_fhemip != null or global_bridgeport != null'
20.05.2017 08:19:36.192 [Informations] End executing condition 'Expression: trigger == "
Gebäudesicherheit/-komfort, PV-Prognose/Verbrauchssteuerung, Heizungssteuerung, Multimedia, ...
KNX, FS20, HM, HUE, Tradfri, Shellies, KLF200, Netatmo, Nuki, SolarForecast, HEOS, Alexa-FHEM, ...
FHEM 6.4, 2 x RasPi 3B+, Debian Bullseye

CoolTux

Was genau sagst Du denn?

Schalte das Licht am Esstisch im Wohnzimmer an.

Da müsste was passieren
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

grappa24

yo, geht ("Schalte das Licht am Esstisch im Wohnzimmer an"). Ich hatte es statt dessen mit "im Wohnzimmer am Esstisch ..." probiert. Hm, muss ich wohl mal drüber nachdenken  ;)
Gebäudesicherheit/-komfort, PV-Prognose/Verbrauchssteuerung, Heizungssteuerung, Multimedia, ...
KNX, FS20, HM, HUE, Tradfri, Shellies, KLF200, Netatmo, Nuki, SolarForecast, HEOS, Alexa-FHEM, ...
FHEM 6.4, 2 x RasPi 3B+, Debian Bullseye

Gisbert

Hallo Leon,

ich versuche mich an deiner Sprachsteuerung, bin allerdings noch am Anfang.
Ich habe diesen Thread gelesen, sowie auch die commanref und Wiki zu AMAD.

Auf der 1. Seite dieses Threads steht, dass man Automagic ab Version 2.31.0 benötigt.
Im Playstore ist aber die Version v1.33.0 verfügbar - geht die bzw. ist bei deiner Angabe was falsch?

Ich werde vermutlich noch weitere Fragen haben, mal schauen, wie weit ich ohne Hilfe komme.

Viele Grüße Gisbert
Aktuelles FHEM | PROXMOX | Fujitsu Futro S740 | Debian 12 | UniFi | Homematic, VCCU, HMUART | ESP8266 | ATtiny85 | Wasser-, Stromzähler | tuya local | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY | DEYE | JK-BMS | ESPHome

CoolTux

Hallo Gisbert,

Vielen Dank für den Hinweis, es sollte natürlich 1.31 heißen. Ha es es soeben korrigiert.


Grüße
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Gisbert

#205
Hallo Leon,

ich habe folgendes Device angelegt; der Status ist aber offline:
Internals:
   APSSID
   CFGFN
   DEF        192.168.178.24
   HOST       192.168.178.24
   NAME       myNexus5
   NR         16040
   PORT       8090
   STATE      initialized
   TYPE       AMAD
   VERSIONFLOWSET 2.6.12
   VERSIONMODUL 2.6.13
   Readings:
     2017-05-20 23:10:39   deviceState     offline
     2017-05-20 20:40:37   lastStatusRequestState statusRequest_error
     2017-05-20 20:36:51   state           initialized
   Helper:
     deviceStateErrorCounter 68
     infoErrorCounter 2
     setCmdErrorCounter 0
Attributes:
   room       AMAD


"set AMADCommBridge fhemServerIP <FHEM-IP>" habe ich ausgeführt:
Internals:
   BRIDGE     1
   CFGFN
   FD         33
   NAME       AMADCommBridge
   NR         16041
   PORT       8090
   STATE      opened
   TYPE       AMAD
   VERSIONFLOWSET 2.6.12
   VERSIONMODUL 2.6.13
   Readings:
     2017-05-20 22:52:28   expertMode      1
     2017-05-20 20:40:36   fhemServerIP    192.168.178.26
     2017-05-20 20:36:51   state           opened
Attributes:
   room       AMAD


Ich hatte dann einige Zeit später (ca. 2 Stunden) die Automagic App geladen, war mir nicht klar, ob die Versionsnummer im Playstore ok ist.
Die Datei "74_AMADautomagicFlowset_2.6.12.xml" habe ich dann importiert, und die Flows aktiviert.
D.h. ich habe die Automagic App erst installiert, nachdem die beiden AMAD-Devices schon angelegt waren.

Der Logfile sieht so aus:
2017.05.20 20:36:51 3: AMAD (AMADCommBridge) - defined Bridge with Socketport 8090
2017.05.20 20:36:51 3: AMAD (AMADCommBridge) - Attention!!! By the first run, dont forget to "set AMADCommBridge fhemServerIP <IP-FHEM>"
2017.05.20 20:36:51 3: AMADCommBridge: port 8090 opened
2017.05.20 20:36:51 3: AMAD (myNexus5) - defined with host 192.168.178.24 on port 8090 and NONE AccessPoint-SSID
2017.05.20 20:36:51 3: AMAD (AMADCommBridge) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2017.05.20 20:37:06 3: AMAD (AMADCommBridge) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2017.05.20 20:37:21 3: AMAD (AMADCommBridge) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2017.05.20 20:37:36 3: AMAD (AMADCommBridge) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2017.05.20 20:37:51 3: AMAD (AMADCommBridge) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2017.05.20 20:38:06 3: AMAD (AMADCommBridge) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2017.05.20 20:38:21 3: AMAD (AMADCommBridge) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2017.05.20 20:38:36 3: AMAD (AMADCommBridge) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2017.05.20 20:38:51 3: AMAD (AMADCommBridge) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2017.05.20 20:39:06 3: AMAD (AMADCommBridge) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2017.05.20 20:39:21 3: AMAD (AMADCommBridge) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2017.05.20 20:39:36 3: AMAD (AMADCommBridge) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2017.05.20 20:39:51 3: AMAD (AMADCommBridge) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2017.05.20 20:40:06 3: AMAD (AMADCommBridge) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2017.05.20 20:40:21 3: AMAD (AMADCommBridge) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2017.05.20 20:44:04 3: Wetter.Leverkusen: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<!doctype html publi...") at FHEM/YahooWeatherAPI.pm line 247.

2017.05.20 20:45:17 3: ABFALL myMuell - CALENDAR:Muelltonnen.Kalender.AVEA triggered, updating ABFALL myMuell ...
2017.05.20 20:45:17 3: ABFALL_UPDATE
2017.05.20 20:47:30 3: Jet.Koeln.Worringen: Read callback: Error: read from http://www.clever-tanken.de:80 timed out
2017.05.20 21:51:20 3: CUL_HM set Haustuer.Licht on-till {sunset_abs(2700,"22:13:26","23:11:43")}
2017.05.20 21:51:25 3: CUL_HM set Haustuer.Licht off
2017.05.20 21:52:58 3: CUL_HM set Haustuer.Licht on-till {sunset_abs(2700,"22:13:26","23:11:43")}
2017.05.20 21:56:20 3: CUL_HM set Terrasse.Licht on-till {sunset_abs(2400,"21:47:35","23:02:19")}
2017.05.20 21:57:58 3: CUL_HM set Terrasse.Licht on-till {sunset_abs(2400,"21:47:35","23:02:19")}
2017.05.20 22:35:12 3: Wetter.Leverkusen: 0 result(s) retrieved
2017.05.20 22:51:44 1: FHEMWEB SSL/HTTPS error:  SSL accept attempt failed because of handshake problems


Viele Grüße Gisbert
Aktuelles FHEM | PROXMOX | Fujitsu Futro S740 | Debian 12 | UniFi | Homematic, VCCU, HMUART | ESP8266 | ATtiny85 | Wasser-, Stromzähler | tuya local | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY | DEYE | JK-BMS | ESPHome

CoolTux

Dann einfach mal ein statusRequest machen, damit die Daten auf die Tablets übertragen werden.


Grüße
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Gisbert

Danke, hat funktioniert - ich taste mich dann mal langsam vor.
Aktuelles FHEM | PROXMOX | Fujitsu Futro S740 | Debian 12 | UniFi | Homematic, VCCU, HMUART | ESP8266 | ATtiny85 | Wasser-, Stromzähler | tuya local | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY | DEYE | JK-BMS | ESPHome

Gisbert

Hallo Leon,

ich hänge an dieser Stelle, siehe Zitate.

Diesen Stand habe ich erreicht:
D.h. AMAND2 und der Import der Dateien 74_AMADautomagicFlowset_2.6.12.xml und [AMAD 2.6] Flowset Voice Control.xml war erfolgreich
Um bei dem Beispiel Wasserkocher zu bleiben: Wenn ich über "Ok Google" zum Testen einfach nur "wasserkocher" sage, wird mir auch von Autovoice eine Benachrichtigung mit dem Text angezeigt:
Received possible Commands:
wasserkocher

Ich komme aber nicht weiter.

Wo finde ich das:
- Unter Plugin ist natürlich "Autovoice Recognized" eingestellt
       --> das glaube ich gefunden zu haben
- Da gibt es dann weit oben ein Viereck Script und da stehen alle Sachen drin, die angepasst werden sollen
       --> das habe ich gefunden, weiß aber noch nicht genau, wie ich es anpassen muss
- Hast du denn auch unter Trigger die RegEx entsprechend gesetzt? Trigger plugin AutoVoice müsste ja schon da sein und dann auf Konfigurieren und da Command Filter.
       --> Hier habe ich keine Ahnung, was ich machen soll. Es gibt bei AutoVoice --> Personal Assitant --> Commands --> "+" Build AutoVoice Commands --> Commands und Responses. Ist das zumindest das richtige Menu? Was muss bei Commands rein und was bei Responses?


Zitat von: Amenophis86 am 04 November 2016, 17:08:35
Ich brauche wohl doch etwas Hilfe.

Ich habe mir jetzt Autovoice besorgt und mit der Test Version installiert. Nun will ich zB den Status des Device "KU.Steckdose.Kocher_Sw" ansagen lassen. Dazu bin ich in den Flow "Abfrage Gerätestatus per Sprache" und auf Script gegangen. Dort sieht es noch meine gedacht richtigen Änderung wie folgt aus:


fhemdevice = "null";

if(matches(avcomm, '(?i:.+(wasserkocher).+)'))
{
fhemdevice = "KU.Steckdose.Kocher_Sw";
name = "wasserkocher";
}


Wenn ich über "Ok Google" zum Testen einfach nur "wasserkocher" sage, wird mir auch von Autovoice eine Benachrichtigung mit dem Text:

Received possible Commands:
wasserkocher

angezeigt, aber es passiert sonst nichts. Der Flow wird nicht gestartet. Natürlich habe ich den Flow auch aktiviert, dass er blau und nicht mehr grau ist. Was mache ich falsch? :)

Edit:
Unter Plugin ist natürlich "Autovoice Recognized" eingestellt.

Zitat von: CoolTux am 04 November 2016, 17:16:56
Hast du denn auch unter Trigger die RegEx entsprechend gesetzt? Trigger plugin AutoVoice müsste ja schon da sein und dann auf Konfigurieren und da Command Filter. Da setzt den Teil des Satzes ein auf welcher der Trigger ansprechen soll.

Zu Beispiel. "Ist der Wasserkocher an"

Wenn du dann mehr Geräte machen willst

"Ist (der|die) (Wasserkocher|Waschmaschine) an"

Und so weiter. Kannst auch an Weg lassen. Dann reagiert er halt auf alles so lange der Textteil drin enthalten ist.
Aktuelles FHEM | PROXMOX | Fujitsu Futro S740 | Debian 12 | UniFi | Homematic, VCCU, HMUART | ESP8266 | ATtiny85 | Wasser-, Stromzähler | tuya local | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY | DEYE | JK-BMS | ESPHome

CoolTux

Hier mal ein paar Bilder um in das Menü für die Trigger RegEx zu kommen.
Wenn Du im Trigger RegEx bist dann siehst du dort den Satz oder die Wörter welche den Flow auslösen.
Schau mal ob Du was findest, wenn nicht werde ich heute Abend mal ein paar Sätze mehr schreiben.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net