diff --git a/[Automagic] AMAD Flows v0.3.6 b/[Automagic] AMAD Flows v0.3.6 new file mode 100644 index 0000000..4880c10 --- /dev/null +++ b/[Automagic] AMAD Flows v0.3.6 @@ -0,0 +1,465 @@ + + + + false + com.android.music.metachanged + true + com.android.music.metachanged + + + + + + + + artist = getString("artist"); +track = getString("track"); +album = getString("album"); + false + + + true + HTTP Request: /fhem-amad/deviceInfo/, Port 8090 + true + /fhem-amad/deviceInfo/ + 8090 + true + + + true + HTTP Request: /fhem-amad/setCommands/*, Port 8090 + true + /fhem-amad/setCommands/* + 8090 + true + + + true + Akku Ladestand: grösser als 0% + 0 + HIGHER_THAN + + + 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_screen=="off" + param_screen=="off" + + + true + Expression: param_screen=="on" + param_screen=="on" + + + true + Expression: request_path == "/fhem-amad/setCommands/mediaPlayer" + request_path == "/fhem-amad/setCommands/mediaPlayer" + + + true + Expression: request_path == "/fhem-amad/setCommands/openURL" + request_path == "/fhem-amad/setCommands/openURL" + + + true + Expression: request_path == "/fhem-amad/setCommands/screenMsg" + request_path == "/fhem-amad/setCommands/screenMsg" + + + true + Expression: request_path == "/fhem-amad/setCommands/setAlarm" + request_path == "/fhem-amad/setCommands/setAlarm" + + + true + Expression: request_path == "/fhem-amad/setCommands/setBrightness" + request_path == "/fhem-amad/setCommands/setBrightness" + + + true + Expression: request_path == "/fhem-amad/setCommands/setScreenOnOff" + request_path == "/fhem-amad/setCommands/setScreenOnOff" + + + true + Expression: request_path == "/fhem-amad/setCommands/setVolume" + request_path == "/fhem-amad/setCommands/setVolume" + + + true + Expression: request_path == "/fhem-amad/setCommands/ttsMsg" + request_path == "/fhem-amad/setCommands/ttsMsg" + + + true + Expression: trigger == "com.android.music.metachanged" + trigger == "com.android.music.metachanged" + + + true + WLAN Verbunden: + false + + + + true + Audio Player steuern: Medienknopf Play (Google Play Musik) + true + LAUNCH + KEYCODE_MEDIA_PLAY + true + com.google.android.music + com.google.android.music.playback.MediaButtonIntentReceiver + Google Play Musik + + + true + Audio Player steuern: Medienknopf Stopp (Google Play Musik) + true + LAUNCH + KEYCODE_MEDIA_STOP + true + com.google.android.music + com.google.android.music.playback.MediaButtonIntentReceiver + Google Play Musik + + + true + Audio Player steuern: Medienknopf Weiter (Google Play Musik) + true + LAUNCH + KEYCODE_MEDIA_NEXT + true + com.google.android.music + com.google.android.music.playback.MediaButtonIntentReceiver + Google Play Musik + + + true + Audio Player steuern: Medienknopf Zurück (Google Play Musik) + true + LAUNCH + KEYCODE_MEDIA_PREVIOUS + true + com.google.android.music + com.google.android.music.playback.MediaButtonIntentReceiver + Google Play Musik + + + true + Benachrichtigung auf Bildschirm: {param_message} (lange) + true + {param_message} + + 200 + 250 + false + 1.0 + true + false + TOP_LEFT + 0 + 0 + + + true + Gerät sperren + + + true + HTTP Request: GET http://FHEM-IP:8085/fhem?cmd=setreading%20FHEMDEVICENAME%20currentMusicAlbum%20{encodeURLForm(album)} speichern in response + http://FHEM-IP:8085/fhem?cmd=setreading%20FHEMDEVICENAME%20currentMusicAlbum%20{encodeURLForm(album)} + true + false + + GET + X_WWW_FORM_URLENCODED + text/plain + + Lastname=XYZ,Firstname=ABC + 60000 + false + + true + response + /storage/emulated/0/Download/file.bin + + + true + HTTP Request: GET http://FHEM-IP:8085/fhem?cmd=setreading%20FHEMDEVICENAME%20currentMusicArtist%20{encodeURLForm(artist)} speichern in response + http://FHEM-IP:8085/fhem?cmd=setreading%20FHEMDEVICENAME%20currentMusicArtist%20{encodeURLForm(artist)} + true + false + + GET + X_WWW_FORM_URLENCODED + text/plain + + Lastname=XYZ,Firstname=ABC + 60000 + false + + true + response + /storage/emulated/0/Download/file.bin + + + true + HTTP Request: GET http://FHEM-IP:8085/fhem?cmd=setreading%20FHEMDEVICENAME%20currentMusicTrack%20{encodeURLForm(track)} speichern in response + http://FHEM-IP:8085/fhem?cmd=setreading%20FHEMDEVICENAME%20currentMusicTrack%20{encodeURLForm(track)} + true + false + + GET + X_WWW_FORM_URLENCODED + text/plain + + Lastname=XYZ,Firstname=ABC + 60000 + false + + true + response + /storage/emulated/0/Download/file.bin + + + false + HTTP Response + powerLevel {battery_percentage}@@powerPlugged {battery_plugged}@@volumeMusikBluetooth {volumeMusikBluetooth}@@volumeMusikSpeaker {volumeMusikSpeaker}@@screenBrightness {screenBrightness}@@nextAlarmTime {next_alarmtime}@@nextAlarmDay {next_alarmday} + true + text/html + + + true + Initialisiere Variable Nächster Alarm: Variable next_alarm + next_alarm + + + true + Initialisiere Variable Systemeinstellung: System screen_brightness to screenBrightness + SYSTEM + screen_brightness + screenBrightness + + + true + Initialisiere Variable Systemeinstellung: System volume_music_bt_a2dp to volumeMusikBluetooth + SYSTEM + volume_music_bt_a2dp + volumeMusikBluetooth + + + true + Initialisiere Variable Systemeinstellung: System volume_music_speaker to volumeMusikSpeaker + SYSTEM + volume_music_speaker + volumeMusikSpeaker + + + false + Lautstärken setzen + 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 + Pause: 2s (Gerät wach halten) + 2s + true + + + true + Schalte Display ein: Hell für 60s + true + 60s + true + + + true + Script: next_alarmday = "{next_alarm,dateformat,c}" + + + + true + Script: next_alarmtime = "{next_alarm,dateformat,HH:mm}" + + + + true + Setze Alarm: um {param_hour}:{param_minute} + + {param_hour} + {param_minute} + + + true + Setze Systemeinstellung: System screen_brightness auf {param_brightness} + SYSTEM + screen_brightness + {param_brightness} + true + + + true + Sprachausgabe: {param_message} + MUSIC + {param_message} + de_DE + true + 1.0 + true + 1.0 + false + false + false + false + TRANSIENT + + + true + URL in Browser öffnen: {param_url} (mit Chrome) + {param_url} + true + com.android.chrome + com.google.android.apps.chrome.Main + Chrome + + + Informations + FHEM Info / Steuerung über AMAD Modul + true + PARALLEL + + HTTP Request: /fhem-amad/deviceInfo/, Port 8090 + + Initialisiere Variable Nächster Alarm: Variable next_alarm + Initialisiere Variable Systemeinstellung: System volume_music_bt_a2dp to volumeMusikBluetooth + Initialisiere Variable Systemeinstellung: System volume_music_speaker to volumeMusikSpeaker + Initialisiere Variable Systemeinstellung: System screen_brightness to screenBrightness + Script: next_alarmtime = "{next_alarm,dateformat,HH:mm}" + Script: next_alarmday = "{next_alarm,dateformat,c}" + HTTP Response + Pause: 2s (Gerät wach halten) + Akku Ladestand: grösser als 0% + + + + + + + + + + + + + + + + SetCommands + FHEM Info / Steuerung über AMAD Modul + true + PARALLEL + + com.android.music.metachanged + HTTP Request: /fhem-amad/setCommands/*, Port 8090 + + Expression: param_screen=="off" + Expression: param_screen=="on" + Expression: request_path == "/fhem-amad/setCommands/setVolume" + Expression: request_path == "/fhem-amad/setCommands/setScreenOnOff" + Schalte Display ein: Hell für 60s + Gerät sperren + Lautstärken setzen + Expression: request_path == "/fhem-amad/setCommands/setBrightness" + Setze Alarm: um {param_hour}:{param_minute} + Expression: request_path == "/fhem-amad/setCommands/setAlarm" + Benachrichtigung auf Bildschirm: {param_message} (lange) + Expression: request_path == "/fhem-amad/setCommands/screenMsg" + URL in Browser öffnen: {param_url} (mit Chrome) + Expression: request_path == "/fhem-amad/setCommands/openURL" + Audio Player steuern: Medienknopf Stopp (Google Play Musik) + Expression: param_button == "stop" + Expression: param_button == "play" + Audio Player steuern: Medienknopf Play (Google Play Musik) + Audio Player steuern: Medienknopf Weiter (Google Play Musik) + Expression: param_button == "next" + Audio Player steuern: Medienknopf Zurück (Google Play Musik) + Expression: param_button == "back" + Expression: request_path == "/fhem-amad/setCommands/mediaPlayer" + Expression: trigger == "com.android.music.metachanged" + Sprachausgabe: {param_message} + Expression: request_path == "/fhem-amad/setCommands/ttsMsg" + Setze Systemeinstellung: System screen_brightness auf {param_brightness} + WLAN Verbunden: + HTTP Request: GET http://FHEM-IP:8085/fhem?cmd=setreading%20FHEMDEVICENAME%20currentMusicTrack%20{encodeURLForm(track)} speichern in response + HTTP Request: GET http://FHEM-IP:8085/fhem?cmd=setreading%20FHEMDEVICENAME%20currentMusicAlbum%20{encodeURLForm(album)} speichern in response + HTTP Request: GET http://FHEM-IP:8085/fhem?cmd=setreading%20FHEMDEVICENAME%20currentMusicArtist%20{encodeURLForm(artist)} speichern in response + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/[Automagic] Flows_Alarmtime b/[Automagic] Flows_Alarmtime deleted file mode 100644 index 4c64246..0000000 --- a/[Automagic] Flows_Alarmtime +++ /dev/null @@ -1,29 +0,0 @@ - - - - true - HTTP Request: /automagic/setAlarm, Port 8089 - true - /automagic/setAlarm - 8089 - true - - - true - Setze Alarm: um {param_hour}:{param_minute} - - {param_hour} - {param_minute} - - - Alarmtime - FHEM Info / Steuerung über AMAD Modul - true - PARALLEL - Setze Alarm: um {param_hour}:{param_minute} - - HTTP Request: /automagic/setAlarm, Port 8089 - - - - \ No newline at end of file