diff --git a/74_AMAD.pm b/74_AMAD.pm
index 3873378..d8b6eec 100644
--- a/74_AMAD.pm
+++ b/74_AMAD.pm
@@ -37,7 +37,7 @@ use TcpServerUtils;
use Encode qw(encode);
-my $version = "1.1.7";
+my $version = "1.1.8";
@@ -464,7 +464,7 @@ sub AMAD_Set($$@) {
$list .= "changetoBTDevice:$btdev " if( AttrVal( $name, "setBluetoothDevice", "none" ) ne "none" );
$list .= "activateVoiceInput:noArg ";
$list .= "screenLock:on,off " if( AttrVal( $name, "setScreenlockPIN", "none" ) ne "none" );
- $list .= "notifiVolume:slider,0,1,7 ";
+ $list .= "volumeNotification:slider,0,1,7 ";
if( lc $cmd eq 'screenmsg'
|| lc $cmd eq 'ttsmsg'
@@ -484,7 +484,7 @@ sub AMAD_Set($$@) {
|| lc $cmd eq 'changetobtdevice'
|| lc $cmd eq 'clearnotificationbar'
|| lc $cmd eq 'activatevoiceinput'
- || lc $cmd eq 'notifivolume'
+ || lc $cmd eq 'volumenotification'
|| lc $cmd eq 'screenlock'
|| lc $cmd eq 'statusrequest' ) {
@@ -563,7 +563,7 @@ sub AMAD_SelectSetCmd($$@) {
return AMAD_HTTP_POST( $hash, $url );
}
- elsif( lc $cmd eq 'notifivolume' ) {
+ elsif( lc $cmd eq 'volumenotification' ) {
my $vol = join( " ", @data );
my $url = "http://" . $host . ":" . $port . "/fhem-amad/setCommands/setNotifiVolume?notifivolume=$vol";
@@ -711,7 +711,7 @@ sub AMAD_SelectSetCmd($$@) {
my $PIN = AttrVal( $name, "setScreenlockPIN", undef );
$PIN = AMAD_decrypt($PIN);
- my $url = "http://" . $host . ":" . $port . "/fhem-amad/setCommands/screenlock?mode=".$lockmod."&lockPIN=".$PIN;
+ my $url = "http://" . $host . ":" . $port . "/fhem-amad/setCommands/screenlock?lockmod=".$lockmod."&lockPIN=".$PIN;
readingsSingleUpdate( $hash, $cmd, $lockmod, 1 );
return AMAD_HTTP_POST( $hash,$url );
diff --git a/74_AMADautomagicFlows_1.0.0.xml b/74_AMADautomagicFlows_1.1.x.xml
similarity index 74%
rename from 74_AMADautomagicFlows_1.0.0.xml
rename to 74_AMADautomagicFlows_1.1.x.xml
index d502959..58eccd6 100644
--- a/74_AMADautomagicFlows_1.0.0.xml
+++ b/74_AMADautomagicFlows_1.1.x.xml
@@ -83,12 +83,6 @@ global_album = getString("album");
Sprachbefehl angefordert
true
-
- true
- Akku Ladestand: grösser als 0%
- 0
- HIGHER_THAN
-
false
App Task läuft: App3 (neuster)
@@ -277,6 +271,11 @@ global_album = getString("album");
Expression: param_fullscreen == "on"
param_fullscreen == "on"
+
+ true
+ Expression: param_lockmod == "on"
+ param_lockmod == "on"
+
true
Expression: param_notifyfile == "RedAlert.mp3"
@@ -337,11 +336,21 @@ global_album = getString("album");
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"
@@ -416,6 +425,14 @@ global_album = getString("album");
true
Musik Aktiv
+
+ true
+ Stromversorgung: Angeschlossen
+ true
+ true
+ true
+ true
+
true
WLAN Verbunden: Alle SSIDs
@@ -425,7 +442,7 @@ global_album = getString("album");
false
AMAD Voice Control
- false
+ true
true
de-DE
@@ -711,7 +728,7 @@ androidVersion = "4.1 Jelly Bean"
false
HTTP Response Information
- powerLevel@@{battery_percentage}@@@@powerPlugged@@{battery_plugged}@@@@volumeMusikBluetooth@@{volumeMusikBluetooth}@@@@volumeMusikSpeaker@@{volumeMusikSpeaker}@@@@screenBrightness@@{screenBrightness}@@@@nextAlarmTime@@{next_alarmtime}@@@@nextAlarmDay@@{next_alarmday}@@@@screen@@{screen_state}@@@@automagicState@@{notification_text}@@@@screenOrientation@@{screen_orientation}@@@@currentMusicTrack@@{global_track}@@@@currentMusicAlbum@@{global_album}@@@@currentMusicArtist@@{global_artist}@@@@bluetooth@@{bluetooth_state}@@@@connectedBTdevices@@{connected_devices_names}@@@@connectedBTdevicesMAC@@{connected_devices_addresses}@@@@flow_SetCommands@@{setCommandFlow_state}@@@@checkActiveTask@@{runTask}@@@@androidVersion@@{androidVersion}
+ powerLevel@@{battery_percentage}@@@@powerPlugged@@{battery_plugged}@@@@volumeMusikBluetooth@@{volumeMusikBluetooth}@@@@volumeMusikSpeaker@@{volumeMusikSpeaker}@@@@screenBrightness@@{screenBrightness}@@@@nextAlarmTime@@{next_alarmtime}@@@@nextAlarmDay@@{next_alarmday}@@@@screen@@{screen_state}@@@@automagicState@@{notification_text}@@@@screenOrientation@@{screen_orientation}@@@@currentMusicTrack@@{global_track}@@@@currentMusicAlbum@@{global_album}@@@@currentMusicArtist@@{global_artist}@@@@bluetooth@@{bluetooth_state}@@@@connectedBTdevices@@{connected_devices_names}@@@@connectedBTdevicesMAC@@{connected_devices_addresses}@@@@flow_SetCommands@@{setCommandFlow_state}@@@@checkActiveTask@@{runTask}@@@@androidVersion@@{androidVersion}@@@@volumeNotification@@{volumeNotification}
true
text/plain
@@ -748,6 +765,13 @@ androidVersion = "4.1 Jelly Bean"
volume_music_speaker
volumeMusikSpeaker
+
+ false
+ Initialisiere Variable Systemeinstellung: volumeNotification
+ SYSTEM
+ volume_ring_speaker
+ volumeNotification
+
true
Kommandozeilenbefehl als Root ausführen: getevent -c 1 in
@@ -758,17 +782,9 @@ androidVersion = "4.1 Jelly Bean"
stderr
exit_code
-
- true
- Lautstärke einstellen: Benachrichtigung auf Level 7
- NOTIFICATION
- 7
- false
- false
-
false
- Lautstärken setzen Benachrichtigung
+ Lautstärken setzen param_notifivolume
false
global_volume_alarm
false
@@ -776,7 +792,7 @@ androidVersion = "4.1 Jelly Bean"
false
param_volume
true
- global_volume_notification
+ param_notifivolume
false
global_volume_ring
false
@@ -810,28 +826,6 @@ androidVersion = "4.1 Jelly Bean"
false
global_interruptions_mode
-
- true
- Lautstärken 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
-
true
Neustart
@@ -1164,6 +1158,22 @@ FHEMCMD: voiceinputvalue
SetCommands
+
+ 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
+
true
Setze Systemeinstellung: System screen_brightness auf {param_brightness}
@@ -1260,7 +1270,7 @@ FHEMCMD: statusrequest
Informations
- FHEM Info / Steuerung über AMAD Modul v1.0.0
+ FHEM Info / Steuerung über AMAD Modul v1.1.x
true
QUEUE
240
@@ -1291,98 +1301,114 @@ FHEMCMD: statusrequest
Script: screen_orientation = "auto"
Script: screen_orientation = "portrait"
Script: screen_orientation = "landscape"
- HTTP Response Information
- Display Orientierung: Portrait
- Script: runTask = "0"
- App Task läuft: {header_activetask} (neuster)
- Expression: getAndroidSDKVersion() >= "19"
- Expression: header_activetask != "none"
- Script: runTask = "null"
- Script: runTask = "not supported android version"
- Expression: trigger == "Globale Variable: global_own_reading"
- Script: global_fhemip = {header_fhemip} global_fhemdevice = {header_fhemdevice}
- Script: notification_text = "not supported from your device"
- Benachrichtigung in Statusbar angezeigt: Automagic
- Script: notification_text = "Aktiviere Automagic unter Einstellungen -> Benachrichtigungen -> Benachrichtigungszugriff"
- Akku Ladestand: grösser als 0%
- Script: screen_state = "off"
- Script: screen_state = "on"
- Display eingeschaltet
- Expression: getAndroidSDKVersion() >= "19"
- Bluetooth Gerät verbunden: Beliebiges Geräte
- Script: bluetooth_state = "on"
- Bluetooth eingeschaltet
- Script: bluetooth_state = "off"
- Get Android Version
- Own Reading
+ Display Orientierung: Portrait
+ Script: runTask = "0"
+ App Task läuft: {header_activetask} (neuster)
+ Expression: getAndroidSDKVersion() >= "19"
+ Expression: header_activetask != "none"
+ Script: runTask = "null"
+ Script: runTask = "not supported android version"
+ Script: notification_text = "not supported from your device"
+ Benachrichtigung in Statusbar angezeigt: Automagic
+ Script: notification_text = "Aktiviere Automagic unter Einstellungen -> Benachrichtigungen -> Benachrichtigungszugriff"
+ Script: screen_state = "off"
+ Script: screen_state = "on"
+ Display eingeschaltet
+ Expression: getAndroidSDKVersion() >= "19"
+ Bluetooth Gerät verbunden: Beliebiges Geräte
+ Script: bluetooth_state = "on"
+ Bluetooth eingeschaltet
+ Script: bluetooth_state = "off"
+ Own Reading
+ Expression: trigger == "Globale Variable: global_own_reading"
+ Script: global_fhemip = {header_fhemip} global_fhemdevice = {header_fhemdevice}
+ Get Android Version
+ HTTP Response Information
+ Stromversorgung: Angeschlossen
+ Initialisiere Variable Systemeinstellung: volumeNotification
-
-
-
+
+
+
-
+
-
+
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Meldung Display An
@@ -1445,250 +1471,257 @@ FHEMCMD: statusrequest
SetCommands
- FHEM Info / Steuerung über AMAD Modul v1.0.0
+ FHEM Info / Steuerung über AMAD Modul v1.1.x
true
QUEUE
240
-
+ Expression: param_screen=="on"
+ Expression: setBrightness"
+ Expression: setAlarm"
+ Expression: screenMsg"
+ URL in Browser öffnen: {param_url} (mit Chrome)
+ Benachrichtigung auf Bildschirm: {param_message} (lange)
+ 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
+ Expression: param_button == "back"
+ Expression: param_button == "next"
+ Setze Display Orientierung: Auf Default zurücksetzen
+ Expression: param_button == "play"
+ Expression: mediaPlayer"
+ Expression: param_button == "stop"
+ Expression: param_screen=="off"
+ Expression: setScreenOnOff"
+ App Task läuft: App5 (neuster)
+ Expression: App5
+ Expression: App4
+ App Task läuft: App3 (neuster)
+ Expression: App3
+ App Starten: App3
+ App Starten: App4
+ App Task läuft: App4 (neuster)
+ Expression: tuneinradio
+ App Task läuft: tuneinradio (neuster)
+ App Starten: tuneinradio
+ App Starten: App5
+ App Task läuft: gplay (neuster)
+ Expression: gplay
+ App Starten: PlayMusic
+ Expression: System Command"
+ Neustart
+ Flow Aktiv: Informations
+ Expression: ttsMsg"
+ Setze Systemeinstellung: System screen_brightness auf {param_brightness}
+ Schalte Display ein: Hell für 120s
+ Display automatisch drehen ein-/ausschalten: Aus
+ Display automatisch drehen ein-/ausschalten: Ein
+ Setze Alarm: um {param_hour}:{param_minute}
+ Expression: setScreenOrientation"
+ Expression: param_fullscreen == "off"
+ Expression: param_fullscreen == "on"
+ Expression: setBluetooth"
+ Sprachausgabe: {param_message}
+ Expression: param_bluetooth == "off"
+ Expression: param_bluetooth == "on"
+ Bluetooth ein-/ausschalten: Ein
+ Expression: openApp"
+ Expression: Reboot
+ Benachrichtigung aus Statusbar entfernen: Alle
+ Expression: All
+ Benachrichtigung aus Statusbar entfernen: Alle (Automagic)
+ Expression: Automagic
+ Setze Flow Status: Aktivieren Informations
+ 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)
+ Gerät sperren
+ Expression: Clear Automagic Meldungen"
+ Script: informationFlow_state = "aktiv"
+ Expression: setBTDevice"
+ Expression: openURL"
+ Audio Player steuern: Medienknopf Play (Google Play Musik)
+ Audio Player steuern: Medienknopf Weiter (Google Play Musik)
+ Audio Player steuern: Medienknopf Zurück (Google Play Musik)
+ StatusRequest
+ Bluetooth ein-/ausschalten: Aus
+ Audio Player steuern: Medienknopf Stopp (Google Play Musik)
+ Expression: notifysnd"
+ Expression: param_notifyfile == "RedAlert.mp3"
+ Sound: /storage/emulated/0/Notifications/{param_notifyfile} als Benachrichtigung
+ Notification Lautstärke Wiederherstellen
+ HTTP Response SetCommand
+ Expression: setVolume"
+ Lautstärken setzen param_volume
+ Expression: trigger == "Sprachbefehl angefordert"
+
HTTP Request: /fhem-amad/deviceInfo/
HTTP Request: /fhem-amad/setCommands/*
Sprachbefehl angefordert
- Expression: param_screen=="on"
- Expression: setBrightness"
- Expression: setAlarm"
- Expression: screenMsg"
- URL in Browser öffnen: {param_url} (mit Chrome)
- Benachrichtigung auf Bildschirm: {param_message} (lange)
- Expression: setScreenFullscreen"
- Expression: param_orientation == "auto"
- Setze Display Orientierung: Portrait
- Setze Display Orientierung: Landscape
- Expression: param_orientation == "landscape"
- Expression: param_orientation == "portrait"
- Setze Vollbild Modus: Navigation nicht anzeigen
- Setze Vollbild Modus: Auf Default zurücksetzen
- Expression: param_button == "back"
- Expression: param_button == "next"
- Setze Display Orientierung: Auf Default zurücksetzen
- Expression: param_button == "play"
- Expression: mediaPlayer"
- Expression: param_button == "stop"
- Expression: param_screen=="off"
- Expression: setScreenOnOff"
- App Task läuft: App5 (neuster)
- Expression: App5
- Expression: App4
- App Task läuft: App3 (neuster)
- Expression: App3
- App Starten: App3
- App Starten: App4
- App Task läuft: App4 (neuster)
- Expression: tuneinradio
- App Task läuft: tuneinradio (neuster)
- App Starten: tuneinradio
- App Starten: App5
- App Task läuft: gplay (neuster)
- Expression: gplay
- App Starten: PlayMusic
- Expression: System Command"
- Neustart
- Flow Aktiv: Informations
- Expression: ttsMsg"
- Setze Systemeinstellung: System screen_brightness auf {param_brightness}
- Schalte Display ein: Hell für 120s
- Display automatisch drehen ein-/ausschalten: Aus
- Display automatisch drehen ein-/ausschalten: Ein
- Setze Alarm: um {param_hour}:{param_minute}
- Expression: setScreenOrientation"
- Expression: param_fullscreen == "off"
- Expression: param_fullscreen == "on"
- Expression: setBluetooth"
- Expression: setVolume"
- Sprachausgabe: {param_message}
- Expression: param_bluetooth == "off"
- Expression: param_bluetooth == "on"
- Bluetooth ein-/ausschalten: Ein
- Expression: openApp"
- Expression: Reboot
- Benachrichtigung aus Statusbar entfernen: Alle
- Expression: All
- Benachrichtigung aus Statusbar entfernen: Alle (Automagic)
- Expression: Automagic
- Setze Flow Status: Aktivieren Informations
- 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)
- Gerät sperren
- Expression: Clear Automagic Meldungen"
- Script: informationFlow_state = "aktiv"
- Expression: setBTDevice"
- Expression: trigger == "HTTP Request: /fhem-amad/setCommands/*"
- Expression: trigger == "Sprachbefehl angefordert"
- Expression: openURL"
- Expression: setVoiceCommand"
- Audio Player steuern: Medienknopf Play (Google Play Musik)
- Audio Player steuern: Medienknopf Weiter (Google Play Musik)
- Audio Player steuern: Medienknopf Zurück (Google Play Musik)
- StatusRequest
- Bluetooth ein-/ausschalten: Aus
- Audio Player steuern: Medienknopf Stopp (Google Play Musik)
- Lautstärken setzen param_volume
- Lautstärke einstellen: Benachrichtigung auf Level 7
- Lautstärken Speichern
- Expression: param_notifyfile == "RedAlert.mp3"
- Expression: notifysnd"
- Expression: param_notifyfile == "RedAlert.mp3"
- Lautstärken setzen Benachrichtigung
- Sound: /storage/emulated/0/Notifications/{param_notifyfile} als Benachrichtigung
- NotificationLautstärke auf Level 7
- Notification Lautstärke Speichern
- Notification Lautstärke Wiederherstellen
- HTTP Response SetCommand
- Flows ausführen: VoiceControl
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ Expression: setNotifiVolume"
+ Expression: setVoiceCommand"
+ Flows ausführen: VoiceControl
+ Expression: param_orientation == "portrait"
+ Setze Lock PIN/Passwort: PIN/Passwort zurücksetzen
+ Expression: param_lockmod == "on"
+ Expression: setScreenlock"
+ Expression: trigger == "HTTP Request: /fhem-amad/setCommands/*"
+ Setze Lock PIN/Passwort: Setze PIN von Variable param_lockpin
+ Notification Lautstärke Speichern
+ NotificationLautstärke auf Level 7
+ Lautstärken setzen param_notifivolume
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
VoiceControl
- FHEM Info / Steuerung über AMAD Modul v1.0.0
+ FHEM Info / Steuerung über AMAD Modul v1.1.x
true
QUEUE
Expression: value != ""
Spracheingabe wurde nicht erkannt
Benachrichtigung auf Bildschirm: {value} (lange)
- AMAD Voice Control
- Send Voice Input Value to AMADCommBridge
-
-
+ Send Voice Input Value to AMADCommBridge
+ AMAD Voice Control
+
+
-
-
+
+
\ No newline at end of file