diff --git a/fhem/FHEM/lib/74_AMADautomagicFlowset_2.6.7.xml b/fhem/FHEM/lib/74_AMADautomagicFlowset_2.6.7.xml new file mode 100644 index 000000000..651131450 --- /dev/null +++ b/fhem/FHEM/lib/74_AMADautomagicFlowset_2.6.7.xml @@ -0,0 +1,3545 @@ + + + + true + Akku Ladestand: grösser als 0% + true + 0 + HIGHER_THAN + false + true + + + false + App Task Beendet + true + * + + + 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 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.rhapsody.alditalk,com.spotify.music,com.google.android.videos,com.google.android.music,tunein.player,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_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) + {param_app} + true + + + true + App Task läuft: {global_activetask} (neuster) + {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: 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" + + + false + Expression: Automagic + param_app == "Automagic" + + + false + Expression: Clear Automagic Meldungen" + request_path == "/fhem-amad/setCommands/clearnotificationbar" + + + 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" + param_button == "play" + + + 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: scrcount < 5 + scrcount < 5 + + + false + Expression: screenMsg" + request_path == "/fhem-amad/setCommands/screenMsg" + + + false + Expression: sendIntent" + request_path == "/fhem-amad/setCommands/sendIntent" + + + 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: 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: 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 == "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 == "Medien Session verändert: com.amazon.mp3" // or trigger == "com.amazon.mp3.metachanged" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + trigger == "Medien Session verändert" + // or trigger == "Medien Session verändert: com.amazon.mp3" +// or trigger == "com.amazon.mp3.metachanged" + 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_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 + 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 + AMAD Voice Control + true + + true + de-DE + false + + + true + Anruf beenden + + + false + App Starten: App + {param_app} + + + + true + Audio Player steuern: Medienknopf Play ({pname}/{kname}) + true + LAUNCH + KEYCODE_MEDIA_PLAY + 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: {response} (lange) + true + {response} + + 200 + 250 + false + 1.00 + 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 + 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 + + false + true + false + + + true + Flows ausführen: VoiceControl + VoiceControl + + true + false + false + + + 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 READINGS data to AMADCommBridge + http://{global_fhemip}:{global_bridgeport} + false + false + + POST + GENERAL_TEXT + text/plain + {fhemdata} + @@@@readingsNameXYZ@@readingsValueABC + 60000 + true + FHEMDEVICE: {global_fhemdevice} +FHEMCMD: setreading +Connection: close + true + response + /storage/emulated/0/Download/file.bin + false + + + false + HTTP Request: send READINGSVAL data to AMADCommBridge + http://{global_fhemip}:{global_bridgeport} + false + false + + POST + GENERAL_TEXT + text/plain + {readingsvalcmd} + @@@@readingsNameXYZ@@readingsValueABC + 60000 + true + FHEMDEVICE: {global_fhemdevice} +FHEMCMD: readingsval +Connection: close + true + response + /storage/emulated/0/Download/file.bin + false + + + false + HTTP Request: send SET data to AMADCommBridge + http://{global_fhemip}:{global_bridgeport} + false + false + + POST + GENERAL_TEXT + text/plain + {setcmd} + @@@@readingsNameXYZ@@readingsValueABC + 60000 + true + FHEMDEVICE: {global_fhemdevice} +FHEMCMD: set +Connection: close + true + response + /storage/emulated/0/Download/file.bin + false + + + false + HTTP Request: send VOICEINPUTVALUE data to AMADCommBridge + http://{global_fhemip}:{global_bridgeport} + false + false + + POST + GENERAL_TEXT + text/plain + {voiceinputdata} + @@@@readingsNameXYZ@@readingsValueABC + 60000 + true + FHEMDEVICE: {global_fhemdevice} +FHEMCMD: voiceinputvalue +Connection: close + true + response + /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 + 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_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 + + + 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 Variablen + + + + 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: androidVersion = "androidVersion@@" + {androidVersion}; fhemcmd = "setreading"; + + + + true + Script: androidVersion = "not supported funktion" + + + + true + Script: automagicState = "automagicState@@" + {notification_text}; 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: 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" } + + + + 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: 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: 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 + + + + 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: 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 + 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 SetCommands + true + SetCommands + + + + 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 {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 + Sound: {param_notifypath}{param_notifyfile} als Benachrichtigung + FILE + Lautlos + {param_notifypath}{param_notifyfile} + NOTIFICATION + false + true + true + TRANSIENT + + + false + Sprachausgabe: Deutsch + MUSIC + {param_message} + de_DE + true + 1.0 + true + {param_msgspeed} + true + false + false + true + TRANSIENT + + + false + Sprachausgabe: Englisch + MUSIC + {param_message} + en_US + true + 1.0 + true + {param_msgspeed} + true + false + 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 + 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 + + + Informations + AMAD2 Info/Control Flowset v2.6.7 + 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 + 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 screen_brightness + Systemeinstellung verändert: System volume_music_speaker + 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 + Stromversorgung: Entfernt + Benachrichtigung in Statusbar entfernt: ch.gridvision.ppam.androidautomagic + Systemeinstellung verändert: System next_alarm + 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_music_headset + 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: notification_text = "Aktiviere Automagic unter Einstellungen -> Benachrichtigungen -> Benachrichtigungszugriff" + Benachrichtigung in Statusbar angezeigt: Automagic + Expression: getAndroidSDKVersion() >= "19" + Script: notification_text = "Aktiviere Automagic unter Einstellungen -> Benachrichtigungen -> Benachrichtigungszugriff" + Benachrichtigung in Statusbar angezeigt: WhatsApp + Script: airpcount = airpcount + 1 + Dock Status: Docked + Script: notification_text = "not supported from your device" + Display automatisch drehen eingeschaltet + Expression: trigger == "Daydream Status: Gestartet" + Bluetooth eingeschaltet + Expression: trigger == "App Task Beendet" + Keyguard gesperrt + Expression: keyguard == "locked" + Expression: getAndroidSDKVersion() >= "19" + Script: notification_text = "not supported from your device" + 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 == "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: 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: screen = "screen@@" + {screen_state}; fhemcmd = "setreading"; + Script: bluetooth = "bluetooth@@" + {bluetooth_state}; fhemcmd = "setreading"; + Script: doNotDisturb = "doNotDisturb@@" + {dndValue}; fhemcmd = "setreading"; + Script: daydream = "daydream@@" + {daydream_state}; fhemcmd = "setreading"; + Script: automagicState = "automagicState@@" + {notification_text}; fhemcmd = "setreading"; + Script: dockingState = "dockingState@@" + {dock_state}; fhemcmd = "setreading"; + Script: incomingCaller = "incomingCallerName@@" + {contact_name} + "@@@@incomingCallerNumber@@" + {incoming_number}; fhemcmd = "setreading"; + Script: intentRadioState = "intentRadioState@@" + {irstate} + "@@@@intentRadioName@@" + {irname}; fhemcmd = "setreading"; + Script: androidVersion = "androidVersion@@" + {androidVersion}; fhemcmd = "setreading"; + Script: checkActiveTask = "checkActiveTask@@" + {runTask}; fhemcmd = "setreading"; + Script: deviceState = "deviceState@@online"; fhemcmd = "setreading"; + Get Android Version + 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: btdeviceinfo = "connectedBTdevices@@" + {connected_devices_names} + "@@@@connectedBTdevicesMAC@@" + {connected_devices_addresses}; fhemcmd = "setreading"; + 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" + Script: keyguardSet = "keyguardSet@@" + {keyguardSet}; fhemcmd = "setreading"; + Expression: udef_trigger == "setLockPin" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + Expression: trigger == "Eingehender Anruf. Status: Klingelt, Nummern: Alle" + Script: incommingWhatsAppMessage = "incommingWhatsAppMessageFrom@@" + {notification_text}; fhemcmd = "setreading"; + Expression: trigger == "Benachrichtigung in Statusbar angezeigt: com.whatsapp" + Expression: trigger == "Genereller Broadcast: wenn org.smblott.intentradio.STATE" + Expression: trigger == "Flugmodus: Aus" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + Initialisiere Variable Systemeinstellung: screenBrightness + Script: screenBrightness = "screenBrightness@@" + {screenBrightness}; fhemcmd = "setreading"; + Expression: trigger == "Systemeinstellung verändert: System screen_brightness" + Initialisiere Variable Systemeinstellung: volumeNotification + Bluetooth Gerät verbunden: Beliebiges Geräte (Advanced Audio Distribution) + Script: volumevalue = "volume@@" + {volume}; fhemcmd = "setreading"; + Script: volume = {volumeBT} + Script: nextAlarmState = "nextAlarmState@@" + {nextalarmstate}; fhemcmd = "setreading"; + Script: volumeNotification = "volumeNotification@@" + {volumeNotification}; fhemcmd = "setreading"; + Script: screenOrientation = "screenOrientation@@" + {screen_orientation} + "@@@@screenOrientationMode@@" + {screen_orientation_mode}; 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"; + Expression: trigger == "Medien Session verändert" // or trigger == "Medien Session verändert: com.amazon.mp3" // or trigger == "com.amazon.mp3.metachanged" or trigger == "HTTP Request: /fhem-amad/deviceInfo/" + Pause: 2s (Gerät wach halten) + Musik Aktiv + Script: subtitle = "no player active"; title = "no player active"; description = "no player active"; musicapp = "no player active"; icon = "no player active" + Script: currentMusic = "currentMusicTrack@@" + {title} + "@@@@currentMusicAlbum@@" + {description} + "@@@@currentMusicArtist@@" + {subtitle} + "@@@@currentMusicApp@@" + {musicapp} + "@@@@currentMusicIcon@@" + {icon} + "@@@@currentMusicState@@" + {playback_state}; fhemcmd = "setreading"; + Flows ausführen: Send Data to AMADCommBridge + Script: airplanemode = "airplanemode@@" + {airplanemode}; fhemcmd = "setreading"; + Benachrichtigung auf Bildschirm: [AMAD2] Nicht mehr benötigte AMAD Flows wurden entfernt! (lange) + Expression: trigger == "Systemeinstellung verändert: System volume_ring_speaker" + 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 + 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" } + 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" } + 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: flow_SetCommands = "flow_SetCommands@@" + {setCommandFlow_state}; fhemcmd = "setreading"; + Script: flowState = "active" + Script: flow_informations = "userFlowState@@" + {flowState}; fhemcmd = "setreading"; + 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" + Host erreichbar: {global_fhemip}:{global_bridgeport} + Expression: Leon == "Gaultier" + Flows löschen: MultimediaControl + Script: airpcount = 0 + Host erreichbar: {global_fhemip}:{global_bridgeport} + Pause: 2s (Gerät wach halten) + WLAN verfügbar: {global_apssid} + 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}" + Script: nextAlarm = "nextAlarmTime@@" + {next_alarmtime} + "@@@@nextAlarmDay@@" + {next_alarmday}; fhemcmd = "setreading"; + Expression: trigger == "HTTP Request: /fhem-amad/deviceInfo/" + Prüfe und setze globale Variablen + Expression: global_fhemip != null or global_bridgeport != null + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Send Data to AMADCommBridge + AMAD2 Info/Control Flowset v2.6.7 + true + PARALLEL + 900 + + HTTP Request: send VOICEINPUTVALUE data to AMADCommBridge + HTTP Request: send READINGSVAL data to AMADCommBridge + HTTP Request: send SET data to AMADCommBridge + Benachrichtigung auf Bildschirm: {response} (lange) + HTTP Request: send READINGS data to AMADCommBridge + Expression: fhemcmd == "set" + Expression: fhemcmd == "readingsval" + Expression: fhemcmd == "voiceinputvalue" + Host erreichbar: {global_fhemip}:{global_bridgeport} + Expression: fhemcmd == "setreading" + Script: Set FHEMDATA + + + + + + + + + + + + + SetCommands + AMAD2 Info/Control Flowset v2.6.7 + true + QUEUE + 900 + 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" + Setze Flow Status: Aktivieren Informations + 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" + Setze Alarm: um {param_hour}:{param_minute} + 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" + Nummer anrufen: {param_callnumber} + 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" + Flows ausführen: VoiceControl + Flows ausführen: Send Data to AMADCommBridge + Expression: setBluetooth" + Expression: openCall" + Expression: trigger == "HTTP Request: /fhem-amad/setCommands/*" + Expression: param_flowstate == "active" + Expression: flowState" + Expression: param_flowstate == "active" or param_flowstate == "inactive" + Setze Flow Status: Aktivieren {param_flowname} + Setze Flow Status: Deaktivieren {param_flowname} + Script: automagicState = "automagicState@@" + {notification_text}; fhemcmd = "setreading"; + Script: notification_text = "Flow '{param_flowname}' has been set {param_flowstate}" + Flow Aktiv: Informations + Script: informationFlow_state = "aktiv" + Script: informationFlow_state = "inaktiv" + Script: flow_informations = "flow_informations@@" + {informationFlow_state}; fhemcmd = "setreading"; + Host erreichbar: {global_fhemip}:{global_bridgeport} + Audio Player steuern: Medienknopf Weiter ({pname}/{kname}) + Sprachausgabe: Deutsch + 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" + Lautstärken setzen param_volume + 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" + Script: automagicState = "automagicState@@" + {notification_text}; fhemcmd = "setreading"; + 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 + Download URL: http://{global_fhemip}:{global_bridgeport}/installFlow_{param_flowname} to /storage/emulated/0/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/emulated/0) + 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" + Sound: {param_notifypath}{param_notifyfile} als Benachrichtigung + 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: setNotifiVolume" + Expression: setVibrate" + Vibrieren: Pattern 2 (-- --) + Lautstärken setzen param_notifivolume + Audio Player steuern: Medienknopf Zurück ({pname}/{kname}) + Audio Player steuern: Medienknopf Play ({pname}/{kname}) + Audio Player steuern: Medienknopf Stopp ({pname}/{kname}) + Expression: param_button == "stop" + Expression: param_button == "play" + Expression: param_button == "next" + Expression: param_button == "back" + Script: Zuordnung Mediaplayer + Expression: multimediaControl" + Schalte Display ein: Hell für {param_screenontime}s + Sprachausgabe: Englisch + Expression: ttsMsgLang" + + Periodischer Timer: alle 30s + HTTP Request: /fhem-amad/deviceInfo/ + Sprachbefehl angefordert + HTTP Request: /fhem-amad/setCommands/* + + Expression: global_fhemip != null or global_bridgeport != null + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Update AMAD Flowset + AMAD2 Info/Control Flowset v2.6.7 + true + QUEUE + + HTTP Request: /fhem-amad/currentFlowsetUpdate + + Flows/Widgets importieren: /storage/emulated/0/Download/currentFlowsetUpdate.xml + 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/emulated/0) + Gerätespeicherplatz: Freier Speicherplatz > 1kb (/storage/sdcard0) + Gerätespeicherplatz: Freier Speicherplatz > 1kb (/sdcard) + Prüfe und setze Bridgeport Variable + Download URL: http://{global_fhemip}:{global_bridgeport}/currentFlowsetUpdate.xml to /storage/emulated/0/Download + Script: automagicState = "automagicState@@" + {notification_text}; fhemcmd = "setreading"; + Flows ausführen: Send Data to AMADCommBridge + + + + + + + + + + + + + + + + + + + + + + + + + VoiceControl + AMAD2 Info/Control Flowset v2.6.7 + true + QUEUE + + Expression: value != "" + AMAD Voice Control + 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 ") + + + + + + + + + + + + + \ No newline at end of file