diff --git a/74_AMAD.pm b/74_AMAD.pm
index 3360804..4dfc38c 100644
--- a/74_AMAD.pm
+++ b/74_AMAD.pm
@@ -35,7 +35,7 @@ use Time::HiRes qw(gettimeofday);
use HttpUtils;
use TcpServerUtils;
-my $version = "0.9.7";
+my $version = "0.9.9";
@@ -1069,6 +1069,7 @@ sub AMAD_Header2Hash($) {
The AndroidAPP Auto Magic (this 3rd party app costs 2.90Euro) works better than Tasker and is more user-friendly.
The following information can be displayed:
+ - Android Version
- State of Automagic on the device
- Bluetooth on / off
- Connected Bluetooth devices
@@ -1093,6 +1094,7 @@ sub AMAD_Header2Hash($) {
With this module it is also possible to control an Android device as follows.
+ - Activate Voice Input
- Switch Bluetooth on/off
- Set or change the connection to a specific Bluetooth device
- State of the device (online, offline)
@@ -1154,6 +1156,7 @@ sub AMAD_Header2Hash($) {
Readings
+ - androidVersion - installed Android Version
- automagic state - status messages from the AutomagicApp
- bluetooth on / off - is Bluetooth switched on or off on the device
- checkActiveTask - state of an app being defined before, 1=activ in the foreground, see the hint further down
@@ -1224,6 +1227,7 @@ sub AMAD_Header2Hash($) {
Set
+ - activateVoiceInput - activat Voice Input on Android Device
- Device State - sets the Device Status Online / Offline. See Readings
- Media Player - controls the default media player. Play, Stop, Back Route title, ahead of title.
- NextAlarm time - sets the alarm time. only within the next 24hrs.
@@ -1286,6 +1290,7 @@ sub AMAD_Header2Hash($) {
Die AndroidAPP Automagic (welche nicht von mir stammt und 2.90Euro kostet) funktioniert wie Tasker, ist aber bei weitem User freundlicher.
Im Auslieferungszustand werden folgende Zustände dargestellt:
+ - Android Version
- Zustand von Automagic auf dem Gerät
- Bluetooth An/Aus
- Zustand einer definierten App (läuft aktiv im Vordergrund oder nicht?)
@@ -1312,6 +1317,7 @@ sub AMAD_Header2Hash($) {
Das Modul gibt Dir auch die Möglichkeit Deine Androidgeräte zu steuern. So können folgende Aktionen durchgeführt werden.
+ - aktiviert Spracheingabe
- Bluetooth Ein/Aus schalten
- zu einem bestimmten Bluetoothgerät wechseln/verbinden
- Status des Gerätes (Online,Offline)
@@ -1375,6 +1381,7 @@ sub AMAD_Header2Hash($) {
Readings
+ - androidVersion - aktuell installierte Androidversion
- automagicState - Statusmeldungen von der AutomagicApp (Voraussetzung Android >4.3). Wer ein Android >4.3 hat und im Reading steht "wird nicht unterstützt", muß in den Androideinstellungen unter Ton und Benachrichtigungen -> Benachrichtigungszugriff ein Haken setzen für Automagic
- bluetooth on/off - ist auf dem Gerät Bluetooth an oder aus
- checkActiveTask - Zustand einer zuvor definierten APP. 0=nicht aktiv oder nicht aktiv im Vordergrund, 1=aktiv im Vordergrund, siehe Hinweis unten
@@ -1445,6 +1452,7 @@ sub AMAD_Header2Hash($) {
Set
+ - activateVoiceInput - schaltet die Spracheingabe ein
- bluetooth - Schaltet Bluetooth on/off
- clearNotificationBar - (All,Automagic) löscht alle Meldungen oder nur die Automagic Meldungen in der Statusleiste
- deviceState - setzt den Device Status Online/Offline. Siehe Readings
diff --git a/74_AMADautomagicFlows_0.9.7.xml b/74_AMADautomagicFlows_0.9.9.xml
similarity index 83%
rename from 74_AMADautomagicFlows_0.9.7.xml
rename to 74_AMADautomagicFlows_0.9.9.xml
index ac1c5d7..4e1d0b7 100644
--- a/74_AMADautomagicFlows_0.9.7.xml
+++ b/74_AMADautomagicFlows_0.9.9.xml
@@ -17,12 +17,30 @@ 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/
@@ -39,6 +57,27 @@ 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
@@ -158,6 +197,16 @@ 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
@@ -699,6 +748,16 @@ androidVersion = "4.1 Jelly Bean"
volume_music_speaker
volumeMusikSpeaker
+
+ true
+ Kommandozeilenbefehl als Root ausführen: getevent -c 1 in
+ getevent -c 1
+
+
+ stdout
+ stderr
+ exit_code
+
true
Lautstärke einstellen: Benachrichtigung auf Level 7
@@ -851,6 +910,20 @@ 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)
@@ -910,12 +983,42 @@ 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"
@@ -1157,7 +1260,7 @@ FHEMCMD: statusrequest
Informations
- FHEM Info / Steuerung über AMAD Modul v0.9.7
+ FHEM Info / Steuerung über AMAD Modul v0.9.9
true
QUEUE
240
@@ -1177,113 +1280,172 @@ FHEMCMD: statusrequest
WLAN Verbunden: Alle SSIDs
WLAN Verbunden: Alle SSIDs
Reading Music Metachanged
- Get Android Version
- Display automatisch drehen eingeschaltet
- Script: runTask = "1"
- Setze Flow Status: Aktivieren SetCommands
- Script: setCommandFlow_state = "inaktiv"
- Script: setCommandFlow_state = "aktiv"
- Script: global_artist = "no soundplayer activ"; global_track = "no soundplayer activ"; global_album = "no soundplayer activ";
- Script: next_alarmtime = "{next_alarm,dateformat,HH:mm}"
- Script: next_alarmday = "{next_alarm,dateformat,c}"
- Script: screen_orientation = "auto"
- Script: screen_orientation = "portrait"
- Script: screen_orientation = "landscape"
- Script: bluetooth_state = "on"
- Bluetooth Gerät verbunden: Beliebiges Geräte
- Script: bluetooth_state = "off"
- 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"
- Bluetooth eingeschaltet
- 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"
+ Display automatisch drehen eingeschaltet
+ Script: runTask = "1"
+ Setze Flow Status: Aktivieren SetCommands
+ Script: setCommandFlow_state = "inaktiv"
+ Script: setCommandFlow_state = "aktiv"
+ Script: global_artist = "no soundplayer activ"; global_track = "no soundplayer activ"; global_album = "no soundplayer activ";
+ Script: next_alarmtime = "{next_alarm,dateformat,HH:mm}"
+ Script: next_alarmday = "{next_alarm,dateformat,c}"
+ 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
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
- FHEM Info / Steuerung über AMAD Modul v0.9.7
+ FHEM Info / Steuerung über AMAD Modul v0.9.9
true
QUEUE
240
@@ -1514,7 +1676,7 @@ FHEMCMD: statusrequest
VoiceControl
- FHEM Info / Steuerung über AMAD Modul v0.9.7
+ FHEM Info / Steuerung über AMAD Modul v0.9.9
true
QUEUE