diff --git a/74_AMADautomagicFlows_1.9.39.xml b/74_AMADautomagicFlows_1.9.41.xml similarity index 81% rename from 74_AMADautomagicFlows_1.9.39.xml rename to 74_AMADautomagicFlows_1.9.41.xml index 4a27687..5514b93 100644 --- a/74_AMADautomagicFlows_1.9.39.xml +++ b/74_AMADautomagicFlows_1.9.41.xml @@ -1,5 +1,5 @@ - + true Akku Ladestand: grösser als 0% @@ -212,6 +212,14 @@ global_album = getString("album"); volume_music_bt_a2dp volume + + true + Systemeinstellung verändert: System volume_music_headphone + true + SYSTEM + volume_music_headphone + volume + true Systemeinstellung verändert: System volume_music_speaker @@ -636,8 +644,8 @@ global_album = getString("album"); true - Expression: trigger == "Systemeinstellung verändert: System volume_music_bt_a2dp" or trigger == "Systemeinstellung verändert: System volume_music_speaker" - trigger == "Systemeinstellung verändert: System volume_music_bt_a2dp" or trigger == "Systemeinstellung verändert: System volume_music_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" + 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" true @@ -1814,6 +1822,10 @@ FHEMCMD: voiceinputvalue {param_hour} {param_minute} + + + false + true true @@ -1974,284 +1986,285 @@ FHEMCMD: setreading Informations - FHEM Info / Steuerung über AMAD Modul v1.9 + FHEM Info / Steuerung über AMAD Modul v1.9.41 true PARALLEL 500 - + Get Android Version + Script: androidVersion = "not supported funktion" + Android Version + Stromversorgung: Angeschlossen + Setze Globale Variablen + Expression: trigger == "Daydream Status: Gestartet" + Daydream State + Script: setCommandFlow_state = "inaktiv" + Bluetooth Status + Script: bluetooth_state = "off" + Script: bluetooth_state = "on" + Bluetooth eingeschaltet + Expression: trigger == "Bluetooth Status: Schaltet aus, Aus" or trigger == "Bluetooth Status: Schaltet ein, Ein" + Initialisiere Variable Systemeinstellung: screenBrightness + Script: volume = {volumeBT} + Script: volume = {volumeSP} + Bluetooth Gerät verbunden: Beliebiges Geräte (Advanced Audio Distribution) + Initialisiere Variable Systemeinstellung: volumeMusikSpeaker.2 + Initialisiere Variable Systemeinstellung: volumeMusikBluetooth.2 + Script: daydream_state = "on" + Script: daydream_state = "off" + Script: next_alarmday = "{next_alarm,dateformat,c}" + Script: next_alarmtime = "{next_alarm,dateformat,HH:mm}" + Initialisiere Variable Nächster Alarm: next_alarm + Screen Brightness + App Task läuft: {global_activetask} (neuster) + Expression: getAndroidSDKVersion() >= "19" + Script: runTask = "1" + Script: runTask = "0" + Script: runTask = "not supported android version" + Script: runTask = "null" + Check run Task + Expression: global_activetask != "none" + Expression: trigger == "Daydream Status: Gestartet" or trigger == "Daydream Status: Gestoppt" + Expression: trigger == "Systemeinstellung verändert: System volume_ring_speaker" + Expression: trigger == "Systemeinstellung verändert: System next_alarm" + Expression: trigger == "Systemeinstellung verändert: System screen_brightness" + Pause: 1s (Gerät wach halten) + Musik Aktiv + Script: global_artist = "no soundplayer activ"; global_track = "no soundplayer activ"; global_album = "no soundplayer activ"; + Reading Music Metachanged.2 + WLAN Verbunden: {global_apssid} + Script: airplanemode = "off" + Airplainemode + Expression: trigger == "Flugmodus: Aus" + Script: airpcount = 0 + Expression: airpcount < 11 + Script: airpcount = airpcount + 1 + Pause: 2s (Gerät wach halten) + Expression: trigger == "Display Status: Aus" or trigger == "Display Status: Ein" or udef_trigger == "setLockPin" + Script: keyguard = "unlocked" + Script: screen_state = "off {keyguard}" + Screen State + Expression: trigger == "Benachrichtigung in Statusbar angezeigt: ch.gridvision.ppam.androidautomagic" or trigger == "Benachrichtigung in Statusbar entfernt: ch.gridvision.ppam.androidautomagic" + Expression: global_activetask != "none" + Expression: udef_trigger == "setLockPin" + Keyguard mit Sicherheit + Dock Status: Docked + Expression: getAndroidSDKVersion() >= "19" + Display Orientierung: Portrait + Script: screen_orientation = "portrait" + Script: screen_orientation = "landscape" + Display automatisch drehen eingeschaltet + Script: notification_text = "Aktiviere Automagic unter Einstellungen -> Benachrichtigungen -> Benachrichtigungszugriff" + Benachrichtigung in Statusbar angezeigt: Automagic + Script: notification_text = "not supported from your device" + Script: dock_state = "docked" + Script: dock_state = "undocked" + Script: keyguardSet = "1" + Script: keyguardSet = "0" + KeyGuard Set + Dock State + Automagic State + Screen Orientation + Script: screen_orientation_mode = "auto" + Script: screen_orientation_mode = "manual" + Expression: trigger == "Display Orientierung: Landscape" or trigger == "Display Orientierung: Portrait" or trigger == "Display Status: Ein" or trigger == "Display Status: Aus" + Script: setCommandFlow_state = "aktiv" + Flow Aktiv: SetCommands + Setze Flow Status: Aktivieren SetCommands + Flow Status SetCommands + Script: screen_state = "on {keyguard}" + Expression: trigger == "com.android.music.playstatechanged" or trigger == "com.android.music.metachanged" + Script: scrcount = 0 + Script: keyguard = "locked" + Display eingeschaltet + Keyguard gesperrt + Expression: scrcount < 5 + Script: scrcount = scrcount + 1 + Pause: 2s (Gerät wach halten) + Expression: keyguard == "locked" + Bluetooth Gerät verbunden: Beliebiges Geräte + Bluetooth Device Status + Expression: trigger == "Akku Ladestand: grösser als 0%" + Stromversorgung und Akkustand + Initialisiere Variable Systemeinstellung: volumeNotification + Expression: trigger == "HTTP Request: /fhem-amad/deviceInfo/" + Notification Volume + WLAN Verbunden: {global_apssid} + Nächster Alarm + Lautstärke / Volume + 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" + Stromversorgung: Angeschlossen App Task Gestartet: {global_activetask} - Stromversorgung: Entfernt Bluetooth Status: Schaltet ein, Ein + Stromversorgung: Entfernt Display Status: Aus Display Orientierung: Portrait Bluetooth Status: Schaltet aus, Aus Daydream Status: Gestoppt Benachrichtigung in Statusbar angezeigt: ch.gridvision.ppam.androidautomagic - Display Status: Ein - Systemeinstellung verändert: System screen_brightness Systemeinstellung verändert: System volume_music_speaker + Systemeinstellung verändert: System screen_brightness + Display Status: Ein Daydream Status: Gestartet Akku Ladestand: grösser als 0% - com.android.music.playstatechanged Dock Event: Docked + com.android.music.playstatechanged Systemeinstellung verändert: System volume_music_bt_a2dp HTTP Request: /fhem-amad/deviceInfo/ com.android.music.metachanged - Benachrichtigung in Statusbar entfernt: ch.gridvision.ppam.androidautomagic - App Task Beendet: {global_activetask} Systemeinstellung verändert: System next_alarm + App Task Beendet: {global_activetask} + Benachrichtigung in Statusbar entfernt: ch.gridvision.ppam.androidautomagic Dock Event: Undocked Display Orientierung: Landscape Flugmodus: Aus Systemeinstellung verändert: System volume_ring_speaker + Systemeinstellung verändert: System volume_music_headphone - Nächster Alarm - Get Android Version - Script: androidVersion = "not supported funktion" - Android Version - Initialisiere Variable Systemeinstellung: volumeNotification - Stromversorgung: Angeschlossen - Setze Globale Variablen - Expression: trigger == "Daydream Status: Gestartet" - Daydream State - Script: setCommandFlow_state = "inaktiv" - Notification Volume - Bluetooth Status - Script: bluetooth_state = "off" - Script: bluetooth_state = "on" - Bluetooth eingeschaltet - Expression: trigger == "Bluetooth Status: Schaltet aus, Aus" or trigger == "Bluetooth Status: Schaltet ein, Ein" - Lautstärke / Volume - Initialisiere Variable Systemeinstellung: screenBrightness - Script: volume = {volumeBT} - Script: volume = {volumeSP} - Bluetooth Gerät verbunden: Beliebiges Geräte (Advanced Audio Distribution) - Initialisiere Variable Systemeinstellung: volumeMusikSpeaker.2 - Initialisiere Variable Systemeinstellung: volumeMusikBluetooth.2 - Script: daydream_state = "on" - Script: daydream_state = "off" - Script: next_alarmday = "{next_alarm,dateformat,c}" - Script: next_alarmtime = "{next_alarm,dateformat,HH:mm}" - Initialisiere Variable Nächster Alarm: next_alarm - Screen Brightness - App Task läuft: {global_activetask} (neuster) - Expression: getAndroidSDKVersion() >= "19" - Script: runTask = "1" - Script: runTask = "0" - Script: runTask = "not supported android version" - Script: runTask = "null" - Check run Task - Expression: global_activetask != "none" - Expression: trigger == "Daydream Status: Gestartet" or trigger == "Daydream Status: Gestoppt" - 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" - Expression: trigger == "Systemeinstellung verändert: System next_alarm" - Expression: trigger == "Systemeinstellung verändert: System screen_brightness" - Pause: 1s (Gerät wach halten) - Musik Aktiv - Script: global_artist = "no soundplayer activ"; global_track = "no soundplayer activ"; global_album = "no soundplayer activ"; - Reading Music Metachanged.2 - WLAN Verbunden: {global_apssid} - Script: airplanemode = "off" - Airplainemode - Expression: trigger == "Flugmodus: Aus" - Script: airpcount = 0 - Expression: trigger == "HTTP Request: /fhem-amad/deviceInfo/" - Expression: airpcount < 11 - Script: airpcount = airpcount + 1 - Pause: 2s (Gerät wach halten) - Expression: trigger == "Display Status: Aus" or trigger == "Display Status: Ein" or udef_trigger == "setLockPin" - Script: keyguard = "unlocked" - Script: screen_state = "off {keyguard}" - Screen State - Expression: trigger == "Benachrichtigung in Statusbar angezeigt: ch.gridvision.ppam.androidautomagic" or trigger == "Benachrichtigung in Statusbar entfernt: ch.gridvision.ppam.androidautomagic" - Expression: global_activetask != "none" - Expression: udef_trigger == "setLockPin" - Keyguard mit Sicherheit - Dock Status: Docked - Expression: getAndroidSDKVersion() >= "19" - Display Orientierung: Portrait - Script: screen_orientation = "portrait" - Script: screen_orientation = "landscape" - Display automatisch drehen eingeschaltet - Script: notification_text = "Aktiviere Automagic unter Einstellungen -> Benachrichtigungen -> Benachrichtigungszugriff" - Benachrichtigung in Statusbar angezeigt: Automagic - Script: notification_text = "not supported from your device" - Script: dock_state = "docked" - Script: dock_state = "undocked" - Script: keyguardSet = "1" - Script: keyguardSet = "0" - KeyGuard Set - Dock State - Automagic State - Screen Orientation - Script: screen_orientation_mode = "auto" - Script: screen_orientation_mode = "manual" - Expression: trigger == "Display Orientierung: Landscape" or trigger == "Display Orientierung: Portrait" or trigger == "Display Status: Ein" or trigger == "Display Status: Aus" - Script: setCommandFlow_state = "aktiv" - Flow Aktiv: SetCommands - Setze Flow Status: Aktivieren SetCommands - Flow Status SetCommands - Script: screen_state = "on {keyguard}" - Expression: trigger == "com.android.music.playstatechanged" or trigger == "com.android.music.metachanged" - Script: scrcount = 0 - Script: keyguard = "locked" - Display eingeschaltet - Keyguard gesperrt - Expression: scrcount < 5 - Script: scrcount = scrcount + 1 - Pause: 2s (Gerät wach halten) - Expression: keyguard == "locked" - Bluetooth Gerät verbunden: Beliebiges Geräte - Bluetooth Device Status - WLAN Verbunden: {global_apssid} - Expression: trigger == "Akku Ladestand: grösser als 0%" - Stromversorgung und Akkustand - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SetCommands - FHEM Info / Steuerung über AMAD Modul v1.9 + FHEM Info / Steuerung über AMAD Modul v1.9.41 true QUEUE 500 @@ -2345,41 +2358,41 @@ FHEMCMD: setreading Benachrichtigung aus Statusbar entfernen: Alle (Automagic) Expression: Automagic Expression: All - Lautstärken setzen param_notifivolume - Expression: setNotifiVolume" - Expression: notifysnd" - NotificationLautstärke auf Level 7 - Notification Lautstärke Speichern - Expression: param_notifyfile == "RedAlert.mp3" - Notification Lautstärke Wiederherstellen - Expression: setVoiceCommand" - Flows ausführen: VoiceControl - Expression: setVibrate" - Vibrieren: Pattern 2 (-- --) - Expression: Clear Automagic Meldungen" - Flugmodus ein-/ausschalten: Ein - Setze Display Helligkeit: {param_brightness} - Expression: setScreenlock" - Broadcast senden: {param_action} - 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 - Script: udef_trigger = "setLockPin" - Flows ausführen: udef_trigger setLockPin - Lautstärken setzen param_volume - Flow Status Informations - Expression: trigger == "HTTP Request: /fhem-amad/setCommands/*" - Expression: trigger == "Sprachbefehl angefordert" - WLAN Verbunden: {global_apssid} - + Expression: setNotifiVolume" + Expression: notifysnd" + NotificationLautstärke auf Level 7 + Notification Lautstärke Speichern + Expression: param_notifyfile == "RedAlert.mp3" + Notification Lautstärke Wiederherstellen + Expression: setVoiceCommand" + Flows ausführen: VoiceControl + Expression: setVibrate" + Vibrieren: Pattern 2 (-- --) + Expression: Clear Automagic Meldungen" + Flugmodus ein-/ausschalten: Ein + Setze Display Helligkeit: {param_brightness} + Expression: setScreenlock" + Broadcast senden: {param_action} + 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 + Script: udef_trigger = "setLockPin" + Flows ausführen: udef_trigger setLockPin + Lautstärken setzen param_volume + Flow Status Informations + Expression: trigger == "HTTP Request: /fhem-amad/setCommands/*" + Expression: trigger == "Sprachbefehl angefordert" + WLAN Verbunden: {global_apssid} + Lautstärken setzen param_notifivolume + - + @@ -2411,7 +2424,7 @@ FHEMCMD: setreading - + @@ -2427,7 +2440,7 @@ FHEMCMD: setreading - + @@ -2442,67 +2455,67 @@ FHEMCMD: setreading - + - + - + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + VoiceControl - FHEM Info / Steuerung über AMAD Modul v1.9 + FHEM Info / Steuerung über AMAD Modul v1.9.41 true QUEUE 60