diff --git a/73_AMADCommBridge.pm b/73_AMADCommBridge.pm index 63f593f..549e4c4 100644 --- a/73_AMADCommBridge.pm +++ b/73_AMADCommBridge.pm @@ -41,8 +41,8 @@ ###### Möglicher Aufbau eines JSON Strings für die AMADCommBridge # # first initial String -# {"amad": {"amad_id": "1495827100156","fhemcmd": "setreading"},"payload": {},"firstrun": {"fhemdevice": "TabletWohnzimmer","fhemserverip": "fhem02.tuxnet.local","amaddevice_ip": "10.6.9.35"}} -# {"amad": {"amad_id": "1495827100156","fhemcmd": "setreading"},"payload": {},"firstrun": {"fhemdevice": "TabletWohnzimmer","fhemserverip": "fhem02.tuxnet.local","amaddevice_ip": "10.6.9.35"}} +# {"amad": {"amad_id": "1495827100156","fhemcmd": "setreading"},"firstrun": {"fhemdevice": "TabletWohnzimmer","fhemserverip": "fhem02.tuxnet.local","amaddevice_ip": "10.6.9.35"}} +# {"amad": {"amad_id": "1495827100156","fhemcmd": "setreading"},"firstrun": {"fhemdevice": "TabletWohnzimmer","fhemserverip": "fhem02.tuxnet.local","amaddevice_ip": "10.6.9.35"}} # # default String # {"amad": {"amad_id": "37836534","fhemcmd": "setreading"},"payload": {"reading0": "value0","reading1": "value1","readingX": "valueX"}} @@ -68,8 +68,8 @@ use TcpServerUtils; eval "use JSON;1" or $missingModul .= "JSON "; -my $modulversion = "3.9.48"; -my $flowsetversion = "3.9.48"; +my $modulversion = "3.9.52"; +my $flowsetversion = "3.9.52"; @@ -563,7 +563,7 @@ sub AMADCommBridge_Open($) { readingsSingleUpdate ( $hash, "state", "opened", 1 ) if( defined($hash->{FD}) ); Log3 $name, 3, "AMADCommBridge ($name) - Socket opened."; - return; + return $ret; } sub AMADCommBridge_Close($) { @@ -603,9 +603,9 @@ sub AMADCommBridge_Read($) { # When there is an error in connection return - if( !defined($ret ) || $ret <= 0 ) { + if( !defined($ret ) or $ret <= 0 ) { CommandDelete( undef, $name ); - Log3 $name, 5, "AMADCommBridge ($name) - Error in connection"; + Log3 $name, 5, "AMADCommBridge ($name) - Connection closed for $name"; return; } @@ -674,7 +674,7 @@ sub AMADCommBridge_ProcessRead($$) { Log3 $name, 5, "AMADCommBridge ($name) - Incoming data: " . $json; $buffer = $buffer . $json; - Log3 $name, 5, "AMADCommBridge ($name) - Current processing buffer (PARTIAL + incoming data): " . $buffer; + Log3 $name, 4, "AMADCommBridge ($name) - Current processing buffer (PARTIAL + incoming data): " . $buffer; my ($correct_json,$tail) = AMADCommBridge_ParseMsg($hash, $buffer); @@ -722,10 +722,11 @@ sub AMADCommBridge_ResponseProcessing($$) { my $response; my $c; - #my $json = $data[1]; my $decode_json; + $decode_json = eval{decode_json($json)}; + if($@){ Log3 $bname, 3, "AMADCommBridge ($name) - ERROR while request: $@"; readingsSingleUpdate($bhash, "JSON info", "JSON ERROR", 1); @@ -744,8 +745,11 @@ sub AMADCommBridge_ResponseProcessing($$) { my $fhemDevice; if( defined($decode_json->{firstrun}) and ($decode_json->{firstrun}) ) { - $fhemDevice = $decode_json->{payload}{fhemdevice} if( defined($decode_json->{firstrun}{fhemdevice}) ); + + $fhemDevice = $decode_json->{firstrun}{fhemdevice} if( defined($decode_json->{firstrun}{fhemdevice}) ); + } else { + $fhemDevice = $modules{AMADDevice}{defptr}{$amad_id}->{NAME}; } @@ -771,7 +775,7 @@ sub AMADCommBridge_ResponseProcessing($$) { if( defined($fhemcmd) and ($fhemcmd) ) { if ( $fhemcmd eq 'setreading' ) { return Log3 $bname, 3, "AMADCommBridge ($name) - AMADCommBridge: processing receive no reading values from Device: $fhemDevice" - unless( defined($decode_json->{payload}) and ($decode_json->{payload}) ); + unless( (defined($decode_json->{payload}) and ($decode_json->{payload})) or (defined($decode_json->{firstrun}) and ($decode_json->{firstrun})) ); Log3 $bname, 4, "AMADCommBridge ($bname) - AMADCommBridge: processing receive reading values - Device: $fhemDevice Data: $decode_json->{payload}"; @@ -795,7 +799,7 @@ sub AMADCommBridge_ResponseProcessing($$) { fhem ("set $fhemCmd") if( ReadingsVal( $bname, "expertMode", 0 ) eq "1" ); readingsSingleUpdate( $bhash, "receiveFhemCommand", "set ".$fhemCmd, 0 ); - Log3 $bname, 3, "AMADCommBridge ($name) - AMADCommBridge_CommBridge: set reading receive fhem command"; + Log3 $bname, 4, "AMADCommBridge ($name) - AMADCommBridge_CommBridge: set reading receive fhem command"; $response = "header lines: \r\n AMADCommBridge receive Data complete\r\n FHEM execute set command now\r\n"; $c = $hash->{CD}; @@ -842,7 +846,8 @@ sub AMADCommBridge_ResponseProcessing($$) { return; } - + + # elsif ( $fhemcmd =~ /fhemfunc\b/ ) { # my $fhemCmd = $data[1]; # diff --git a/74_AMADDevice.pm b/74_AMADDevice.pm index dd376a0..2b78ec1 100644 --- a/74_AMADDevice.pm +++ b/74_AMADDevice.pm @@ -54,8 +54,8 @@ use Encode qw(encode); eval "use JSON;1" or $missingModul .= "JSON "; -my $modulversion = "3.9.49"; -my $flowsetversion = "3.9.48"; +my $modulversion = "3.9.52"; +my $flowsetversion = "3.9.52"; @@ -185,11 +185,11 @@ sub AMADDevice_Define($$) { if( $init_done ) { - AMADDevice_GetUpdate($hash); + InternalTimer( gettimeofday()+3, "AMADDevice_GetUpdate", $hash, 0 ) if( ($hash->{HOST}) ); } else { - InternalTimer( gettimeofday()+30, "AMADDevice_GetUpdate", $hash, 0 ) if( ($hash->{HOST}) ); + InternalTimer( gettimeofday()+15, "AMADDevice_GetUpdate", $hash, 0 ) if( ($hash->{HOST}) ); } $modules{AMADDevice}{defptr}{$amad_id} = $hash; @@ -354,7 +354,6 @@ sub AMADDevice_statusRequest($) { my $apssid = AttrVal( $name, "setAPSSID", "none" ); my $fhemip = ReadingsVal($hash->{IODev}->{NAME}, "fhemServerIP", "none"); my $bport = $hash->{IODev}->{PORT}; - my $amad_id = $hash->{AMAD_ID}; $uri = $host . ":" . $port . "/fhem-amad/deviceInfo/"; # Pfad muß so im Automagic als http request Trigger drin stehen @@ -758,8 +757,7 @@ sub AMADDevice_Parse($$) { } Log3 $name, 4, "AMADDevice ($name) - ParseFn was called"; - Log3 $name, 4, "AMADDevice ($name) - ParseFn was called, !!! JSON: $json"; - Log3 $name, 4, "AMADDevice ($name) - ParseFn was called, !!! AMAD_ID: $decode_json->{amad}{amad_id}"; + Log3 $name, 5, "AMADDevice ($name) - ParseFn was called, !!! AMAD_ID: $decode_json->{amad}{amad_id}"; my $fhemDevice = $decode_json->{firstrun}{fhemdevice} if( defined($decode_json->{firstrun}) and defined($decode_json->{firstrun}{fhemdevice}) ); @@ -782,6 +780,7 @@ sub AMADDevice_Parse($$) { ################################## ################################## #### my little helpers ########### + sub AMADDevice_checkDeviceState($) { my ( $hash ) = @_; diff --git a/74_AMADautomagicFlowset_3.9.52.xml b/74_AMADautomagicFlowset_3.9.52.xml new file mode 100644 index 0000000..514dd17 --- /dev/null +++ b/74_AMADautomagicFlowset_3.9.52.xml @@ -0,0 +1,4434 @@ + + + + true + Akku Ladestand: grösser als 0% + true + 0 + HIGHER_THAN + false + true + + + false + App Task Beendet + true + CLASSIC + * + + + true + App Task Beendet: ch.gridvision.ppam.androidautomagic + false + CLASSIC + ch.gridvision.ppam.androidautomagic + + + true + Benachrichtigung in Statusbar angezeigt: ch.gridvision.ppam.androidautomagic + true + ch.gridvision.ppam.androidautomagic + TEXT + CONTAINS_TEXT + + false + false + + + true + Benachrichtigung in Statusbar angezeigt: com.whatsapp + true + com.whatsapp + TEXT + CONTAINS_TEXT + + false + true + + + true + Benachrichtigung in Statusbar angezeigt: org.telegram.messenger + true + org.telegram.messenger + TEXT + CONTAINS_TEXT + + false + true + + + true + Benachrichtigung in Statusbar entfernt: ch.gridvision.ppam.androidautomagic + true + ch.gridvision.ppam.androidautomagic + TEXT + CONTAINS_TEXT + + false + false + + + true + Bluetooth Status: Schaltet aus, Aus + true + false + false + true + true + + + true + Bluetooth Status: Schaltet ein, Ein + true + true + true + false + false + + + true + Daydream Status: Gestartet + true + true + + + true + Daydream Status: Gestoppt + true + false + + + true + Display Orientierung: Landscape + true + false + + + true + Display Orientierung: Portrait + true + true + + + true + Display Status: Aus + true + false + + + true + Display Status: Ein + true + true + + + true + Dock Event: Docked + true + true + + + true + Dock Event: Undocked + true + false + + + true + Eingehender Anruf. Status: Klingelt, Nummern: Alle + true + true + + true + true + false + false + false + + + true + Flugmodus: Aus + true + false + + + true + Genereller Broadcast: wenn com.android.deskclock.ALARM_ALERT + true + com.android.deskclock.ALARM_ALERT + + + + + + + + + false + + + true + Genereller Broadcast: wenn com.android.deskclock.ALARM_DISMISS + true + com.android.deskclock.ALARM_DISMISS + + + + + + + + + false + + + true + Genereller Broadcast: wenn com.android.deskclock.ALARM_DONE + true + com.android.deskclock.ALARM_DONE + + + + + + + + + false + + + true + Genereller Broadcast: wenn com.android.deskclock.ALARM_SNOOZE + true + com.android.deskclock.ALARM_SNOOZE + + + + + + + + + false + + + true + Genereller Broadcast: wenn org.smblott.intentradio.STATE + true + org.smblott.intentradio.STATE + + + + + + + + irstate=getString("state"); +irname=getString("name") + false + + + false + HTTP Request: /fhem-amad/currentFlowsetUpdate + true + /fhem-amad/currentFlowsetUpdate + 8090 + true + + + false + HTTP Request: /fhem-amad/deviceInfo/ + true + /fhem-amad/deviceInfo/ + 8090 + true + + + false + HTTP Request: /fhem-amad/setCommands/* + true + /fhem-amad/setCommands/* + 8090 + true + + + false + Medien Session verändert + true + com.amazon.mp3,com.amazon.avod.thirdpartyclient,com.audible.application,com.rhapsody.alditalk,com.spotify.music,com.google.android.videos,com.google.android.music,org.smblott.intentradioio,de.maxdome.app.android,tunein.player,org.videolan.vlc,com.google.android.youtube + + + false + Periodischer Timer: alle 30s + true + 30000 + true + false + false + Mon + Tue + Wed + Thu + Fri + Sat + Sun + 8 + 0 + 17 + 0 + true + false + + + true + Sprachbefehl angefordert + true + + + true + Stromversorgung: Angeschlossen + true + true + true + true + true + + + true + Stromversorgung: Entfernt + true + false + true + true + true + + + false + Systemeinstellung verändert: System next_alarm + true + SYSTEM + next_alarm_formatted + setting + + + true + Systemeinstellung verändert: System screen_brightness + true + SYSTEM + screen_brightness + screenBrightness + + + true + Systemeinstellung verändert: System volume_music_bt_a2dp + true + SYSTEM + volume_music_bt_a2dp + volume + + + true + Systemeinstellung verändert: System volume_music_headphone + true + SYSTEM + volume_music_headphone + volume + + + false + Systemeinstellung verändert: System volume_music_headset + true + SYSTEM + volume_music_headset + volume + + + true + Systemeinstellung verändert: System volume_music_speaker + true + SYSTEM + volume_music_speaker + volume + + + true + Systemeinstellung verändert: System volume_ring + true + SYSTEM + volume_ring + volumeRingSound + + + true + Systemeinstellung verändert: System volume_ring_speaker + true + SYSTEM + volume_ring_speaker + volumeNotification + + + true + Unterbrechnungen-Modus: Alle / Immer unterbrechen + true + OFF + + + true + Unterbrechnungen-Modus: Keine / Nicht unterbrechen + true + NO_INTERRUPTIONS + + + true + Unterbrechnungen-Modus: Nur Wecker (Android 6+) + true + ALARMS_ONLY + + + true + Unterbrechnungen-Modus: Wichtig / Nur wichtige Unterbrechnungen zulassen + true + IMPORTANT_INTERRUPTIONS + + + false + App Task läuft: App (neuster) + CLASSIC + {param_app} + true + + + true + App Task läuft: {global_activetask} (neuster) + CLASSIC + {global_activetask} + true + + + false + Benachrichtigung in Statusbar angezeigt: Automagic + ch.gridvision.ppam.androidautomagic + true + 1 + TEXT + CONTAINS_TEXT + + false + false + + + false + Benachrichtigung in Statusbar angezeigt: Telegram Messenger + org.telegram.messenger + true + 1 + TEXT + CONTAINS_TEXT + + false + false + + + false + Benachrichtigung in Statusbar angezeigt: WhatsApp + com.whatsapp + true + 1 + TEXT + CONTAINS_TEXT + + false + false + + + true + Bluetooth eingeschaltet + + + true + Bluetooth Gerät verbunden: Beliebiges Geräte + true + + + ANY + + + true + Bluetooth Gerät verbunden: Beliebiges Geräte (Advanced Audio Distribution) + true + + + A2DP + + + true + Display automatisch drehen eingeschaltet + + + true + Display eingeschaltet + + + true + Display Orientierung: Portrait + true + + + true + Dock Status: Docked + true + true + true + true + true + false + + + true + Expression: airpcount < 11 + airpcount < 11 + + + false + Expression: Airplanemode + param_syscmd == "airplanemodeON" + + + false + Expression: All + param_app == "All" + + + true + Expression: amadcmd == "firstrun" + amadcmd == "firstrun" + + + false + Expression: Automagic + param_app == "Automagic" + + + false + Expression: Clear Automagic Meldungen" + request_path == "/fhem-amad/setCommands/clearnotificationbar" + + + false + Expression: closeCall" + request_path == "/fhem-amad/setCommands/closeCall" + + + true + Expression: contains(value, " und ") + contains(value, " und ") + + + false + Expression: do not Disturb" + request_path == "/fhem-amad/setCommands/donotdisturb" + + + true + Expression: fhemcmd == "readingsval" + fhemcmd == "readingsval" + + + true + Expression: fhemcmd == "set" + fhemcmd == "set" + + + true + Expression: fhemcmd == "setreading" + fhemcmd == "setreading" + + + true + Expression: fhemcmd == "voiceinputvalue" + fhemcmd == "voiceinputvalue" + + + false + Expression: flowState" + request_path == "/fhem-amad/setCommands/flowState" + + + true + Expression: getAndroidSDKVersion() >= "16" + getAndroidSDKVersion() >= "16" + + + true + Expression: getAndroidSDKVersion() >= "19" + getAndroidSDKVersion() >= "19" + + + true + Expression: getAndroidSDKVersion() >= "21" + getAndroidSDKVersion() >= "21" + + + true + Expression: global_activetask != null + global_activetask != null + + + true + Expression: global_fhemip != null or global_bridgeport != null + global_fhemip != null or global_bridgeport != null + + + true + Expression: global_userflowstate != "none" + global_userflowstate != "none" + + + false + Expression: installFlow" + request_path == "/fhem-amad/setCommands/installFlow" + + + true + Expression: keyguard == "locked" + keyguard == "locked" + + + true + Expression: Leon == "Gaultier" + Leon == "Gaultier" + + + false + Expression: multimediaControl" + request_path == "/fhem-amad/setCommands/multimediaControl" + + + false + Expression: notifysnd" + request_path == "/fhem-amad/setCommands/playnotifysnd" + + + false + Expression: openApp" + request_path == "/fhem-amad/setCommands/openApp" + + + false + Expression: openCall" + request_path == "/fhem-amad/setCommands/openCall" + + + false + Expression: openURL" + request_path == "/fhem-amad/setCommands/openURL" + + + true + Expression: package_name == {global_activetask} + package_name == {global_activetask} + + + true + Expression: param_bluetooth == "off" + param_bluetooth == "off" + + + true + Expression: param_bluetooth == "on" + param_bluetooth == "on" + + + true + Expression: param_button == "back" + param_button == "back" + + + true + Expression: param_button == "next" + param_button == "next" + + + true + Expression: param_button == "play/pause" + param_button == "play/pause" + + + true + Expression: param_button == "stop" + param_button == "stop" + + + true + Expression: param_disturbmod == "alarmClockOnly" + param_disturbmod == "alarmClockOnly" + + + true + Expression: param_disturbmod == "always" + param_disturbmod == "always" + + + true + Expression: param_disturbmod == "never" + param_disturbmod == "never" + + + true + Expression: param_disturbmod == "onlyImportant" + param_disturbmod == "onlyImportant" + + + true + Expression: param_flowstate == "active" + param_flowstate == "active" + + + true + Expression: param_flowstate == "active" or param_flowstate == "inactive" + param_flowstate == "active" or param_flowstate == "inactive" + + + true + Expression: param_fullscreen == "off" + param_fullscreen == "off" + + + true + Expression: param_fullscreen == "on" + param_fullscreen == "on" + + + true + Expression: param_lockmod == "lock" + param_lockmod == "lock" + + + true + Expression: param_notifyfile == "RedAlert.mp3" + param_notifyfile == "RedAlert.mp3" + + + false + Expression: param_option + param_hanguptime != "none" + + + true + Expression: param_orientation == "auto" + param_orientation == "auto" + + + true + Expression: param_orientation == "landscape" + param_orientation == "landscape" + + + true + Expression: param_orientation == "portrait" + param_orientation == "portrait" + + + true + Expression: param_screen=="off" + param_screen=="off" + + + true + Expression: param_screen=="on" + param_screen=="on" + + + false + Expression: Reboot + param_syscmd == "reboot" + + + true + Expression: respreadingsval != "kaputt" and respreadingsval != "none" + respreadingsval != "kaputt" and respreadingsval != "none" + + + true + Expression: respreadingsval == "online" + respreadingsval == "online" + + + true + Expression: scrcount < 5 + scrcount < 5 + + + false + Expression: screenMsg" + request_path == "/fhem-amad/setCommands/screenMsg" + + + false + Expression: sendIntent" + request_path == "/fhem-amad/setCommands/sendIntent" + + + false + Expression: sendSms" + request_path == "/fhem-amad/setCommands/sendSms" + + + false + Expression: setAlarm" + request_path == "/fhem-amad/setCommands/setAlarm" + + + false + Expression: setBluetooth" + request_path == "/fhem-amad/setCommands/setbluetooth" + + + false + Expression: setBrightness" + request_path == "/fhem-amad/setCommands/setBrightness" + + + false + Expression: setBTDevice" + request_path == "/fhem-amad/setCommands/setbtdevice" + + + false + Expression: setNotifiVolume" + request_path == "/fhem-amad/setCommands/setNotifiVolume" + + + false + Expression: setRingSoundVolume" + request_path == "/fhem-amad/setCommands/setRingSoundVolume" + + + false + Expression: setScreenFullscreen" + request_path == "/fhem-amad/setCommands/setScreenFullscreen" + + + false + Expression: setScreenlock" + request_path == "/fhem-amad/setCommands/screenlock" + + + false + Expression: setScreenOnOff" + request_path == "/fhem-amad/setCommands/setScreenOnOff" + + + false + Expression: setScreenOrientation" + request_path == "/fhem-amad/setCommands/setScreenOrientation" + + + false + Expression: setTimer" + request_path == "/fhem-amad/setCommands/setTimer" + + + false + Expression: setVibrate" + request_path == "/fhem-amad/setCommands/setvibrate" + + + false + Expression: setVoiceCommand" + request_path == "/fhem-amad/setCommands/setvoicecmd" + + + false + Expression: setVolume" + request_path == "/fhem-amad/setCommands/setVolume" + + + false + Expression: Shutdown + param_syscmd == "shutdown" + + + false + Expression: startDaydream" + request_path == "/fhem-amad/setCommands/startDaydream" + + + false + Expression: System Command" + request_path == "/fhem-amad/setCommands/systemcommand" + + + true + Expression: trigger == "Akku Ladestand: grösser als 0%" + trigger == "Akku Ladestand: grösser als 0%" + + + true + Expression: trigger == "App Task Beendet" + trigger == "App Task Beendet" + + + true + Expression: trigger == "Benachrichtigung in Statusbar angezeigt: ch.gridvision.ppam.androidautomagic" or trigger == "Benachrichtigung in Statusbar entfernt: ch.gridvision.ppam.androidautomagic" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + trigger == "Benachrichtigung in Statusbar angezeigt: ch.gridvision.ppam.androidautomagic" + or trigger == "Benachrichtigung in Statusbar entfernt: ch.gridvision.ppam.androidautomagic" + or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + + + true + Expression: trigger == "Benachrichtigung in Statusbar angezeigt: com.whatsapp" + trigger == "Benachrichtigung in Statusbar angezeigt: com.whatsapp" + + + true + Expression: trigger == "Benachrichtigung in Statusbar angezeigt: org.telegram.messenger" + trigger == "Benachrichtigung in Statusbar angezeigt: org.telegram.messenger" + + + true + Expression: trigger == "Bluetooth Status: Schaltet aus, Aus" or trigger == "Bluetooth Status: Schaltet ein, Ein" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + trigger == "Bluetooth Status: Schaltet aus, Aus" + or trigger == "Bluetooth Status: Schaltet ein, Ein" + or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + + + true + Expression: trigger == "Daydream Status: Gestartet" + trigger == "Daydream Status: Gestartet" + + + true + Expression: trigger == "Daydream Status: Gestartet" or trigger == "Daydream Status: Gestoppt" + trigger == "Daydream Status: Gestartet" + or trigger == "Daydream Status: Gestoppt" + + + true + Expression: trigger == "Display Orientierung: Landscape" or trigger == "Display Orientierung: Portrait" or trigger == "Display Status: Ein" or trigger == "Display Status: Aus" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + trigger == "Display Orientierung: Landscape" + or trigger == "Display Orientierung: Portrait" + or trigger == "Display Status: Ein" + or trigger == "Display Status: Aus" + or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + + + true + Expression: trigger == "Display Status: Aus" or trigger == "Display Status: Ein" or udef_trigger == "setLockPin" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + trigger == "Display Status: Aus" + or trigger == "Display Status: Ein" + or udef_trigger == "setLockPin" + or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + + + true + Expression: trigger == "Dock Event: Docked" or trigger == "Dock Event: Undocked" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + trigger == "Dock Event: Docked" + or trigger == "Dock Event: Undocked" + or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + + + true + Expression: trigger == "Eingehender Anruf. Status: Klingelt, Nummern: Alle" + trigger == "Eingehender Anruf. Status: Klingelt, Nummern: Alle" + + + true + Expression: trigger == "Flugmodus: Aus" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + trigger == "Flugmodus: Aus" + or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + + + true + Expression: trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_ALERT" or trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DISMISS" or trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DONE" or trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_SNOOZE" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_ALERT" +or trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DISMISS" +or trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DONE" +or trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_SNOOZE" +or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + + + true + Expression: trigger == "Genereller Broadcast: wenn org.smblott.intentradio.STATE" + trigger == "Genereller Broadcast: wenn org.smblott.intentradio.STATE" + + + true + Expression: trigger == "HTTP Request: /fhem-amad/deviceInfo/" + trigger == "HTTP Request: /fhem-amad/deviceInfo/" + + + true + Expression: trigger == "HTTP Request: /fhem-amad/setCommands/*" + trigger == "HTTP Request: /fhem-amad/setCommands/*" + + + true + Expression: trigger == "Medien Session verändert" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + trigger == "Medien Session verändert" + or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + + + true + Expression: trigger == "Periodischer Timer: alle 30s" + trigger == "Periodischer Timer: alle 30s" + + + true + Expression: trigger == "Periodischer Timer: alle 30s" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + trigger == "Periodischer Timer: alle 30s" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + + + true + Expression: trigger == "Sprachbefehl angefordert" + trigger == "Sprachbefehl angefordert" + + + true + Expression: trigger == "Systemeinstellung verändert: System next_alarm" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + trigger == "Systemeinstellung verändert: System next_alarm" + or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + + + true + Expression: trigger == "Systemeinstellung verändert: System screen_brightness" + trigger == "Systemeinstellung verändert: System screen_brightness" + + + true + Expression: trigger == "Systemeinstellung verändert: System volume_music_bt_a2dp" or trigger == "Systemeinstellung verändert: System volume_music_speaker" or trigger == "Systemeinstellung verändert: System volume_music_headphone" or trigger == "Systemeinstellung verändert: System volume_music_headset" + trigger == "Systemeinstellung verändert: System volume_music_bt_a2dp" + or trigger == "Systemeinstellung verändert: System volume_music_speaker" + or trigger == "Systemeinstellung verändert: System volume_music_headphone" + or trigger == "Systemeinstellung verändert: System volume_music_headset" + + + true + Expression: trigger == "Systemeinstellung verändert: System volume_ring" + trigger == "Systemeinstellung verändert: System volume_ring" + + + true + Expression: trigger == "Systemeinstellung verändert: System volume_ring_speaker" + trigger == "Systemeinstellung verändert: System volume_ring_speaker" + + + true + Expression: trigger == "Unterbrechnungen-Modus: Alle / Immer unterbrechen" or trigger == "Unterbrechnungen-Modus: Keine / Nicht unterbrechen" or trigger == "Unterbrechnungen-Modus: Nur Wecker (Android 6+)" or trigger == "Unterbrechnungen-Modus: Wichtig / Nur wichtige Unterbrechnungen zulassen" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + trigger == "Unterbrechnungen-Modus: Alle / Immer unterbrechen" +or trigger == "Unterbrechnungen-Modus: Keine / Nicht unterbrechen" +or trigger == "Unterbrechnungen-Modus: Nur Wecker (Android 6+)" +or trigger == "Unterbrechnungen-Modus: Wichtig / Nur wichtige Unterbrechnungen zulassen" +or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + + + false + Expression: ttsMsg" + request_path == "/fhem-amad/setCommands/ttsMsg" + + + false + Expression: ttsMsgLang" + param_msglang == "en" + + + true + Expression: udef_trigger == "setLockPin" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + udef_trigger == "setLockPin" + or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + + + true + Expression: value != "" + value != "" + + + true + Expression: value == "ja" + value == "ja" + + + true + Expression: value == "nein" + value == "nein" + + + true + Flow Aktiv: Informations + Informations + + + true + Flow Aktiv: SetCommands + SetCommands + + + true + Flow Aktiv: {global_userflowstate} + {global_userflowstate} + + + true + Gerätespeicherplatz: Freier Speicherplatz > 1kb (/sdcard) + /sdcard + true + true + 1024 + + + true + Gerätespeicherplatz: Freier Speicherplatz > 1kb (/storage/emulated/0) + /storage/emulated/0 + true + true + 1024 + + + true + Gerätespeicherplatz: Freier Speicherplatz > 1kb (/storage/sdcard0) + /storage/sdcard0 + true + true + 1024 + + + true + Host erreichbar: {global_fhemip}:{global_bridgeport} + SOCKET + {global_fhemip} + {global_bridgeport} + + + true + Keyguard gesperrt + + + true + Keyguard mit Sicherheit + + + true + Musik Aktiv + + + true + Stromversorgung: Angeschlossen + true + true + true + true + + + true + Unterbrechnungen-Modus: Alle / Immer unterbrechen + OFF + + + true + Unterbrechnungen-Modus: Keine / Nicht unterbrechen + NO_INTERRUPTIONS + + + true + Unterbrechnungen-Modus: Nur Wecker (Android 6+) + ALARMS_ONLY + + + true + Unterbrechnungen-Modus: Wichtig / Nur wichtige Unterbrechnungen zulassen + IMPORTANT_INTERRUPTIONS + + + true + WLAN verfügbar: {global_apssid} + {global_apssid} + + + false + Abfrage + Send Data to AMADCommBridge + + false + true + true + + + false + AMAD First Run Assistent Begrüßung + MUSIC + Hallo und herzlich willkommen beim Einrichtungs Assistenten von Fhem Amaad. Wenn Du fortfahren möchtest antworte einfach mit ja. Wenn nicht mit nein. + de_DE + true + 1.0 + true + 1.0 + false + true + false + true + TRANSIENT + + + false + AMAD Voice Control + true + + true + de-DE + false + + + true + Anruf beenden + + + false + App Starten: App + {param_app} + + + + true + Audio Player steuern: Medienknopf Play/Pause (/{kname}) + true + TOGGLE_PAUSE + KEYCODE_MEDIA_PLAY_PAUSE + true + {pname} + {kname} + + + + true + Audio Player steuern: Medienknopf Stopp ({pname}/{kname}) + true + STOP + KEYCODE_MEDIA_STOP + true + {pname} + {kname} + + + + true + Audio Player steuern: Medienknopf Weiter ({pname}/{kname}) + true + NEXT + KEYCODE_MEDIA_NEXT + true + {pname} + {kname} + + + + true + Audio Player steuern: Medienknopf Zurück ({pname}/{kname}) + true + PREVIOUS + KEYCODE_MEDIA_PREVIOUS + true + {pname} + {kname} + + + + true + Benachrichtigung auf Bildschirm: [AMAD2] Nicht mehr benötigte AMAD Flows wurden entfernt! (lange) + true + [AMAD2] Nicht mehr benötigte AMAD Flows wurden entfernt! + + 200 + 250 + false + 1.0 + true + false + TOP_LEFT + 0 + 0 + + + true + Benachrichtigung auf Bildschirm: {param_message} (lange) + true + {param_message} + + 200 + 250 + false + 1.0 + true + false + TOP_LEFT + 0 + 0 + + + true + Benachrichtigung auf Bildschirm: {value} (lange) + true + {value} + + 200 + 250 + false + 1.0 + true + false + TOP_LEFT + 0 + 0 + + + true + Benachrichtigung aus Statusbar entfernen: Alle + false + true + 1 + true + + true + {id} + TEXT + CONTAINS_TEXT + + + + true + Benachrichtigung aus Statusbar entfernen: Alle (Automagic) + true + true + 1 + false + + true + {id} + TEXT + CONTAINS_TEXT + + + + true + Bluetooth ein-/ausschalten: Aus + false + + + true + Bluetooth ein-/ausschalten: Ein + true + + + true + Bluetooth Gerät verbinden/trennen: Trennen Advanced Audio Distribution {param_btdeviceone} + A2DP + {param_btdeviceone} + + false + + + true + Bluetooth Gerät verbinden/trennen: Trennen Advanced Audio Distribution {param_btdevicetwo} + A2DP + {param_btdevicetwo} + + false + + + true + Bluetooth Gerät verbinden/trennen: Trennen Eingabegerät {param_btdeviceone} + INPUT_DEVICE + {param_btdeviceone} + + false + + + true + Bluetooth Gerät verbinden/trennen: Trennen Eingabegerät {param_btdevicetwo} + INPUT_DEVICE + {param_btdevicetwo} + + false + + + true + Bluetooth Gerät verbinden/trennen: Trennen Headset {param_btdeviceone} + HEADSET + {param_btdeviceone} + + false + + + true + Bluetooth Gerät verbinden/trennen: Trennen Headset {param_btdevicetwo} + HEADSET + {param_btdevicetwo} + + false + + + true + Bluetooth Gerät verbinden/trennen: Trennen Personal Area Network {param_btdeviceone} + PAN + {param_btdeviceone} + + false + + + true + Bluetooth Gerät verbinden/trennen: Trennen Personal Area Network {param_btdevicetwo} + PAN + {param_btdevicetwo} + + false + + + true + Bluetooth Gerät verbinden/trennen: Verbinden Advanced Audio Distribution {param_swtobtdevicemac} + A2DP + {param_swtobtdevicemac} + + true + + + true + Broadcast senden: {param_action} + {param_action} + false + android.intent.category.DEFAULT + false + + false + text/plain + false + + + FLAG_ACTIVITY_NEW_TASK + putString("{param_exkey1}", "{param_exval1}"); +putString("{param_exkey2}", "{param_exval2}"); + false + + + + true + Dateien löschen: /sdcard/Download/currentFlowsetUpdate.xml + /sdcard/Download/currentFlowsetUpdate.xml + true + + + true + Dateien löschen: /storage/emulated/0/Download/currentFlowsetUpdate.xml + /storage/emulated/0/Download/currentFlowsetUpdate.xml + true + + + true + Dateien löschen: /storage/emulated/0/Download/installFlow_{param_flowname} + /storage/emulated/0/Download/installFlow_{param_flowname} + true + + + true + Dateien löschen: /storage/sdcard0/Download/currentFlowsetUpdate.xml + /storage/sdcard0/Download/currentFlowsetUpdate.xml + true + + + true + Dateien löschen: /storage/sdcard0/Download/installFlow_{param_flowname} + /storage/sdcard0/Download/installFlow_{param_flowname} + true + + + true + Display automatisch drehen ein-/ausschalten: Aus + false + + + true + Display automatisch drehen ein-/ausschalten: Ein + true + + + true + Download URL: http://{global_fhemip}:{global_bridgeport}/currentFlowsetUpdate.xml to /sdcard/Download + http://{global_fhemip}:{global_bridgeport}/currentFlowsetUpdate.xml + /sdcard/Download + true + + + true + Download URL: http://{global_fhemip}:{global_bridgeport}/currentFlowsetUpdate.xml to /storage/emulated/0/Download + http://{global_fhemip}:{global_bridgeport}/currentFlowsetUpdate.xml + /storage/emulated/0/Download + true + + + true + Download URL: http://{global_fhemip}:{global_bridgeport}/currentFlowsetUpdate.xml to /storage/sdcard0/Download + http://{global_fhemip}:{global_bridgeport}/currentFlowsetUpdate.xml + /storage/sdcard0/Download + true + + + true + Download URL: http://{global_fhemip}:{global_bridgeport}/installFlow_{param_flowname} to /storage/emulated/0/Download + http://{global_fhemip}:{global_bridgeport}/installFlow_{param_flowname} + /storage/emulated/0/Download + true + + + true + Download URL: http://{global_fhemip}:{global_bridgeport}/installFlow_{param_flowname} to /storage/sdcard0/Download + http://{global_fhemip}:{global_bridgeport}/installFlow_{param_flowname} + /storage/sdcard0/Download + true + + + true + Eingabedialog: AMADCommBridge Port Einzeiliger Text Bitte gebe den Port der AMADCommBridge vom FHEM Server an. + AMADCommBridge Port + SINGLE_LINE_TEXT + Bitte gebe den Port der AMADCommBridge vom FHEM Server an. + + 8090 + false + 60000 + + false + false + false + + + true + Eingabedialog: Android Device IP Adresse Einzeiliger Text Bitte gebe die IP Adresse Deines Androidgerätes an. NUR IP kein FQDN!!! + Android Device IP Adresse + SINGLE_LINE_TEXT + Bitte gebe die IP Adresse Deines Androidgerätes an. NUR IP kein FQDN!!! + + 192.168.x.x + false + 60000 + + false + false + false + + + true + Eingabedialog: FHEM Devicename Einzeiliger Text Wie soll das Device in FHEM heißen? + FHEM Devicename + SINGLE_LINE_TEXT + Wie soll das Device in FHEM heißen? + + TabletWohnzimmer + false + 60000 + + false + false + false + + + true + Eingabedialog: FHEM Server IP Einzeiliger Text Bitte gebe die IP Adresse oder den FQDN Deines FHEM Servers an. + FHEM Server IP + SINGLE_LINE_TEXT + Bitte gebe die IP Adresse oder den FQDN Deines FHEM Servers an. + + 192.168.x.x + false + 60000 + + false + false + false + + + true + Flows ausführen: Send Data to AMADCommBridge + Send Data to AMADCommBridge + + false + false + false + + + false + Flows ausführen: Send Data to AMADCommBridge mit warten + Send Data to AMADCommBridge + + false + true + false + + + false + Flows ausführen: udef_trigger setLockPin + Informations test + + false + true + false + + + true + Flows ausführen: VoiceControl + VoiceControl + + false + false + false + + + true + Flows löschen: First Run Assistant + First Run Assistant + true + + + true + Flows löschen: MultimediaControl + MultimediaControl + true + + + true + Flows/Widgets importieren: /sdcard/Download/currentFlowsetUpdate.xml + /sdcard/Download/currentFlowsetUpdate.xml + true + + + true + Flows/Widgets importieren: /storage/emulated/0/Download/currentFlowsetUpdate.xml + /storage/emulated/0/Download/currentFlowsetUpdate.xml + true + + + true + Flows/Widgets importieren: /storage/emulated/0/Download/installFlow_{param_flowname} + /storage/emulated/0/Download/installFlow_{param_flowname} + true + + + true + Flows/Widgets importieren: /storage/sdcard0/Download/currentFlowsetUpdate.xml + /storage/sdcard0/Download/currentFlowsetUpdate.xml + true + + + true + Flows/Widgets importieren: /storage/sdcard0/Download/installFlow_{param_flowname} + /storage/sdcard0/Download/installFlow_{param_flowname} + true + + + true + Flugmodus ein-/ausschalten: Ein + SYSTEM_SETTING + true + + + true + Gerät sperren + + + false + Get Android Version + + + + true + Herunterfahren + + + false + HTTP Request: send FIRSTRUN data to AMADCommBridge JSON + http://{global_fhemip}:{global_bridgeport} + false + false + + false + + POST + GENERAL_TEXT + text/plain + {firstrundata} + @@@@readingsNameXYZ@@readingsValueABC + 60000 + true + Connection: close + true + respfirstrun + /storage/emulated/0/Download/file.bin + false + + + false + HTTP Request: send READINGS data to AMADCommBridge JSON + http://{global_fhemip}:{global_bridgeport} + false + false + + false + + POST + GENERAL_TEXT + text/plain + {fhemdata} + @@@@readingsNameXYZ@@readingsValueABC + 60000 + true + Connection: close + true + respsetreading + /storage/emulated/0/Download/file.bin + false + + + false + HTTP Request: send READINGSVAL data to AMADCommBridge JSON + http://{global_fhemip}:{global_bridgeport} + false + false + + false + + POST + GENERAL_TEXT + text/plain + {readingsvalcmd} + @@@@readingsNameXYZ@@readingsValueABC + 60000 + true + Connection: close + true + respreadingsval + /storage/emulated/0/Download/file.bin + false + + + false + HTTP Request: send SET data to AMADCommBridge JSON + http://{global_fhemip}:{global_bridgeport} + false + false + + false + + POST + GENERAL_TEXT + text/plain + {setcmd} + @@@@readingsNameXYZ@@readingsValueABC + 60000 + true + Connection: close + true + respset + /storage/emulated/0/Download/file.bin + false + + + false + HTTP Request: send VOICEINPUTVALUE data to AMADCommBridge + http://{global_fhemip}:{global_bridgeport} + false + false + + false + + POST + GENERAL_TEXT + text/plain + {voiceinputdata} + @@@@readingsNameXYZ@@readingsValueABC + 60000 + true + FHEMDEVICE: {global_fhemdevice} +FHEMCMD: voiceinputvalue +Connection: close + true + respvoiceinputvalue + /storage/emulated/0/Download/file.bin + true + + + false + Initialisiere Variable Nächster Alarm: next_alarm + next_alarm + + + false + Initialisiere Variable Systemeinstellung: screenBrightness + SYSTEM + screen_brightness + screenBrightness + + + false + Initialisiere Variable Systemeinstellung: volumeMusikBluetooth.2 + SYSTEM + volume_music_bt_a2dp + volumeBT + + + false + Initialisiere Variable Systemeinstellung: volumeMusikSpeaker.2 + SYSTEM + volume_music_speaker + volumeSP + + + false + Initialisiere Variable Systemeinstellung: volumeNotification + SYSTEM + volume_ring_speaker + volumeNotification + + + false + Initialisiere Variable Systemeinstellung: volumeRingSound + SYSTEM + volume_ring + volumeRingSound + + + true + Lautstärke einstellen: Medien auf Level 8 + MUSIC + ADJUST_SET_ABSOLUTE + 8 + false + false + + + false + Lautstärken setzen param_notifivolume + false + global_volume_alarm + false + global_volume_dtmf + false + param_volume + true + param_notifivolume + false + global_volume_ring + false + global_volume_system + false + global_volume_voice_call + false + global_ringer_mode + false + global_interruptions_mode + + + false + Lautstärken setzen param_ringsoundvolume + false + global_volume_alarm + false + global_volume_dtmf + false + param_volume + false + param_notifivolume + true + param_ringsoundvolume + false + global_volume_system + false + global_volume_voice_call + false + global_ringer_mode + false + global_interruptions_mode + + + false + Lautstärken setzen param_volume + false + global_volume_alarm + false + global_volume_dtmf + true + param_volume + false + global_volume_notification + false + global_volume_ring + false + global_volume_system + false + global_volume_voice_call + false + global_ringer_mode + false + global_interruptions_mode + + + false + Medianlautstärken Speichern + false + global_volume_alarm + false + global_volume_dtmf + true + global_volume_music + false + global_volume_notification + false + global_volume_ring + false + global_volume_system + false + global_volume_voice_call + false + global_ringer_mode + false + global_interruptions_mode + + + false + Medienlautstärke Wiederherstellen + false + global_volume_alarm + false + global_volume_dtmf + true + global_volume_music + false + global_volume_notification + false + global_volume_ring + false + global_volume_system + false + global_volume_voice_call + false + global_ringer_mode + false + global_interruptions_mode + + + true + Neustart + + + + false + Notification Lautstärke Speichern + false + global_volume_alarm + false + global_volume_dtmf + false + global_volume_music + true + global_volume_notification + false + global_volume_ring + false + global_volume_system + false + global_volume_voice_call + false + global_ringer_mode + false + global_interruptions_mode + + + false + Notification Lautstärke Wiederherstellen + false + global_volume_alarm + false + global_volume_dtmf + false + param_volume + true + global_volume_notification + false + global_volume_ring + false + global_volume_system + false + global_volume_voice_call + false + global_ringer_mode + false + global_interruptions_mode + + + false + NotificationLautstärke auf Level 7 + NOTIFICATION + ADJUST_SET_ABSOLUTE + 7 + false + false + + + true + Nummer anrufen: {param_callnumber} + + {param_callnumber} + true + + + true + Pause: 2s (Gerät wach halten) + 2s + true + false + + + true + Pause: 3s (Gerät wach halten) + 3s + true + false + + + true + Pause: {param_hanguptime}s (Gerät wach halten) + {param_hanguptime}s + true + false + + + false + Prüfe und setze Bridgeport Variable + + + + false + Prüfe und setze globale Variable + + + + false + Schalte Display ein + false + 5s + true + + + true + Schalte Display ein: Hell für {param_screenontime}s + true + {param_screenontime}s + true + + + true + Script: airpcount = 0 + + + + true + Script: airpcount = airpcount + 1 + + + + true + Script: airplanemode = "\"airplanemode\":" + " \"" + {airplanemode} + "\""; fhemcmd = "setreading"; + + + + true + Script: airplanemode = "airplanemode@@on"; fhemcmd = "setreading"; + + + + true + Script: airplanemode = "off" + + + + true + Script: amadcmd = "firstrun" + + + + true + Script: amaddevice_ip = {value} + + + + true + Script: androidVersion = "\"androidVersion\":" + " \"" + {androidVersion} + "\""; fhemcmd = "setreading"; + + + + true + Script: androidVersion = "not supported funktion" + + + + true + Script: automagicState = "\"automagicState\":" + " \"" + {content_title} + "\""; fhemcmd = "setreading"; + + + + true + Script: bluetooth = "\"bluetooth\":" + " \"" + {bluetooth_state} + "\""; fhemcmd = "setreading"; + + + + true + Script: bluetooth_state = "off" + + + + true + Script: bluetooth_state = "on" + + + + true + Script: btdeviceinfo = "\"connectedBTdevices\":" + " \"" + {connected_devices_names} + "\"" + "," + "\"connectedBTdevicesMAC\":" + " \"" + {connected_devices_addresses} + "\""; fhemcmd = "setreading"; + + + + true + Script: checkActiveTask = "\"checkActiveTask\":" + " \"" + {runTask} + "\""; fhemcmd = "setreading"; + + + + true + Script: connected_devices_names = "none"; connected_devices_addresses = "none" + + + + true + Script: currentMusic = "\"currentMusicTrack\":" + " \"" + {title} + "\"" + "," + "\"currentMusicAlbum\":" + " \"" + {description} + "\"" + "," + "\"currentMusicArtist\":" + " \"" + {subtitle} + "\"" + "," + "\"currentMusicApp\":" + " \"" + {musicapp} + "\"" + "," + "\"currentMusicIcon\":" + " \"" + {icon} + "\"" + "," + "\"currentMusicState\":" + " \"" + {playback_state} + "\""; fhemcmd = "setreading"; + + + + true + Script: daydream = "\"daydream\":" + " \"" + {daydream_state} + "\""; fhemcmd = "setreading"; + + + + true + Script: daydream_state = "off" + + + + true + Script: daydream_state = "on" + + + + true + Script: deviceState = "\"deviceState\": \"online\""; fhemcmd = "setreading"; + + + + true + Script: dndValue = "alarmClockOnly" + + + + true + Script: dndValue = "always" + + + + true + Script: dndValue = "never" + + + + true + Script: dndValue = "onlyImportant" + + + + true + Script: dock_state = "docked" + + + + true + Script: dock_state = "undocked" + + + + true + Script: dockingState = "\"dockingState\":" + " \"" + {dock_state} + "\""; fhemcmd = "setreading"; + + + + true + Script: doNotDisturb = "\"doNotDisturb\":" + " \"" + {dndValue} + "\""; fhemcmd = "setreading"; + + + + true + Script: flow_informations = "\"flow_informations\":" + " \"" + {informationFlow_state} + "\""; fhemcmd = "setreading"; + + + + true + Script: flow_informations = "\"userFlowState\":" + " \"" + {flowState} + "\""; fhemcmd = "setreading"; + + + + true + Script: flow_SetCommands = "\"flow_SetCommands\":" + " \"" + {setCommandFlow_state} + "\""; fhemcmd = "setreading"; + + + + true + Script: flowState = "active" + + + + true + Script: flowState = "inactive" + + + + true + Script: global_activetask = "none"; global_apssid = "none"; global_userflowstate = "none"; + + + + true + Script: global_amadid = getDate(); + + + + true + Script: global_bridgeport = {value} + + + + true + Script: global_fhemdevice = {value} + + + + true + Script: global_fhemip = {value} + + + + true + Script: if(package_name == "com.google.android.music") { musicapp = "Google Musik" } if(package_name == "com.amazon.mp3") { musicapp = "Amazon Musik" } if(package_name == "com.google.android.videos") { musicapp = "Google Video" } if(package_name == "com.spotify.music") { musicapp = "Spotify Musik" } if(package_name == "com.google.android.youtube") { musicapp = "YouTube" } if(package_name == "tunein.player") { musicapp = "TuneIn Player" } if(package_name == "com.rhapsody.alditalk") { musicapp = "Aldi Life Musik" } if(package_name == "org.videolan.vlc") { musicapp = "VLC Player" } + + + + true + Script: if(playback_state == 0) { playback_state = "keiner" } if(playback_state == 1) { playback_state = "gestoppt" } if(playback_state == 2) { playback_state = "pausiert" } if(playback_state == 3) { playback_state = "spielt ab" } if(playback_state == 4) { playback_state = "spult vorwärts" } if(playback_state == 5) { playback_state = "spült rückwärts" } if(playback_state == 6) { playback_state = "buffert" } if(playback_state == 7) { playback_state = "Fehler" } if(playback_state == 8) { playback_state = "verbindet" } if(playback_state == 9) { playback_state = "springt zum vorherigen" } if(playback_state == 10) { playback_state = "springt zum nächsten" } if(playback_state == 11) { playback_state = "springt zu Position in Wiedergabeliste" } + + + + true + Script: if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_ALERT") { nextalarmstate = "alert" } if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DISMISS") { nextalarmstate = "dismiss" } if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DONE") { nextalarmstate = "done" } if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_SNOOZE") { nextalarmstate = "snooze" } + + + + true + Script: incomingCaller = "\"incomingCallerName\":" + " \"" + {contact_name} + "\"" + "," + "\"incomingCallerNumber\":" + " \"" + {incoming_number} + "\""; fhemcmd = "setreading"; + + + + true + Script: incommingTelegramMessage = "\"incommingTelegramMessageFrom\":" + " \"" + {notification_text} + "\""; fhemcmd = "setreading"; + + + + true + Script: incommingWhatsAppMessage = "\"incommingWhatsAppMessageFrom\":" + " \"" + {notification_text} + "\""; fhemcmd = "setreading"; + + + + true + Script: informationFlow_state = "aktiv" + + + + true + Script: informationFlow_state = "inaktiv" + + + + true + Script: intentRadioState = "\"intentRadioState\":" + " \"" + {irstate} + "\"" + "," + "\"intentRadioName\":" + " \"" + {irname} + "\""; fhemcmd = "setreading"; + + + + true + Script: keyguard = "locked" + + + + true + Script: keyguard = "unlocked" + + + + true + Script: keyguardSet = "0" + + + + true + Script: keyguardSet = "1" + + + + true + Script: keyguardSet = "\"keyguardSet\":" + " \"" + {keyguardSet} + "\""; fhemcmd = "setreading"; + + + + true + Script: keyguardSet = "not supported from your device" + + + + true + Script: next_alarmday = "{next_alarm,dateformat,c}" + + + + true + Script: next_alarmtime = "{next_alarm,dateformat,HH:mm}" + + + + true + Script: nextAlarm = "\"nextAlarmTime\":" + " \"" + {next_alarmtime} + "\"" + "," + "\"nextAlarmDay\":" + " \"" + {next_alarmday} + "\""; fhemcmd = "setreading"; + + + + true + Script: nextAlarmState = "\"nextAlarmState\":" + " \"" + {nextalarmstate} + "\""; fhemcmd = "setreading"; + + + + true + Script: notification_text = "Aktiviere Automagic unter Einstellungen -> Benachrichtigungen -> Benachrichtigungszugriff" + + + + true + Script: notification_text = "Flow '{param_flowname}' has been set {param_flowstate}" + + + + true + Script: notification_text = "Flow install: path for download not exist" + + + + true + Script: notification_text = "Flowset Update: path for download not exist" + + + + true + Script: notification_text = "not supported from your device" + + + + true + Script: powerinfo = "\"powerLevel\":" + " \"" + "{battery_percentage,numberformat,0}" + "\"" + "," + "\"powerPlugged\":" + " \"" + {battery_plugged} + "\"" + "," + "\"batteryTemperature\":" + " \"" + "{battery_temperature/10.0,numberformat.0.0}" + "\"" + "," + "\"batteryHealth\":" + " \"" + {battery_health} + "\""; fhemcmd = "setreading"; + + + + true + Script: readingsvalcmd = "{global_fhemdevice} deviceState kaputt"; fhemcmd = "readingsval"; respfirstrun = "none"; + + + + true + Script: runTask = "0" + + + + true + Script: runTask = "1" + + + + true + Script: runTask = "not supported android version" + + + + true + Script: runTask = "null" + + + + true + Script: scrcount = 0 + + + + true + Script: scrcount = scrcount + 1 + + + + true + Script: screen = "\"screen\":" + " \"" + {screen_state} + "\""; fhemcmd = "setreading"; + + + + true + Script: screen_orientation = "landscape" + + + + true + Script: screen_orientation = "portrait" + + + + true + Script: screen_orientation_mode = "auto" + + + + true + Script: screen_orientation_mode = "manual" + + + + true + Script: screen_state = "off {keyguard}" + + + + true + Script: screen_state = "off" + + + + true + Script: screen_state = "on {keyguard}" + + + + true + Script: screen_state = "on" + + + + true + Script: screenBrightness = "\"screenBrightness\":" + " \"" + {screenBrightness} + "\""; fhemcmd = "setreading"; + + + + true + Script: screenOrientation = "\"screenOrientation\":" + " \"" + {screen_orientation} + "\"" + "," + "\"screenOrientationMode\":" + " \"" + {screen_orientation_mode} + "\""; fhemcmd = "setreading"; + + + + false + Script: Set FHEMDATA JSON + + + + false + Script: Set FHEMDATA JSON First Run Assistant + + + + false + Script: Set FHEMREADINGSVALCMD JSON + + + + false + Script: Set FHEMSETCMD JSON + + + + false + Script: Set FHEMVOICEINPUTDATA JSON + + + + true + Script: setCommandFlow_state = "aktiv" + + + + true + Script: setCommandFlow_state = "inaktiv" + + + + true + Script: subtitle = "no player active"; title = "no player active"; description = "no player active"; musicapp = "no player active"; icon = "no player active" + + + + true + Script: udef_trigger = "setLockPin" + + + + true + Script: voiceinputdata = value; fhemcmd = "voiceinputvalue"; + + + + true + Script: voiceinputdata = {left(value, (indexOf(value, " und ")))}; fhemcmd = "voiceinputvalue"; + + + + true + Script: volume = {volumeBT} + + + + true + Script: volume = {volumeSP} + + + + true + Script: volumeNotification = "\"volumeNotification\":" + " \"" + {volumeNotification} + "\""; fhemcmd = "setreading"; + + + + true + Script: volumeRingSound = "\"volumeRingSound\":" + " \"" + {volumeRingSound} + "\""; fhemcmd = "setreading"; + + + + true + Script: volumevalue = "\"volume\":" + " \"" + {volume} + "\""; fhemcmd = "setreading"; + + + + false + Script: Zuordnung Mediaplayer + + + + true + Setze Alarm: um {param_hour}:{param_minute} + + {param_hour} + {param_minute} + + + false + true + + + true + Setze Display Helligkeit: {param_brightness} + false + {param_brightness} + false + 50 + true + + + true + Setze Display Orientierung: Auf Default zurücksetzen + UNSPECIFIED + false + + + true + Setze Display Orientierung: Landscape + LANDSCAPE + false + + + true + Setze Display Orientierung: Portrait + PORTRAIT + false + + + true + Setze Flow Status: Aktivieren Informations + true + Informations + + + + true + Setze Flow Status: Aktivieren Send Data to AMADCommBridge + true + Send Data to AMADCommBridge + + + + true + Setze Flow Status: Aktivieren SetCommands + true + SetCommands + + + + true + Setze Flow Status: Aktivieren SetCommands,Update AMAD Flowset,VoiceControl + true + SetCommands,Update AMAD Flowset,VoiceControl + + + + true + Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma} + true + {imported_flow_names,listformat,comma} + + + + true + Setze Flow Status: Aktivieren {param_flowname} + true + {param_flowname} + + + + true + Setze Flow Status: Deaktivieren First Run Assistant + false + First Run Assistant + + + + true + Setze Flow Status: Deaktivieren {param_flowname} + false + {param_flowname} + + + + true + Setze Lock PIN/Passwort: PIN/Passwort zurücksetzen + true + PIN + false + param_lockPIN + + + true + Setze Lock PIN/Passwort: Setze PIN von Variable param_lockpin + false + PIN + false + param_lockpin + + + false + Setze Timer + + {param_minute}m + true + + + true + Setze Unterbrechnungen-Modus: Alle / Immer unterbrechen + NOTIFICATION_LISTENER + OFF + + + true + Setze Unterbrechnungen-Modus: Keine / Nicht unterbrechen + NOTIFICATION_LISTENER + NO_INTERRUPTIONS + + + true + Setze Unterbrechnungen-Modus: Nur Wecker (Android 6+) + NOTIFICATION_LISTENER + ALARMS_ONLY + + + true + Setze Unterbrechnungen-Modus: Wichtig / Nur wichtige Unterbrechnungen zulassen + NOTIFICATION_LISTENER + IMPORTANT_INTERRUPTIONS + + + false + Setze voice Variablen + + + + true + Setze Vollbild Modus: Auf Default zurücksetzen + UNSPECIFIED + false + + + true + Setze Vollbild Modus: Navigation nicht anzeigen + HIDE_NAVIGATION + false + + + true + SMS senden an: an {param_smsnumber} '{param_smsmessage}' (10 in 12h) + + {param_smsnumber} + {param_smsmessage} + true + true + 10 + 43200000 + false + false + true + 600000 + + + true + Sound: {param_notifypath}{param_notifyfile} als Benachrichtigung + FILE + Lautlos + {param_notifypath}{param_notifyfile} + NOTIFICATION + + false + true + true + TRANSIENT + + + true + Sprachausgabe: Alle Informationen wurden nun erfasst und zur Amaad Comm Bridge gesendet. Ich werde gleich einmal prüfen ob die Einrichtung des Devices in Fhem gelungen ist. Gib mir bitte bis zu einer Minute Zeit für die Prüfung. + MUSIC + Alle Informationen wurden nun erfasst und zur Amaad Comm Bridge gesendet. Ich werde gleich einmal prüfen ob die Einrichtung des Devices in Fhem gelungen ist. Gib mir bitte bis zu einer Minute Zeit für die Prüfung. + de_DE + true + 1.0 + true + 1.0 + false + true + false + true + TRANSIENT + + + false + Sprachausgabe: Deutsch + MUSIC + {param_message} + de_DE + true + 1.0 + true + {param_msgspeed} + true + false + false + true + TRANSIENT + + + true + Sprachausgabe: Die Einrichtung ist nun abgeschlossen und das Amaad Device online. +Soll der Assistent gelöscht werden? + MUSIC + Die Einrichtung ist nun abgeschlossen und das Amaad Device online. +Soll der Assistent gelöscht werden? + de_DE + true + 1.0 + true + 1.0 + false + true + false + true + TRANSIENT + + + true + Sprachausgabe: Die Einrichtung ist nun abgeschlossen und das Amaad Device wurde angelegt. Es scheint aber noch keine Verbindung zwischen Fhem und Deinem Amaad Device zu bestehen. Mache am besten einmal ein Status Request in Fhem für das Amaad Device. Ist der Status in Fhem weiterhin offline schaue bitte ob alle Amaad, Flows aktiv sind. +Soll der Assistent gelöscht werden? + MUSIC + Die Einrichtung ist nun abgeschlossen und das Amaad Device wurde angelegt. Es scheint aber noch keine Verbindung zwischen Fhem und Deinem Amaad Device zu bestehen. Mache am besten einmal ein Status Request in Fhem für das Amaad Device. Ist der Status in Fhem weiterhin offline schaue bitte ob alle Amaad, Flows aktiv sind. +Soll der Assistent gelöscht werden? + de_DE + true + 1.0 + true + 1.0 + false + true + false + true + TRANSIENT + + + true + Sprachausgabe: Du möchtest also nicht fortfahren. Das ist schade. Bitte bedenke das dieses Android Gerät somit nicht als Amaad Device in Fhem angelegt ist. Du kannst jeder Zeit den Assistenten Flow neu aktivieren und von vorn beginnen. +Auf Wiedersehen. + MUSIC + Du möchtest also nicht fortfahren. Das ist schade. Bitte bedenke das dieses Android Gerät somit nicht als Amaad Device in Fhem angelegt ist. Du kannst jeder Zeit den Assistenten Flow neu aktivieren und von vorn beginnen. +Auf Wiedersehen. + de_DE + true + 1.0 + true + 1.0 + false + true + false + true + TRANSIENT + + + false + Sprachausgabe: Englisch + MUSIC + {param_message} + en_US + true + 1.0 + true + {param_msgspeed} + true + false + false + true + TRANSIENT + + + true + Sprachausgabe: In Ordnung. Der Einrichtungs Assistent bleibt erhalten. Auf Wiedersehen. + MUSIC + In Ordnung. Der Einrichtungs Assistent bleibt erhalten. Auf Wiedersehen. + de_DE + true + 1.0 + true + 1.0 + false + true + false + true + TRANSIENT + + + true + Sprachausgabe: In Ordnung. Der Einrichtungs Assistent wird gelöscht. Auf Wiedersehen. + MUSIC + In Ordnung. Der Einrichtungs Assistent wird gelöscht. Auf Wiedersehen. + de_DE + true + 1.0 + true + 1.0 + false + true + false + true + TRANSIENT + + + true + Sprachausgabe: Leider scheint es ein Problem beim einrichten des Fhem Devices gegeben zu haben. Hast Du die Amaad Comm Bridge definiert? Und ist sie auch aktiv? Sollte es weiterhin Probleme geben, wende Dich bitte an Cooltux alias Leon, im Fhem Forum. +Soll der Assistent gelöscht werden? + MUSIC + Leider scheint es ein Problem beim einrichten des Fhem Devices gegeben zu haben. Hast Du die Amaad Comm Bridge definiert? Und ist sie auch aktiv? Sollte es weiterhin Probleme geben, wende Dich bitte an Cooltux alias Leon, im Fhem Forum. +Soll der Assistent gelöscht werden? + de_DE + true + 1.0 + true + 1.0 + false + true + false + true + TRANSIENT + + + true + Sprachausgabe: Oh das tut mir leid, da scheine ich Dich nicht verstanden zu haben. Bitte versuche es mit etwas Ruhe im Hintergrund noch einmal. + MUSIC + Oh das tut mir leid, da scheine ich Dich nicht verstanden zu haben. Bitte versuche es mit etwas Ruhe im Hintergrund noch einmal. + de_DE + true + 1.0 + true + 1.0 + false + true + false + true + TRANSIENT + + + true + Sprachausgabe: Wunderbar. Bitte nimm Dir Zeit und lese Dir die Hilfe Dialoge genau durch. Wenn Du Dir unsicher bist, kannst Du die Standardeinstellung, sofern vorhanden, belassen. Lass uns nun mit der Einrichtung beginnen. + MUSIC + Wunderbar. Bitte nimm Dir Zeit und lese Dir die Hilfe Dialoge genau durch. Wenn Du Dir unsicher bist, kannst Du die Standardeinstellung, sofern vorhanden, belassen. Lass uns nun mit der Einrichtung beginnen. + de_DE + true + 1.0 + true + 1.0 + false + true + false + true + TRANSIENT + + + false + Spracheingabe wurde nicht erkannt + NOTIFICATION + Ihre Eingabe wurde nicht verstanden + de_DE + true + 1.0 + true + 1.0 + true + false + false + true + TRANSIENT + + + true + Starte Daydream + + + true + URL in Browser öffnen: {param_url} (mit {param_browserapp}/{param_browserappclass}) + {param_url} + true + {param_browserapp} + {param_browserappclass} + + + + true + Vibrieren: Pattern 2 (-- --) + false + vibrate_pattern_2 + 0,500 + + + true + WLAN Reassoziieren + + + First Run Assistant + AMADNG Info/Control Flowset v3.9.52 + false + PARALLEL + + App Task Beendet: ch.gridvision.ppam.androidautomagic + + Medianlautstärken Speichern + Lautstärke einstellen: Medien auf Level 8 + Medienlautstärke Wiederherstellen + Medianlautstärken Speichern + Lautstärke einstellen: Medien auf Level 8 + AMAD Voice Control + Expression: value != "" + Expression: value == "ja" + Expression: value == "nein" + Medianlautstärken Speichern + Medianlautstärken Speichern + Lautstärke einstellen: Medien auf Level 8 + Lautstärke einstellen: Medien auf Level 8 + Flows löschen: First Run Assistant + Medienlautstärke Wiederherstellen + Lautstärke einstellen: Medien auf Level 8 + Medianlautstärken Speichern + Medianlautstärken Speichern + Lautstärke einstellen: Medien auf Level 8 + Expression: value == "nein" + Medianlautstärken Speichern + Expression: value != "" + Flows löschen: First Run Assistant + Lautstärke einstellen: Medien auf Level 8 + Medianlautstärken Speichern + Medienlautstärke Wiederherstellen + Lautstärke einstellen: Medien auf Level 8 + Expression: value == "ja" + AMAD Voice Control + Medienlautstärke Wiederherstellen + Sprachausgabe: Oh das tut mir leid, da scheine ich Dich nicht verstanden zu haben. Bitte versuche es mit etwas Ruhe im Hintergrund noch einmal. + Sprachausgabe: In Ordnung. Der Einrichtungs Assistent bleibt erhalten. Auf Wiedersehen. + Sprachausgabe: In Ordnung. Der Einrichtungs Assistent wird gelöscht. Auf Wiedersehen. + Sprachausgabe: Die Einrichtung ist nun abgeschlossen und das Amaad Device online. +Soll der Assistent gelöscht werden? + Sprachausgabe: Oh das tut mir leid, da scheine ich Dich nicht verstanden zu haben. Bitte versuche es mit etwas Ruhe im Hintergrund noch einmal. + Sprachausgabe: In Ordnung. Der Einrichtungs Assistent bleibt erhalten. Auf Wiedersehen. + Sprachausgabe: In Ordnung. Der Einrichtungs Assistent wird gelöscht. Auf Wiedersehen. + Medianlautstärken Speichern + Lautstärke einstellen: Medien auf Level 8 + Sprachausgabe: Leider scheint es ein Problem beim einrichten des Fhem Devices gegeben zu haben. Hast Du die Amaad Comm Bridge definiert? Und ist sie auch aktiv? Sollte es weiterhin Probleme geben, wende Dich bitte an Cooltux alias Leon, im Fhem Forum. +Soll der Assistent gelöscht werden? + Medienlautstärke Wiederherstellen + AMAD Voice Control + Expression: value != "" + Expression: value == "ja" + Expression: value == "nein" + Medianlautstärken Speichern + Lautstärke einstellen: Medien auf Level 8 + Sprachausgabe: Oh das tut mir leid, da scheine ich Dich nicht verstanden zu haben. Bitte versuche es mit etwas Ruhe im Hintergrund noch einmal. + Medienlautstärke Wiederherstellen + Medienlautstärke Wiederherstellen + Lautstärke einstellen: Medien auf Level 8 + Medianlautstärken Speichern + Medianlautstärken Speichern + Lautstärke einstellen: Medien auf Level 8 + Medienlautstärke Wiederherstellen + Flows löschen: First Run Assistant + Sprachausgabe: In Ordnung. Der Einrichtungs Assistent bleibt erhalten. Auf Wiedersehen. + Sprachausgabe: In Ordnung. Der Einrichtungs Assistent wird gelöscht. Auf Wiedersehen. + Sprachausgabe: Die Einrichtung ist nun abgeschlossen und das Amaad Device wurde angelegt. Es scheint aber noch keine Verbindung zwischen Fhem und Deinem Amaad Device zu bestehen. Mache am besten einmal ein Status Request in Fhem für das Amaad Device. Ist der Status in Fhem weiterhin offline schaue bitte ob alle Amaad, Flows aktiv sind. +Soll der Assistent gelöscht werden? + Abfrage + Medienlautstärke Wiederherstellen + Medienlautstärke Wiederherstellen + Script: amadcmd = "firstrun" + Script: amaddevice_ip = {value} + Eingabedialog: Android Device IP Adresse Einzeiliger Text Bitte gebe die IP Adresse Deines Androidgerätes an. NUR IP kein FQDN!!! + Script: global_fhemip = {value} + Eingabedialog: FHEM Server IP Einzeiliger Text Bitte gebe die IP Adresse oder den FQDN Deines FHEM Servers an. + Script: global_fhemdevice = {value} + Eingabedialog: FHEM Devicename Einzeiliger Text Wie soll das Device in FHEM heißen? + Script: global_bridgeport = {value} + Eingabedialog: AMADCommBridge Port Einzeiliger Text Bitte gebe den Port der AMADCommBridge vom FHEM Server an. + Medienlautstärke Wiederherstellen + Sprachausgabe: Wunderbar. Bitte nimm Dir Zeit und lese Dir die Hilfe Dialoge genau durch. Wenn Du Dir unsicher bist, kannst Du die Standardeinstellung, sofern vorhanden, belassen. Lass uns nun mit der Einrichtung beginnen. + Lautstärke einstellen: Medien auf Level 8 + Medianlautstärken Speichern + Medienlautstärke Wiederherstellen + Sprachausgabe: Oh das tut mir leid, da scheine ich Dich nicht verstanden zu haben. Bitte versuche es mit etwas Ruhe im Hintergrund noch einmal. + Lautstärke einstellen: Medien auf Level 8 + Medianlautstärken Speichern + Expression: value == "nein" + Expression: value == "ja" + Medianlautstärken Speichern + Lautstärke einstellen: Medien auf Level 8 + Sprachausgabe: Du möchtest also nicht fortfahren. Das ist schade. Bitte bedenke das dieses Android Gerät somit nicht als Amaad Device in Fhem angelegt ist. Du kannst jeder Zeit den Assistenten Flow neu aktivieren und von vorn beginnen. +Auf Wiedersehen. + Medienlautstärke Wiederherstellen + Expression: value != "" + AMAD Voice Control + Medienlautstärke Wiederherstellen + AMAD First Run Assistent Begrüßung + Lautstärke einstellen: Medien auf Level 8 + Medianlautstärken Speichern + Setze Flow Status: Aktivieren Send Data to AMADCommBridge + Setze Flow Status: Deaktivieren First Run Assistant + Script: global_amadid = getDate(); + Script: global_activetask = "none"; global_apssid = "none"; global_userflowstate = "none"; + Setze Flow Status: Aktivieren Informations + Medienlautstärke Wiederherstellen + Medienlautstärke Wiederherstellen + Setze Flow Status: Aktivieren SetCommands,Update AMAD Flowset,VoiceControl + Pause: 2s (Gerät wach halten) + Script: readingsvalcmd = "{global_fhemdevice} deviceState kaputt"; fhemcmd = "readingsval"; respfirstrun = "none"; + Expression: respreadingsval != "kaputt" and respreadingsval != "none" + Expression: respreadingsval == "online" + Flows ausführen: Send Data to AMADCommBridge + Sprachausgabe: Alle Informationen wurden nun erfasst und zur Amaad Comm Bridge gesendet. Ich werde gleich einmal prüfen ob die Einrichtung des Devices in Fhem gelungen ist. Gib mir bitte bis zu einer Minute Zeit für die Prüfung. + Lautstärke einstellen: Medien auf Level 8 + Medianlautstärken Speichern + Medienlautstärke Wiederherstellen + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Informations + AMADNG Info/Control Flowset v3.9.52 + true + QUEUE + 900 + + Genereller Broadcast: wenn com.android.deskclock.ALARM_DONE + Genereller Broadcast: wenn org.smblott.intentradio.STATE + Systemeinstellung verändert: System volume_music_headphone + Systemeinstellung verändert: System volume_music_headset + Stromversorgung: Angeschlossen + Bluetooth Status: Schaltet ein, Ein + Display Status: Aus + Display Orientierung: Portrait + Genereller Broadcast: wenn com.android.deskclock.ALARM_SNOOZE + Genereller Broadcast: wenn com.android.deskclock.ALARM_DISMISS + Bluetooth Status: Schaltet aus, Aus + Unterbrechnungen-Modus: Wichtig / Nur wichtige Unterbrechnungen zulassen + Benachrichtigung in Statusbar angezeigt: com.whatsapp + Daydream Status: Gestoppt + Benachrichtigung in Statusbar angezeigt: ch.gridvision.ppam.androidautomagic + Akku Ladestand: grösser als 0% + Eingehender Anruf. Status: Klingelt, Nummern: Alle + Display Status: Ein + Systemeinstellung verändert: System volume_music_speaker + Systemeinstellung verändert: System screen_brightness + Daydream Status: Gestartet + Dock Event: Docked + Systemeinstellung verändert: System volume_music_bt_a2dp + Unterbrechnungen-Modus: Alle / Immer unterbrechen + HTTP Request: /fhem-amad/deviceInfo/ + Periodischer Timer: alle 30s + Genereller Broadcast: wenn com.android.deskclock.ALARM_ALERT + Benachrichtigung in Statusbar angezeigt: org.telegram.messenger + Stromversorgung: Entfernt + Systemeinstellung verändert: System next_alarm + Benachrichtigung in Statusbar entfernt: ch.gridvision.ppam.androidautomagic + App Task Beendet + Unterbrechnungen-Modus: Keine / Nicht unterbrechen + Dock Event: Undocked + Display Orientierung: Landscape + Unterbrechnungen-Modus: Nur Wecker (Android 6+) + Flugmodus: Aus + Systemeinstellung verändert: System volume_ring_speaker + Systemeinstellung verändert: System volume_ring + Medien Session verändert + + Script: daydream_state = "on" + Script: daydream_state = "off" + Expression: airpcount < 11 + Script: keyguard = "unlocked" + Display Orientierung: Portrait + Script: screen_orientation = "portrait" + Script: screen_orientation = "landscape" + Script: dock_state = "docked" + Script: dock_state = "undocked" + Script: keyguardSet = "0" + Script: screen_orientation_mode = "manual" + Script: scrcount = 0 + Script: keyguard = "locked" + Expression: scrcount < 5 + Script: scrcount = scrcount + 1 + Pause: 2s (Gerät wach halten) + Script: airpcount = airpcount + 1 + Dock Status: Docked + Display automatisch drehen eingeschaltet + Expression: trigger == "Daydream Status: Gestartet" + Bluetooth eingeschaltet + Expression: trigger == "App Task Beendet" + Keyguard gesperrt + Expression: keyguard == "locked" + Expression: getAndroidSDKVersion() >= "16" + Script: keyguardSet = "not supported from your device" + Display eingeschaltet + Display eingeschaltet + Expression: getAndroidSDKVersion() >= "16" + Unterbrechnungen-Modus: Nur Wecker (Android 6+) + Unterbrechnungen-Modus: Keine / Nicht unterbrechen + Unterbrechnungen-Modus: Wichtig / Nur wichtige Unterbrechnungen zulassen + Unterbrechnungen-Modus: Alle / Immer unterbrechen + Script: dndValue = "always" + Script: dndValue = "onlyImportant" + Script: dndValue = "never" + Script: dndValue = "alarmClockOnly" + Script: screen_state = "on" + Script: screen_state = "off" + Script: screen_state = "on {keyguard}" + Script: screen_state = "off {keyguard}" + Script: airplanemode = "off" + Script: bluetooth_state = "on" + Script: androidVersion = "not supported funktion" + Expression: package_name == {global_activetask} + App Task läuft: {global_activetask} (neuster) + Script: runTask = "1" + Script: runTask = "0" + Expression: getAndroidSDKVersion() >= "19" + Script: runTask = "not supported android version" + Script: runTask = "null" + Expression: trigger == "Periodischer Timer: alle 30s" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + Expression: trigger == "Periodischer Timer: alle 30s" + Expression: global_activetask != null + Expression: trigger == "Display Status: Aus" or trigger == "Display Status: Ein" or udef_trigger == "setLockPin" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + Expression: trigger == "Daydream Status: Gestartet" or trigger == "Daydream Status: Gestoppt" + Expression: trigger == "Display Orientierung: Landscape" or trigger == "Display Orientierung: Portrait" or trigger == "Display Status: Ein" or trigger == "Display Status: Aus" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + Expression: trigger == "Dock Event: Docked" or trigger == "Dock Event: Undocked" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + Expression: trigger == "Akku Ladestand: grösser als 0%" + Stromversorgung: Angeschlossen + Script: screen_orientation_mode = "auto" + Script: bluetooth_state = "off" + Script: if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_ALERT") { nextalarmstate = "alert" } if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DISMISS") { nextalarmstate = "dismiss" } if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DONE") { nextalarmstate = "done" } if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_SNOOZE") { nextalarmstate = "snooze" } + Bluetooth Gerät verbunden: Beliebiges Geräte + Script: connected_devices_names = "none"; connected_devices_addresses = "none" + Expression: trigger == "Bluetooth Status: Schaltet aus, Aus" or trigger == "Bluetooth Status: Schaltet ein, Ein" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + Keyguard mit Sicherheit + Script: keyguardSet = "1" + Expression: udef_trigger == "setLockPin" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + Expression: trigger == "Eingehender Anruf. Status: Klingelt, Nummern: Alle" + Expression: trigger == "Flugmodus: Aus" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + Expression: trigger == "Systemeinstellung verändert: System screen_brightness" + Bluetooth Gerät verbunden: Beliebiges Geräte (Advanced Audio Distribution) + Script: volume = {volumeBT} + Pause: 2s (Gerät wach halten) + Musik Aktiv + Benachrichtigung auf Bildschirm: [AMAD2] Nicht mehr benötigte AMAD Flows wurden entfernt! (lange) + Expression: trigger == "Systemeinstellung verändert: System volume_music_bt_a2dp" or trigger == "Systemeinstellung verändert: System volume_music_speaker" or trigger == "Systemeinstellung verändert: System volume_music_headphone" or trigger == "Systemeinstellung verändert: System volume_music_headset" + Initialisiere Variable Systemeinstellung: volumeMusikBluetooth.2 + Script: volume = {volumeSP} + Initialisiere Variable Systemeinstellung: volumeMusikSpeaker.2 + Expression: trigger == "Unterbrechnungen-Modus: Alle / Immer unterbrechen" or trigger == "Unterbrechnungen-Modus: Keine / Nicht unterbrechen" or trigger == "Unterbrechnungen-Modus: Nur Wecker (Android 6+)" or trigger == "Unterbrechnungen-Modus: Wichtig / Nur wichtige Unterbrechnungen zulassen" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + Expression: getAndroidSDKVersion() >= "21" + Flow Aktiv: SetCommands + Script: setCommandFlow_state = "aktiv" + Script: setCommandFlow_state = "inaktiv" + Setze Flow Status: Aktivieren SetCommands + Script: flowState = "active" + Expression: global_userflowstate != "none" + Flow Aktiv: {global_userflowstate} + Expression: trigger == "Periodischer Timer: alle 30s" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + Expression: trigger == "Periodischer Timer: alle 30s" + Script: flowState = "inactive" + Script: airpcount = 0 + Host erreichbar: {global_fhemip}:{global_bridgeport} + Pause: 2s (Gerät wach halten) + WLAN Reassoziieren + Expression: trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_ALERT" or trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DISMISS" or trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DONE" or trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_SNOOZE" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + Expression: trigger == "Systemeinstellung verändert: System next_alarm" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + Initialisiere Variable Nächster Alarm: next_alarm + Script: next_alarmday = "{next_alarm,dateformat,c}" + Script: next_alarmtime = "{next_alarm,dateformat,HH:mm}" + Expression: global_fhemip != null or global_bridgeport != null + Expression: getAndroidSDKVersion() >= "19" + Script: notification_text = "Aktiviere Automagic unter Einstellungen -> Benachrichtigungen -> Benachrichtigungszugriff" + Script: notification_text = "not supported from your device" + Expression: getAndroidSDKVersion() >= "19" + Script: notification_text = "Aktiviere Automagic unter Einstellungen -> Benachrichtigungen -> Benachrichtigungszugriff" + Expression: trigger == "Genereller Broadcast: wenn org.smblott.intentradio.STATE" + Expression: trigger == "Benachrichtigung in Statusbar angezeigt: com.whatsapp" + Benachrichtigung in Statusbar angezeigt: WhatsApp + Script: notification_text = "not supported from your device" + Benachrichtigung in Statusbar angezeigt: Telegram Messenger + Host erreichbar: {global_fhemip}:{global_bridgeport} + Expression: trigger == "Benachrichtigung in Statusbar angezeigt: org.telegram.messenger" + Initialisiere Variable Systemeinstellung: screenBrightness + Expression: trigger == "HTTP Request: /fhem-amad/deviceInfo/" + Expression: trigger == "Systemeinstellung verändert: System volume_ring_speaker" + Initialisiere Variable Systemeinstellung: volumeNotification + Expression: trigger == "Systemeinstellung verändert: System volume_ring" + Initialisiere Variable Systemeinstellung: volumeRingSound + Script: subtitle = "no player active"; title = "no player active"; description = "no player active"; musicapp = "no player active"; icon = "no player active" + Script: if(playback_state == 0) { playback_state = "keiner" } if(playback_state == 1) { playback_state = "gestoppt" } if(playback_state == 2) { playback_state = "pausiert" } if(playback_state == 3) { playback_state = "spielt ab" } if(playback_state == 4) { playback_state = "spult vorwärts" } if(playback_state == 5) { playback_state = "spült rückwärts" } if(playback_state == 6) { playback_state = "buffert" } if(playback_state == 7) { playback_state = "Fehler" } if(playback_state == 8) { playback_state = "verbindet" } if(playback_state == 9) { playback_state = "springt zum vorherigen" } if(playback_state == 10) { playback_state = "springt zum nächsten" } if(playback_state == 11) { playback_state = "springt zu Position in Wiedergabeliste" } + Expression: trigger == "Medien Session verändert" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + Script: if(package_name == "com.google.android.music") { musicapp = "Google Musik" } if(package_name == "com.amazon.mp3") { musicapp = "Amazon Musik" } if(package_name == "com.google.android.videos") { musicapp = "Google Video" } if(package_name == "com.spotify.music") { musicapp = "Spotify Musik" } if(package_name == "com.google.android.youtube") { musicapp = "YouTube" } if(package_name == "tunein.player") { musicapp = "TuneIn Player" } if(package_name == "com.rhapsody.alditalk") { musicapp = "Aldi Life Musik" } if(package_name == "org.videolan.vlc") { musicapp = "VLC Player" } + Get Android Version + WLAN verfügbar: {global_apssid} + Script: volumeRingSound = "\"volumeRingSound\":" + " \"" + {volumeRingSound} + "\""; fhemcmd = "setreading"; + Script: intentRadioState = "\"intentRadioState\":" + " \"" + {irstate} + "\"" + "," + "\"intentRadioName\":" + " \"" + {irname} + "\""; fhemcmd = "setreading"; + Script: incommingTelegramMessage = "\"incommingTelegramMessageFrom\":" + " \"" + {notification_text} + "\""; fhemcmd = "setreading"; + Script: incommingWhatsAppMessage = "\"incommingWhatsAppMessageFrom\":" + " \"" + {notification_text} + "\""; fhemcmd = "setreading"; + Script: incomingCaller = "\"incomingCallerName\":" + " \"" + {contact_name} + "\"" + "," + "\"incomingCallerNumber\":" + " \"" + {incoming_number} + "\""; fhemcmd = "setreading"; + Script: keyguardSet = "\"keyguardSet\":" + " \"" + {keyguardSet} + "\""; fhemcmd = "setreading"; + Script: dockingState = "\"dockingState\":" + " \"" + {dock_state} + "\""; fhemcmd = "setreading"; + Script: screenOrientation = "\"screenOrientation\":" + " \"" + {screen_orientation} + "\"" + "," + "\"screenOrientationMode\":" + " \"" + {screen_orientation_mode} + "\""; fhemcmd = "setreading"; + Script: screenBrightness = "\"screenBrightness\":" + " \"" + {screenBrightness} + "\""; fhemcmd = "setreading"; + Script: daydream = "\"daydream\":" + " \"" + {daydream_state} + "\""; fhemcmd = "setreading"; + Script: nextAlarm = "\"nextAlarmTime\":" + " \"" + {next_alarmtime} + "\"" + "," + "\"nextAlarmDay\":" + " \"" + {next_alarmday} + "\""; fhemcmd = "setreading"; + Script: volumevalue = "\"volume\":" + " \"" + {volume} + "\""; fhemcmd = "setreading"; + Script: volumeNotification = "\"volumeNotification\":" + " \"" + {volumeNotification} + "\""; fhemcmd = "setreading"; + Script: btdeviceinfo = "\"connectedBTdevices\":" + " \"" + {connected_devices_names} + "\"" + "," + "\"connectedBTdevicesMAC\":" + " \"" + {connected_devices_addresses} + "\""; fhemcmd = "setreading"; + Script: bluetooth = "\"bluetooth\":" + " \"" + {bluetooth_state} + "\""; fhemcmd = "setreading"; + Script: airplanemode = "\"airplanemode\":" + " \"" + {airplanemode} + "\""; fhemcmd = "setreading"; + Script: screen = "\"screen\":" + " \"" + {screen_state} + "\""; fhemcmd = "setreading"; + Script: nextAlarmState = "\"nextAlarmState\":" + " \"" + {nextalarmstate} + "\""; fhemcmd = "setreading"; + Script: doNotDisturb = "\"doNotDisturb\":" + " \"" + {dndValue} + "\""; fhemcmd = "setreading"; + Script: flow_informations = "\"userFlowState\":" + " \"" + {flowState} + "\""; fhemcmd = "setreading"; + Script: flow_SetCommands = "\"flow_SetCommands\":" + " \"" + {setCommandFlow_state} + "\""; fhemcmd = "setreading"; + Script: checkActiveTask = "\"checkActiveTask\":" + " \"" + {runTask} + "\""; fhemcmd = "setreading"; + Script: deviceState = "\"deviceState\": \"online\""; fhemcmd = "setreading"; + Expression: Leon == "Gaultier" + Flows löschen: MultimediaControl + Script: androidVersion = "\"androidVersion\":" + " \"" + {androidVersion} + "\""; fhemcmd = "setreading"; + Script: powerinfo = "\"powerLevel\":" + " \"" + "{battery_percentage,numberformat,0}" + "\"" + "," + "\"powerPlugged\":" + " \"" + {battery_plugged} + "\"" + "," + "\"batteryTemperature\":" + " \"" + "{battery_temperature/10.0,numberformat.0.0}" + "\"" + "," + "\"batteryHealth\":" + " \"" + {battery_health} + "\""; fhemcmd = "setreading"; + Prüfe und setze globale Variable + Flows ausführen: Send Data to AMADCommBridge + Script: currentMusic = "\"currentMusicTrack\":" + " \"" + {title} + "\"" + "," + "\"currentMusicAlbum\":" + " \"" + {description} + "\"" + "," + "\"currentMusicArtist\":" + " \"" + {subtitle} + "\"" + "," + "\"currentMusicApp\":" + " \"" + {musicapp} + "\"" + "," + "\"currentMusicIcon\":" + " \"" + {icon} + "\"" + "," + "\"currentMusicState\":" + " \"" + {playback_state} + "\""; fhemcmd = "setreading"; + Expression: trigger == "Benachrichtigung in Statusbar angezeigt: ch.gridvision.ppam.androidautomagic" or trigger == "Benachrichtigung in Statusbar entfernt: ch.gridvision.ppam.androidautomagic" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + Expression: getAndroidSDKVersion() >= "19" + Script: notification_text = "Aktiviere Automagic unter Einstellungen -> Benachrichtigungen -> Benachrichtigungszugriff" + Benachrichtigung in Statusbar angezeigt: Automagic + Script: notification_text = "not supported from your device" + Script: automagicState = "\"automagicState\":" + " \"" + {content_title} + "\""; fhemcmd = "setreading"; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Send Data to AMADCommBridge + AMADNG Info/Control Flowset v3.9.52 + true + PARALLEL + 900 + + Expression: fhemcmd == "set" + Expression: fhemcmd == "voiceinputvalue" + Expression: amadcmd == "firstrun" + Expression: fhemcmd == "readingsval" + Host erreichbar: {global_fhemip}:{global_bridgeport} + Script: Set FHEMSETCMD JSON + Script: Set FHEMVOICEINPUTDATA JSON + Script: Set FHEMREADINGSVALCMD JSON + HTTP Request: send READINGS data to AMADCommBridge JSON + HTTP Request: send VOICEINPUTVALUE data to AMADCommBridge + Expression: fhemcmd == "setreading" + Script: Set FHEMDATA JSON First Run Assistant + HTTP Request: send FIRSTRUN data to AMADCommBridge JSON + HTTP Request: send SET data to AMADCommBridge JSON + HTTP Request: send READINGSVAL data to AMADCommBridge JSON + Script: Set FHEMDATA JSON + + + + + + + + + + + + + + + + + + + SetCommands + AMADNG Info/Control Flowset v3.9.52 + true + QUEUE + 900 + + Periodischer Timer: alle 30s + HTTP Request: /fhem-amad/deviceInfo/ + Sprachbefehl angefordert + HTTP Request: /fhem-amad/setCommands/* + + Expression: setBrightness" + Expression: setScreenFullscreen" + Expression: param_orientation == "auto" + Setze Display Orientierung: Portrait + Setze Display Orientierung: Landscape + Expression: param_orientation == "landscape" + Setze Vollbild Modus: Navigation nicht anzeigen + Setze Vollbild Modus: Auf Default zurücksetzen + Setze Display Orientierung: Auf Default zurücksetzen + Display automatisch drehen ein-/ausschalten: Aus + Display automatisch drehen ein-/ausschalten: Ein + Expression: setScreenOrientation" + Expression: param_fullscreen == "off" + Expression: param_bluetooth == "off" + Expression: param_bluetooth == "on" + Bluetooth ein-/ausschalten: Ein + Bluetooth eingeschaltet + Bluetooth Gerät verbinden/trennen: Trennen Advanced Audio Distribution {param_btdeviceone} + Bluetooth Gerät verbinden/trennen: Trennen Eingabegerät {param_btdeviceone} + Bluetooth Gerät verbinden/trennen: Trennen Personal Area Network {param_btdeviceone} + Bluetooth Gerät verbinden/trennen: Trennen Advanced Audio Distribution {param_btdevicetwo} + Bluetooth Gerät verbinden/trennen: Trennen Eingabegerät {param_btdevicetwo} + Bluetooth Gerät verbinden/trennen: Trennen Headset {param_btdeviceone} + Bluetooth Gerät verbinden/trennen: Trennen Headset {param_btdevicetwo} + Bluetooth Gerät verbinden/trennen: Trennen Personal Area Network {param_btdevicetwo} + Pause: 3s (Gerät wach halten) + Bluetooth Gerät verbinden/trennen: Verbinden Advanced Audio Distribution {param_swtobtdevicemac} + Pause: 2s (Gerät wach halten) + Expression: setBTDevice" + Bluetooth ein-/ausschalten: Aus + Expression: param_orientation == "portrait" + Expression: setVoiceCommand" + Setze Display Helligkeit: {param_brightness} + Expression: setScreenlock" + Expression: sendIntent" + Expression: param_lockmod == "lock" + Setze Lock PIN/Passwort: PIN/Passwort zurücksetzen + Setze Lock PIN/Passwort: Setze PIN von Variable param_lockpin + Expression: trigger == "Sprachbefehl angefordert" + Expression: setAlarm" + Setze Timer + Expression: screenMsg" + Benachrichtigung auf Bildschirm: {param_message} (lange) + Script: udef_trigger = "setLockPin" + Flows ausführen: udef_trigger setLockPin + Display eingeschaltet + Gerät sperren + Schalte Display ein + Gerät sperren + Expression: setTimer" + Expression: param_option + Pause: {param_hanguptime}s (Gerät wach halten) + Anruf beenden + Broadcast senden: {param_action} + URL in Browser öffnen: {param_url} (mit {param_browserapp}/{param_browserappclass}) + Setze Unterbrechnungen-Modus: Alle / Immer unterbrechen + Setze Unterbrechnungen-Modus: Wichtig / Nur wichtige Unterbrechnungen zulassen + Setze Unterbrechnungen-Modus: Keine / Nicht unterbrechen + Setze Unterbrechnungen-Modus: Nur Wecker (Android 6+) + Expression: openURL" + Expression: param_fullscreen == "on" + Expression: do not Disturb" + Expression: param_disturbmod == "always" + Expression: param_disturbmod == "onlyImportant" + Expression: param_disturbmod == "never" + Expression: param_disturbmod == "alarmClockOnly" + Expression: setBluetooth" + Script: informationFlow_state = "aktiv" + Script: informationFlow_state = "inaktiv" + Host erreichbar: {global_fhemip}:{global_bridgeport} + Expression: ttsMsg" + Expression: param_screen=="on" + Expression: setScreenOnOff" + Gerät sperren + Expression: param_screen=="off" + Expression: openApp" + App Task läuft: App (neuster) + Expression: setVolume" + App Starten: App + Dateien löschen: /storage/emulated/0/Download/installFlow_{param_flowname} + Dateien löschen: /storage/sdcard0/Download/installFlow_{param_flowname} + Dateien löschen: /storage/sdcard0/Download/installFlow_{param_flowname} + Script: notification_text = "Flow install: path for download not exist" + Flows/Widgets importieren: /storage/sdcard0/Download/installFlow_{param_flowname} + Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma} + Download URL: http://{global_fhemip}:{global_bridgeport}/installFlow_{param_flowname} to /storage/sdcard0/Download + Download URL: http://{global_fhemip}:{global_bridgeport}/installFlow_{param_flowname} to /storage/sdcard0/Download + Flows/Widgets importieren: /storage/emulated/0/Download/installFlow_{param_flowname} + Flows/Widgets importieren: /storage/sdcard0/Download/installFlow_{param_flowname} + Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma} + Gerätespeicherplatz: Freier Speicherplatz > 1kb (/storage/sdcard0) + Gerätespeicherplatz: Freier Speicherplatz > 1kb (/sdcard) + Expression: installFlow" + Neustart + Expression: Reboot + Expression: System Command" + Expression: Shutdown + Expression: Airplanemode + Script: airplanemode = "airplanemode@@on"; fhemcmd = "setreading"; + Flows ausführen: Send Data to AMADCommBridge mit warten + Flugmodus ein-/ausschalten: Ein + Herunterfahren + Notification Lautstärke Wiederherstellen + Expression: param_notifyfile == "RedAlert.mp3" + Benachrichtigung aus Statusbar entfernen: Alle + Benachrichtigung aus Statusbar entfernen: Alle (Automagic) + Expression: Automagic + Expression: All + Expression: notifysnd" + NotificationLautstärke auf Level 7 + Notification Lautstärke Speichern + Expression: param_notifyfile == "RedAlert.mp3" + Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma} + Expression: Clear Automagic Meldungen" + Expression: setVibrate" + Vibrieren: Pattern 2 (-- --) + Audio Player steuern: Medienknopf Zurück ({pname}/{kname}) + Expression: param_button == "stop" + Expression: param_button == "next" + Expression: param_button == "back" + Schalte Display ein: Hell für {param_screenontime}s + Expression: ttsMsgLang" + Expression: global_fhemip != null or global_bridgeport != null + Setze Alarm: um {param_hour}:{param_minute} + Audio Player steuern: Medienknopf Weiter ({pname}/{kname}) + Expression: openCall" + Nummer anrufen: {param_callnumber} + Expression: sendSms" + Expression: param_flowstate == "active" or param_flowstate == "inactive" + Expression: param_flowstate == "active" + SMS senden an: an {param_smsnumber} '{param_smsmessage}' (10 in 12h) + Setze Flow Status: Deaktivieren {param_flowname} + Setze Flow Status: Aktivieren {param_flowname} + Script: notification_text = "Flow '{param_flowname}' has been set {param_flowstate}" + Expression: flowState" + Expression: closeCall" + Audio Player steuern: Medienknopf Stopp ({pname}/{kname}) + Expression: multimediaControl" + Starte Daydream + Expression: startDaydream" + Lautstärken setzen param_volume + Expression: setNotifiVolume" + Lautstärken setzen param_notifivolume + Expression: trigger == "HTTP Request: /fhem-amad/setCommands/*" + Expression: setRingSoundVolume" + Lautstärken setzen param_ringsoundvolume + Expression: param_button == "play/pause" + Audio Player steuern: Medienknopf Play/Pause (/{kname}) + Script: Zuordnung Mediaplayer + Sound: {param_notifypath}{param_notifyfile} als Benachrichtigung + Gerätespeicherplatz: Freier Speicherplatz > 1kb (/storage/emulated/0) + Download URL: http://{global_fhemip}:{global_bridgeport}/installFlow_{param_flowname} to /storage/emulated/0/Download + Script: flow_informations = "\"flow_informations\":" + " \"" + {informationFlow_state} + "\""; fhemcmd = "setreading"; + Script: automagicState = "\"automagicState\":" + " \"" + {content_title} + "\""; fhemcmd = "setreading"; + Script: automagicState = "\"automagicState\":" + " \"" + {content_title} + "\""; fhemcmd = "setreading"; + Flows ausführen: Send Data to AMADCommBridge + Sprachausgabe: Englisch + Sprachausgabe: Deutsch + Flow Aktiv: Informations + Setze Flow Status: Aktivieren Informations + Flows ausführen: VoiceControl + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Update AMAD Flowset + AMADNG Info/Control Flowset v3.9.52 + true + QUEUE + + HTTP Request: /fhem-amad/currentFlowsetUpdate + + Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma} + Dateien löschen: /storage/emulated/0/Download/currentFlowsetUpdate.xml + Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma} + Dateien löschen: /storage/sdcard0/Download/currentFlowsetUpdate.xml + Flows/Widgets importieren: /storage/sdcard0/Download/currentFlowsetUpdate.xml + Download URL: http://{global_fhemip}:{global_bridgeport}/currentFlowsetUpdate.xml to /storage/sdcard0/Download + Download URL: http://{global_fhemip}:{global_bridgeport}/currentFlowsetUpdate.xml to /sdcard/Download + Flows/Widgets importieren: /sdcard/Download/currentFlowsetUpdate.xml + Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma} + Dateien löschen: /sdcard/Download/currentFlowsetUpdate.xml + Script: notification_text = "Flowset Update: path for download not exist" + Gerätespeicherplatz: Freier Speicherplatz > 1kb (/storage/sdcard0) + Gerätespeicherplatz: Freier Speicherplatz > 1kb (/sdcard) + Flows ausführen: Send Data to AMADCommBridge + Gerätespeicherplatz: Freier Speicherplatz > 1kb (/storage/emulated/0) + Script: automagicState = "\"automagicState\":" + " \"" + {content_title} + "\""; fhemcmd = "setreading"; + Prüfe und setze Bridgeport Variable + Flows/Widgets importieren: /storage/emulated/0/Download/currentFlowsetUpdate.xml + Download URL: http://{global_fhemip}:{global_bridgeport}/currentFlowsetUpdate.xml to /storage/emulated/0/Download + + + + + + + + + + + + + + + + + + + + + + + + + VoiceControl + AMADNG Info/Control Flowset v3.9.52 + true + QUEUE + + Flows ausführen: Send Data to AMADCommBridge + Benachrichtigung auf Bildschirm: {value} (lange) + Spracheingabe wurde nicht erkannt + Flows ausführen: Send Data to AMADCommBridge + Setze voice Variablen + Script: voiceinputdata = value; fhemcmd = "voiceinputvalue"; + Script: voiceinputdata = {left(value, (indexOf(value, " und ")))}; fhemcmd = "voiceinputvalue"; + Expression: contains(value, " und ") + AMAD Voice Control + Expression: value != "" + + + + + + + + + + + + + \ No newline at end of file