diff --git a/74_AMAD.pm b/74_AMAD.pm
index 2b8a9af..82564dd 100644
--- a/74_AMAD.pm
+++ b/74_AMAD.pm
@@ -37,7 +37,7 @@ use TcpServerUtils;
use Encode qw(encode);
-my $version = "1.1.11";
+my $version = "1.1.20";
@@ -199,13 +199,7 @@ my ( $cmd, $name, $attrName, $attrVal ) = @_;
elsif( $attrName eq "setScreenlockPIN" ) {
if( $cmd eq "set" && $attrVal ) {
- my $pinlenght = length($attrVal);
- if( $attrVal =~ /^\d+$/ && $pinlenght > 3 && $pinlenght < 17 ) {
$attrVal = AMAD_encrypt($attrVal);
- } else {
- return "Failed to set the pin. There are only allowed numbers and it must be more than 4 and less as 16 points";
- }
-
} else {
CommandDeleteReading( undef, "$name screenLock" );
}
@@ -463,7 +457,7 @@ sub AMAD_Set($$@) {
$list .= "openApp:$apps " if( AttrVal( $name, "setOpenApp", "none" ) ne "none" );
$list .= "nextAlarmTime:time ";
$list .= "statusRequest:noArg ";
- $list .= "system:reboot " if( AttrVal( $name, "root", "1" ) eq "1" );
+ $list .= "system:reboot,shutdown,airplanemode " if( AttrVal( $name, "root", "1" ) eq "1" );
$list .= "bluetooth:on,off ";
$list .= "notifySndFile ";
$list .= "clearNotificationBar:All,Automagic ";
@@ -671,6 +665,9 @@ sub AMAD_SelectSetCmd($$@) {
my $systemcmd = join( " ", @data );
my $url = "http://" . $host . ":" . $port . "/fhem-amad/setCommands/systemcommand?syscmd=$systemcmd";
+
+ readingsSingleUpdate( $hash, $systemcmd, "on", 1 ) if( $systemcmd eq "airplanemode" );
+ readingsSingleUpdate( $hash, "deviceState", "offline", 1 ) if( $systemcmd eq "airplanemode" || $systemcmd eq "shutdown" );
return AMAD_HTTP_POST( $hash,$url );
}
@@ -1318,7 +1315,7 @@ sub AMAD_decrypt($) {
screen fullscreen - Switches to full screen mode on / off. Attribute SetFullscreen
screenLock - locked Screen by set Pinlock. Attribute setScreenlockPIN - There are only allowed numbers and it must be more than 4 and less as 16 character
screenOrientation - Switches the screen orientation Auto / Landscape / Portrait. Attribute setScreenOrientation
- system - set system commands from (only rooted devices). Reboot Attribut root, in the Auto Magic Settings "root function" must be set
+ system - set system commands from (only rooted devices). reboot,shutdown,airplanemode (activate only) Attribut root, in the Auto Magic Settings "root function" must be set
In order to use openApp you need an attribute where separated by a comma, several app names are set in order to use openapp. The app name is arbitrary and only required for recognition. The same app name must be used in the flow in SetCommands on the left below the hash expression: "openapp" be in one of the 5 paths (one app per path) entered in both diamonds. Thereafter, in the quadrangle selected the app which app through the attribute names should be started.
To switch between different Bluetooth devices, you need set the attribute setBluetoothDevice accordingly.
attr BTdeviceName1|MAC,BTDeviceName2|MAC
@@ -1336,8 +1333,7 @@ sub AMAD_decrypt($) {
Application examples:
- I have the chargers for my Android devices on wireless switch sockets. a DOIF switches the charger on if the battery is below 30% and switches it off than the battery is charged 90% again. In the morning I'll wake up with music from my tablet in the bedroom. This involves the use of the wakeuptimer the RESIDENTS Modules. I stop the music manually. After that the weather forecast will be told (through TTS).
- My 10 "Tablet in the living room is media player for the living room with Bluetooth speakers. The volume is automatically set down when the Fritzbox signals a incoming call on the living room handset.
+ Do you find in the Wiki entry for AMAD (german only)
@@ -1529,7 +1525,7 @@ sub AMAD_decrypt($) {
statusRequest - Fordert einen neuen Statusreport beim Device an
ttsMsg - versendet eine Nachricht welche als Sprachnachricht ausgegeben wird
volume - setzt die Medialautstärke. Entweder die internen Lautsprecher oder sofern angeschlossen die Bluetoothlautsprecher
- volumeNotification - setzt die Benachrichtigungslautstärke.
+ volumeNotification - setzt die Benachrichtigungslautstärke.
Set abhängig von gesetzten Attributen
@@ -1541,9 +1537,9 @@ sub AMAD_decrypt($) {
Wenn Ihr das "set screenBrightness" verwenden wollt, muss eine kleine Anpassung im Flow SetCommands vorgenommen werden. Öffnet die Aktion (eines der Vierecke ganz ganz unten)
SetzeSystemeinstellung:System und macht einen Haken bei "Ich habe die Einstellungen überprüft, ich weiss was ich tue".
screenFullscreen - Schaltet den Vollbildmodus on/off. Attribut setFullscreen
- screenLock - Sperrt den Bildschirm mit Pinabfrage. Attribut setScreenlockPIN - hier die Pin dafür eingeben. Erlaubt sind nur Zahlen. Es müßen mindestens 4 bis max 16 Zeichen sein.
+ screenLock - Sperrt den Bildschirm mit Pinabfrage. Attribut setScreenlockPIN - hier die Pin dafür eingeben. Erlaubt sind nur Zahlen. Es müßen mindestens 4 bis max 16 Zeichen sein.
screenOrientation - Schaltet die Bildschirmausrichtung Auto/Landscape/Portait. Attribut setScreenOrientation
- system - setzt Systembefehle ab (nur bei gerootetet Geräen). Reboot Attribut root, in den Automagic Einstellungen muss "Root Funktion" gesetzt werden
+ system - setzt Systembefehle ab (nur bei gerootetet Geräen). reboot,shutdown,airplanemode (kann nur aktiviert werden) Attribut root, in den Automagic Einstellungen muss "Root Funktion" gesetzt werden
Um openApp verwenden zu können, muss als Attribut ein, oder durch Komma getrennt, mehrere App Namen gesetzt werden. Der App Name ist frei wählbar und nur zur Wiedererkennung notwendig.
Der selbe App Name muß im Flow SetCommands auf der linken Seite unterhalb der Raute Expression:"openApp" in einen der 5 Stränge (eine App pro Strang) in beide Rauten eingetragen werden. Danach wird
@@ -1564,11 +1560,7 @@ sub AMAD_decrypt($) {
Anwendungsbeispiele:
- Ich habe die Ladegeräte für meine Androidgeräte an Funkschaltsteckdosen. ein DOIF schaltet bei unter 30% die Steckdose ein und bei über 90% wieder aus. Morgens lasse ich mich
- über mein Tablet im Schlafzimmer mit Musik wecken. Verwendet wird hierzu der wakeuptimer des RESIDENTS Modules. Das abspielen stoppe ich dann von Hand. Danach erfolgt noch eine
- Ansage wie das Wetter gerade ist und wird.
- Mein 10" Tablet im Wohnzimmer ist Mediaplayer für das Wohnzimmer mit Bluetoothlautsprechern. Die Lautstärke wird automatisch runter gesetzt wenn die Fritzbox einen Anruf auf das
- Wohnzimmer Handgerät signalisiert.
+ Hier verweise ich auf den gut gepflegten Wikieintrag
diff --git a/74_AMADautomagicFlows_1.1.x.xml b/74_AMADautomagicFlows_1.1.x.xml
index 58eccd6..f8715a0 100644
--- a/74_AMADautomagicFlows_1.1.x.xml
+++ b/74_AMADautomagicFlows_1.1.x.xml
@@ -17,30 +17,12 @@ global_track = getString("track");
global_album = getString("album");
false
-
- true
- Display Status: Aus
- false
- false
-
-
- true
- Display Status: Ein
- false
- true
-
true
Globale Variable: global_own_reading
true
global_own_reading
-
- true
- Globale Variable: global_touched
- false
- global_touched
-
false
HTTP Request: /fhem-amad/deviceInfo/
@@ -57,27 +39,6 @@ global_album = getString("album");
8090
true
-
- true
- Periodischer Timer: alle 4m
- false
- 240000
- true
- false
- false
- Mon
- Tue
- Wed
- Thu
- Fri
- Sat
- Sun
- 8
- 0
- 17
- 0
- false
-
true
Sprachbefehl angefordert
@@ -156,6 +117,11 @@ global_album = getString("album");
Display Orientierung: Portrait
true
+
+ false
+ Expression: Airplanemode
+ param_syscmd == "airplanemode"
+
false
Expression: All
@@ -191,16 +157,6 @@ global_album = getString("album");
Expression: getAndroidSDKVersion() >= "19"
getAndroidSDKVersion() >= "19"
-
- true
- Expression: global_touched=="ja"
- global_touched=="ja"
-
-
- true
- Expression: global_touched=="wait"
- global_touched=="wait"
-
false
Expression: gplay
@@ -371,6 +327,11 @@ global_album = getString("album");
Expression: setVolume"
request_path == "/fhem-amad/setCommands/setVolume"
+
+ false
+ Expression: Shutdown
+ param_syscmd == "shutdown"
+
false
Expression: System Command"
@@ -421,6 +382,10 @@ global_album = getString("album");
Flow Aktiv: SetCommands
SetCommands
+
+ true
+ Flugmodus eingeschaltet
+
true
Musik Aktiv
@@ -683,6 +648,12 @@ global_album = getString("album");
false
false
+
+ true
+ Flugmodus ein-/ausschalten: Ein
+ SYSTEM_SETTING
+ true
+
true
Gerät sperren
@@ -697,7 +668,7 @@ androidVersion = "6.0 Marshmallow"
if (getAndroidSDKVersion() == 22)
{
-androidVersion = "5.1 Lollipop"
+androidVersion = "5.1 Lollipop MR1"
}
if (getAndroidSDKVersion() == 21)
@@ -712,23 +683,37 @@ androidVersion = "4.4 KitKat"
if (getAndroidSDKVersion() == 18)
{
-androidVersion = "4.3 Jelly Bean"
+androidVersion = "4.3 Jelly Bean MR2"
}
if (getAndroidSDKVersion() == 17)
{
-androidVersion = "4.2 Jelly Bean"
+androidVersion = "4.2 - 4.2.2 Jelly Bean MR1"
}
if (getAndroidSDKVersion() == 16)
{
-androidVersion = "4.1 Jelly Bean"
+androidVersion = "4.1 - 4.1.1 Jelly Bean"
+}
+
+if (getAndroidSDKVersion() == 15)
+{
+androidVersion = "4.0.3 - 4.0.4 Ice Cream Sandwich MR1"
+}
+
+if (getAndroidSDKVersion() == 14)
+{
+androidVersion = "4.0 - 4.0.2 Ice Cream Sandwich"
}
+
+ true
+ Herunterfahren
+
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}@@@@volumeNotification@@{volumeNotification}
+ 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}@@@@airplanemode@@{airplanemode}
true
text/plain
@@ -772,16 +757,6 @@ androidVersion = "4.1 Jelly Bean"
volume_ring_speaker
volumeNotification
-
- true
- Kommandozeilenbefehl als Root ausführen: getevent -c 1 in
- getevent -c 1
-
-
- stdout
- stderr
- exit_code
-
false
Lautstärken setzen param_notifivolume
@@ -904,20 +879,6 @@ FHEMCMD: setreading
/storage/emulated/0/Download/file.bin
true
-
- true
- Pause: 10s (Schlafmodus zulassen)
- 10s
- false
- false
-
-
- true
- Pause: 15s (Gerät wach halten)
- 15s
- true
- false
-
true
Pause: 2s (Gerät wach halten)
@@ -960,6 +921,11 @@ FHEMCMD: setreading
120s
true
+
+ true
+ Script: airplanemode = "off"
+
+
true
Script: bluetooth_state = "off"
@@ -977,42 +943,12 @@ FHEMCMD: setreading
global_track = "no soundplayer activ";
global_album = "no soundplayer activ";
-
- true
- Script: global_display="an";global_own_reading="{getDate()}_display"
-
-
-
- true
- Script: global_display="aus";global_own_reading="{getDate()}_display"
-
-
true
Script: global_fhemip = {header_fhemip} global_fhemdevice = {header_fhemdevice}
-
- true
- Script: global_touch="ja";global_own_reading="{getDate()}_touch";global_touched="ja"
-
-
-
- true
- Script: global_touch="nein";global_own_reading="{getDate()}_touch"
-
-
-
- true
- Script: global_touched="ja"
-
-
-
- true
- Script: global_touched="wait"
-
-
true
Script: informationFlow_state = "aktiv"
@@ -1322,16 +1258,18 @@ FHEMCMD: statusrequest
Own Reading
Expression: trigger == "Globale Variable: global_own_reading"
Script: global_fhemip = {header_fhemip} global_fhemdevice = {header_fhemdevice}
- Get Android Version
- HTTP Response Information
+ Initialisiere Variable Systemeinstellung: volumeNotification
+ Flugmodus eingeschaltet
Stromversorgung: Angeschlossen
- Initialisiere Variable Systemeinstellung: volumeNotification
+ Script: airplanemode = "off"
+ HTTP Response Information
+ Get Android Version
-
-
-
+
+
+
@@ -1342,46 +1280,47 @@ FHEMCMD: statusrequest
-
-
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
-
-
+
+
+
-
-
-
-
+
+
+
+
-
+
-
+
-
+
+
@@ -1392,7 +1331,7 @@ FHEMCMD: statusrequest
-
+
@@ -1405,69 +1344,13 @@ FHEMCMD: statusrequest
+
+
-
-
-
-
-
- Meldung Display An
- AMAD FHEM / OwnReadings Examples
- false
- PARALLEL
-
- Display Status: Ein
-
- Script: global_display="an";global_own_reading="{getDate()}_display"
-
-
-
- Meldung Display Aus
- AMAD FHEM / OwnReadings Examples
- false
- PARALLEL
-
- Display Status: Aus
-
- Script: global_display="aus";global_own_reading="{getDate()}_display"
-
-
-
- Meldung kein Touch
- AMAD FHEM / OwnReadings Examples
- false
- STOP
-
- Globale Variable: global_touched
-
- Pause: 15s (Gerät wach halten)
- Script: global_touched="wait"
- Expression: global_touched=="ja"
- Expression: global_touched=="wait"
- Script: global_touch="nein";global_own_reading="{getDate()}_touch"
-
-
-
-
-
-
-
- Meldung Touch
- AMAD FHEM / OwnReadings Examples
- false
- STOP
-
- Periodischer Timer: alle 4m
-
- Kommandozeilenbefehl als Root ausführen: getevent -c 1 in
- Script: global_touched="ja"
- Pause: 10s (Schlafmodus zulassen)
- Script: global_touch="ja";global_own_reading="{getDate()}_touch";global_touched="ja"
-
-
-
-
-
+
+
+
+
SetCommands
@@ -1475,237 +1358,245 @@ FHEMCMD: statusrequest
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: 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
-
+ 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
+ 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"
+ 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
+ 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)
+ HTTP Response SetCommand
+ Expression: setVolume"
+ Lautstärken setzen param_volume
+ Expression: trigger == "Sprachbefehl angefordert"
+ 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
+ Expression: Reboot
+ Expression: System Command"
+ Neustart
+ Expression: Shutdown
+ Expression: Airplanemode
+ Herunterfahren
+ Flugmodus ein-/ausschalten: Ein
+ Sound: /storage/emulated/0/Notifications/{param_notifyfile} als Benachrichtigung
+ Benachrichtigung aus Statusbar entfernen: Alle
+ Benachrichtigung aus Statusbar entfernen: Alle (Automagic)
+ Expression: Automagic
+ Expression: All
+ Lautstärken setzen param_notifivolume
+ Expression: setNotifiVolume"
+ Expression: Clear Automagic Meldungen"
+ Expression: notifysnd"
+ NotificationLautstärke auf Level 7
+ Notification Lautstärke Speichern
+ Expression: param_notifyfile == "RedAlert.mp3"
+ Notification Lautstärke Wiederherstellen
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
VoiceControl