diff --git a/fhem/FHEM/lib/74_AMADautomagicFlowset_2.4.0.xml b/fhem/FHEM/lib/74_AMADautomagicFlowset_2.4.1.xml
similarity index 78%
rename from fhem/FHEM/lib/74_AMADautomagicFlowset_2.4.0.xml
rename to fhem/FHEM/lib/74_AMADautomagicFlowset_2.4.1.xml
index 5a1cda7d4..03369fda2 100644
--- a/fhem/FHEM/lib/74_AMADautomagicFlowset_2.4.0.xml
+++ b/fhem/FHEM/lib/74_AMADautomagicFlowset_2.4.1.xml
@@ -6,7 +6,7 @@
true
0
HIGHER_THAN
- true
+ false
true
@@ -2368,7 +2368,7 @@ fhemcmd = "setreading";
false
Script: Set FHEMDATA
-
Informations
- AMAD2 Info/Control Flowset v2.4.0
+ AMAD2 Info/Control Flowset v2.4.1
true
QUEUE
900
-
+ Script: daydream_state = "on"
+ Script: daydream_state = "off"
+ Script: next_alarmday = "{next_alarm,dateformat,c}"
+ Script: next_alarmtime = "{next_alarm,dateformat,HH:mm}"
+ 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
+ Script: airpcount = 0
+ Pause: 2s (Gerät wach halten)
+ Expression: global_apssid != "usb-ethernet"
+ WLAN Verbunden: {global_apssid}
+ Dock Status: Docked
+ Script: notification_text = "not supported from your device"
+ Pause: 3s (Gerät wach halten)
+ WLAN Reassoziieren
+ WLAN verfügbar: {global_apssid}
+ Display automatisch drehen eingeschaltet
+ Expression: trigger == "Daydream Status: Gestartet"
+ Bluetooth eingeschaltet
+ Expression: trigger == "App Task Beendet"
+ Expression: global_bridgeport == null or global_bridgeport != {header_bport} or global_fhemip == null or global_fhemip != {header_fhemip} or global_fhemdevice == null or global_fhemdevice != {header_fhemdevice} or global_activetask == null or global_activetask != {header_activetask} or global_apssid == null or global_apssid != {header_apssid} or global_deviceport != null or global_deviceport!= {header_dport}
+ 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
+ Prüfe und setze globale Variablen
+ 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"
+ Musik Aktiv
+ Script: bluetooth_state = "on"
+ Script: artist = "no player active"; track = "no player active"; album = "no player active"; musicapp = "no player active";
+ Initialisiere Variable Nächster Alarm: next_alarm
+ Expression: global_fhemip != null or header_fhemip != null
+ 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
+ WLAN Verbunden: {global_apssid}
+ Expression: global_apssid != "usb-ethernet"
+ Flow Aktiv: SetCommands
+ Script: setCommandFlow_state = "inaktiv"
+ Script: setCommandFlow_state = "aktiv"
+ Setze Flow Status: Aktivieren SetCommands
+ Expression: trigger == "Periodischer Timer: alle 30s"
+ 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: 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 == "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"
+ Expression: trigger == "com.android.music.playstatechanged" or trigger == "com.android.music.metachanged" or trigger == "com.amazon.mp3.metachanged" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"
+ Script: screen = "screen@@" + {screen_state}; fhemcmd = "setreading";
+ Script: airplanemode = "airplanemode@@" + {airplanemode}; 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: flow_SetCommands = "flow_SetCommands@@" + {setCommandFlow_state}; fhemcmd = "setreading";
+ Script: checkActiveTask = "checkActiveTask@@" + {runTask}; fhemcmd = "setreading";
+ Flows ausführen: Send Data to AMADCommBridge
+ Script: deviceState = "deviceState@@online"; fhemcmd = "setreading";
+ Expression: trigger == "HTTP Request: /fhem-amad/deviceInfo/"
+ 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 == "Systemeinstellung verändert: System next_alarm" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"
+ 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"
+ Expression: trigger == "Systemeinstellung verändert: System volume_ring_speaker"
+ Initialisiere Variable Systemeinstellung: volumeNotification
+ Initialisiere Variable Systemeinstellung: volumeMusikBluetooth.2
+ Initialisiere Variable Systemeinstellung: volumeMusikSpeaker.2
+ Bluetooth Gerät verbunden: Beliebiges Geräte (Advanced Audio Distribution)
+ 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"
+ Script: volumevalue = "volume@@" + {volume}; fhemcmd = "setreading";
+ Script: volume = {volumeBT}
+ Script: volume = {volumeSP}
+ Script: nextAlarmState = "nextAlarmState@@" + {nextalarmstate}; fhemcmd = "setreading";
+ Script: currentMusic = "currentMusicTrack@@" + {track} + "@@@@currentMusicAlbum@@" + {album} + "@@@@currentMusicArtist@@" + {artist} + "@@@@currentMusicApp@@" + {musicapp}; fhemcmd = "setreading";
+ Script: volumeNotification = "volumeNotification@@" + {volumeNotification}; fhemcmd = "setreading";
+ Script: nextAlarm = "nextAlarmTime@@" + {next_alarmtime} + "@@@@nextAlarmDay@@" + {next_alarmday}; 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";
+
Genereller Broadcast: wenn com.android.deskclock.ALARM_DONE
Stromversorgung: Angeschlossen
Genereller Broadcast: wenn org.smblott.intentradio.STATE
@@ -2700,7 +2845,6 @@ fhemcmd = "setreading";
Systemeinstellung verändert: System screen_brightness
Systemeinstellung verändert: System volume_music_speaker
Daydream Status: Gestartet
- Akku Ladestand: grösser als 0%
Dock Event: Docked
Systemeinstellung verändert: System volume_music_bt_a2dp
Unterbrechnungen-Modus: Alle / Immer unterbrechen
@@ -2716,385 +2860,241 @@ fhemcmd = "setreading";
Unterbrechnungen-Modus: Nur Wecker (Android 6+)
Flugmodus: Aus
Systemeinstellung verändert: System volume_ring_speaker
+ Akku Ladestand: grösser als 0%
- Script: daydream_state = "on"
- Script: daydream_state = "off"
- Script: next_alarmday = "{next_alarm,dateformat,c}"
- Script: next_alarmtime = "{next_alarm,dateformat,HH:mm}"
- 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
- Script: airpcount = 0
- Pause: 2s (Gerät wach halten)
- Expression: global_apssid != "usb-ethernet"
- WLAN Verbunden: {global_apssid}
- Dock Status: Docked
- Script: notification_text = "not supported from your device"
- Pause: 3s (Gerät wach halten)
- WLAN Reassoziieren
- WLAN verfügbar: {global_apssid}
- Display automatisch drehen eingeschaltet
- Expression: trigger == "Daydream Status: Gestartet"
- Bluetooth eingeschaltet
- Expression: trigger == "App Task Beendet"
- Expression: global_bridgeport == null or global_bridgeport != {header_bport} or global_fhemip == null or global_fhemip != {header_fhemip} or global_fhemdevice == null or global_fhemdevice != {header_fhemdevice} or global_activetask == null or global_activetask != {header_activetask} or global_apssid == null or global_apssid != {header_apssid} or global_deviceport != null or global_deviceport!= {header_dport}
- 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
- Prüfe und setze globale Variablen
- 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"
- Musik Aktiv
- Script: bluetooth_state = "on"
- Script: artist = "no player active"; track = "no player active"; album = "no player active"; musicapp = "no player active";
- Initialisiere Variable Nächster Alarm: next_alarm
- Expression: global_fhemip != null or header_fhemip != null
- 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
- WLAN Verbunden: {global_apssid}
- Expression: global_apssid != "usb-ethernet"
- Flow Aktiv: SetCommands
- Script: setCommandFlow_state = "inaktiv"
- Script: setCommandFlow_state = "aktiv"
- Setze Flow Status: Aktivieren SetCommands
- Expression: trigger == "Periodischer Timer: alle 30s"
- 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: 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 == "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"
- Expression: trigger == "com.android.music.playstatechanged" or trigger == "com.android.music.metachanged" or trigger == "com.amazon.mp3.metachanged" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"
- Script: screen = "screen@@" + {screen_state}; fhemcmd = "setreading";
- Script: airplanemode = "airplanemode@@" + {airplanemode}; 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: flow_SetCommands = "flow_SetCommands@@" + {setCommandFlow_state}; fhemcmd = "setreading";
- Script: checkActiveTask = "checkActiveTask@@" + {runTask}; fhemcmd = "setreading";
- Flows ausführen: Send Data to AMADCommBridge
- Script: deviceState = "deviceState@@online"; fhemcmd = "setreading";
- Expression: trigger == "HTTP Request: /fhem-amad/deviceInfo/"
- 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 == "Systemeinstellung verändert: System next_alarm" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"
- 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"
- Expression: trigger == "Systemeinstellung verändert: System volume_ring_speaker"
- Initialisiere Variable Systemeinstellung: volumeNotification
- Initialisiere Variable Systemeinstellung: volumeMusikBluetooth.2
- Initialisiere Variable Systemeinstellung: volumeMusikSpeaker.2
- Bluetooth Gerät verbunden: Beliebiges Geräte (Advanced Audio Distribution)
- 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"
- Script: volumevalue = "volume@@" + {volume}; fhemcmd = "setreading";
- Script: volume = {volumeBT}
- Script: volume = {volumeSP}
- Script: nextAlarmState = "nextAlarmState@@" + {nextalarmstate}; fhemcmd = "setreading";
- Script: currentMusic = "currentMusicTrack@@" + {track} + "@@@@currentMusicAlbum@@" + {album} + "@@@@currentMusicArtist@@" + {artist} + "@@@@currentMusicApp@@" + {musicapp}; fhemcmd = "setreading";
- Script: volumeNotification = "volumeNotification@@" + {volumeNotification}; fhemcmd = "setreading";
- Script: nextAlarm = "nextAlarmTime@@" + {next_alarmtime} + "@@@@nextAlarmDay@@" + {next_alarmday}; 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";
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
MultimediaControl
- AMAD2 Info/Control Flowset v2.4.0
+ AMAD2 Info/Control Flowset v2.4.1
true
QUEUE
@@ -3175,7 +3175,7 @@ fhemcmd = "setreading";
Send Data to AMADCommBridge
- AMAD2 Info/Control Flowset v2.4.0
+ AMAD2 Info/Control Flowset v2.4.1
true
PARALLEL
900
@@ -3183,320 +3183,318 @@ fhemcmd = "setreading";
Expression: fhemcmd == "set"
Expression: fhemcmd == "readingsval"
Expression: fhemcmd == "voiceinputvalue"
- Expression: fhemcmd == "setreading"
- Script: Set FHEMDATA
- HTTP Request: send READINGS data to AMADCommBridge
- HTTP Request: send SET data to AMADCommBridge
- HTTP Request: send READINGSVAL data to AMADCommBridge
- HTTP Request: send VOICEINPUTVALUE data to AMADCommBridge
-
+ HTTP Request: send SET data to AMADCommBridge
+ HTTP Request: send READINGSVAL data to AMADCommBridge
+ HTTP Request: send VOICEINPUTVALUE data to AMADCommBridge
+ HTTP Request: send READINGS data to AMADCommBridge
+ Expression: fhemcmd == "setreading"
+ Script: Set FHEMDATA
+
-
-
-
-
-
+
+
+
+
+
SetCommands
- AMAD2 Info/Control Flowset v2.4.0
+ AMAD2 Info/Control Flowset v2.4.1
true
QUEUE
900
-
- Akku Ladestand: grösser als 0%
+ Expression: param_screen=="on"
+ 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
+ Expression: param_screen=="off"
+ Expression: setScreenOnOff"
+ Flow Aktiv: Informations
+ Expression: ttsMsg"
+ Display automatisch drehen ein-/ausschalten: Aus
+ Display automatisch drehen ein-/ausschalten: Ein
+ Expression: setScreenOrientation"
+ Expression: param_fullscreen == "off"
+ Expression: setBluetooth"
+ Expression: param_bluetooth == "off"
+ Expression: param_bluetooth == "on"
+ Bluetooth ein-/ausschalten: Ein
+ Script: informationFlow_state = "inaktiv"
+ 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: setVolume"
+ Expression: param_orientation == "portrait"
+ Expression: Reboot
+ Expression: System Command"
+ Neustart
+ Expression: Shutdown
+ Herunterfahren
+ Benachrichtigung aus Statusbar entfernen: Alle
+ Benachrichtigung aus Statusbar entfernen: Alle (Automagic)
+ Expression: Automagic
+ Expression: All
+ Expression: setNotifiVolume"
+ Expression: notifysnd"
+ NotificationLautstärke auf Level 7
+ Notification Lautstärke Speichern
+ Expression: param_notifyfile == "RedAlert.mp3"
+ Notification Lautstärke Wiederherstellen
+ Expression: setVoiceCommand"
+ Expression: Clear Automagic Meldungen"
+ Flugmodus ein-/ausschalten: Ein
+ Setze Display Helligkeit: {param_brightness}
+ Expression: setScreenlock"
+ Expression: sendIntent"
+ Setze Flow Status: Aktivieren Informations
+ Script: informationFlow_state = "aktiv"
+ Expression: Airplanemode
+ Pause: 1s (Gerät wach halten)
+ Airplainemode ON
+ 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"
+ WLAN Verbunden: {global_apssid}
+ Setze Alarm: um {param_hour}:{param_minute}
+ Expression: setAlarm"
+ Setze Timer
+ Expression: setVibrate"
+ Expression: openApp"
+ App Starten: App
+ App Task läuft: App (neuster)
+ Expression: screenMsg"
+ Benachrichtigung auf Bildschirm: {param_message} (lange)
+ Vibrieren: Pattern 2 (-- --)
+ Expression: global_apssid != "usb-ethernet"
+ Expression: installFlow"
+ 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}
+ Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma}
+ Dateien löschen: /storage/sdcard0/Download/installFlow_{param_flowname}
+ Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma}
+ Flows/Widgets importieren: /storage/sdcard0/Download/installFlow_{param_flowname}
+ 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/sdcard0/Download/installFlow_{param_flowname}
+ Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma}
+ Dateien löschen: /storage/sdcard0/Download/installFlow_{param_flowname}
+ Gerätespeicherplatz: Freier Speicherplatz > 1kb (/sdcard)
+ Script: notification_text = "Flow install: path for download not exist"
+ Gerätespeicherplatz: Freier Speicherplatz > 1kb (/storage/emulated/0)
+ Gerätespeicherplatz: Freier Speicherplatz > 1kb (/storage/sdcard0)
+ Sound: {param_notifypath}{param_notifyfile} als Benachrichtigung
+ Dateien löschen: /storage/emulated/0/Download/installFlow_{param_flowname}
+ Gerät sperren
+ Script: udef_trigger = "setLockPin"
+ Flows ausführen: udef_trigger setLockPin
+ Display eingeschaltet
+ Gerät sperren
+ Schalte Display ein
+ Gerät sperren
+ Sprachausgabe: {param_message}
+ Lautstärken setzen param_volume
+ Lautstärken setzen param_notifivolume
+ Expression: setTimer"
+ Expression: openCall"
+ 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: trigger == "HTTP Request: /fhem-amad/setCommands/*"
+ 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
+ Script: automagicState = "automagicState@@" + {notification_text}; fhemcmd = "setreading";
+ Schalte Display ein: Hell für {param_screenontime}s
+ Script: flow_informations = "flow_informations@@" + {informationFlow_state}; fhemcmd = "setreading";
+
Periodischer Timer: alle 30s
HTTP Request: /fhem-amad/deviceInfo/
Sprachbefehl angefordert
- Display Status: Ein
HTTP Request: /fhem-amad/setCommands/*
- Expression: param_screen=="on"
- 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
- Expression: param_screen=="off"
- Expression: setScreenOnOff"
- Flow Aktiv: Informations
- Expression: ttsMsg"
- Display automatisch drehen ein-/ausschalten: Aus
- Display automatisch drehen ein-/ausschalten: Ein
- Expression: setScreenOrientation"
- Expression: param_fullscreen == "off"
- Expression: setBluetooth"
- Expression: param_bluetooth == "off"
- Expression: param_bluetooth == "on"
- Bluetooth ein-/ausschalten: Ein
- Script: informationFlow_state = "inaktiv"
- 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: setVolume"
- Expression: param_orientation == "portrait"
- Expression: Reboot
- Expression: System Command"
- Neustart
- Expression: Shutdown
- Herunterfahren
- Benachrichtigung aus Statusbar entfernen: Alle
- Benachrichtigung aus Statusbar entfernen: Alle (Automagic)
- Expression: Automagic
- Expression: All
- Expression: setNotifiVolume"
- Expression: notifysnd"
- NotificationLautstärke auf Level 7
- Notification Lautstärke Speichern
- Expression: param_notifyfile == "RedAlert.mp3"
- Notification Lautstärke Wiederherstellen
- Expression: setVoiceCommand"
- Expression: Clear Automagic Meldungen"
- Flugmodus ein-/ausschalten: Ein
- Setze Display Helligkeit: {param_brightness}
- Expression: setScreenlock"
- Expression: sendIntent"
- Setze Flow Status: Aktivieren Informations
- Script: informationFlow_state = "aktiv"
- Expression: Airplanemode
- Pause: 1s (Gerät wach halten)
- Airplainemode ON
- 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"
- WLAN Verbunden: {global_apssid}
- Setze Alarm: um {param_hour}:{param_minute}
- Expression: setAlarm"
- Setze Timer
- Expression: setVibrate"
- Expression: openApp"
- App Starten: App
- App Task läuft: App (neuster)
- Expression: screenMsg"
- Benachrichtigung auf Bildschirm: {param_message} (lange)
- Vibrieren: Pattern 2 (-- --)
- Expression: global_apssid != "usb-ethernet"
- Expression: installFlow"
- 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}
- Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma}
- Dateien löschen: /storage/sdcard0/Download/installFlow_{param_flowname}
- Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma}
- Flows/Widgets importieren: /storage/sdcard0/Download/installFlow_{param_flowname}
- 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/sdcard0/Download/installFlow_{param_flowname}
- Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma}
- Dateien löschen: /storage/sdcard0/Download/installFlow_{param_flowname}
- Gerätespeicherplatz: Freier Speicherplatz > 1kb (/sdcard)
- Script: notification_text = "Flow install: path for download not exist"
- Gerätespeicherplatz: Freier Speicherplatz > 1kb (/storage/emulated/0)
- Gerätespeicherplatz: Freier Speicherplatz > 1kb (/storage/sdcard0)
- Sound: {param_notifypath}{param_notifyfile} als Benachrichtigung
- Dateien löschen: /storage/emulated/0/Download/installFlow_{param_flowname}
- Gerät sperren
- Script: udef_trigger = "setLockPin"
- Flows ausführen: udef_trigger setLockPin
- Display eingeschaltet
- Gerät sperren
- Schalte Display ein
- Gerät sperren
- Sprachausgabe: {param_message}
- Lautstärken setzen param_volume
- Lautstärken setzen param_notifivolume
- Expression: setTimer"
- Expression: openCall"
- 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: trigger == "HTTP Request: /fhem-amad/setCommands/*"
- 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
- Script: automagicState = "automagicState@@" + {notification_text}; fhemcmd = "setreading";
- Schalte Display ein: Hell für {param_screenontime}s
- Script: flow_informations = "flow_informations@@" + {informationFlow_state}; fhemcmd = "setreading";
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
Update AMAD Flowset
- AMAD2 Info/Control Flowset v2.4.0
+ AMAD2 Info/Control Flowset v2.4.1
true
QUEUE
@@ -3546,7 +3544,7 @@ fhemcmd = "setreading";
VoiceControl
- AMAD2 Info/Control Flowset v2.4.0
+ AMAD2 Info/Control Flowset v2.4.1
true
QUEUE