From c332c919d627918ddd98d7d561fdc5fb84902e91 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Fri, 10 Jun 2016 09:31:17 +0200 Subject: [PATCH] insert support for do not disturb --- 74_AMAD.pm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/74_AMAD.pm b/74_AMAD.pm index f9050bd..a8dc927 100644 --- a/74_AMAD.pm +++ b/74_AMAD.pm @@ -141,10 +141,11 @@ sub AMAD_Undef($$) { if( $hash->{BRIDGE} ) { delete $modules{AMAD}{defptr}{BRIDGE} if(defined($modules{AMAD}{defptr}{BRIDGE})); TcpServer_Close( $hash ); + } + + elsif( $hash->{HOST} ) { - } else { - - delete $modules{AMAD}{defptr}{$hash->{HOST}} if( defined($modules{AMAD}{defptr}{$hash->{HOST}}) ); + delete $modules{AMAD}{defptr}{$hash->{HOST}}; RemoveInternalTimer( $hash ); foreach my $d(sort keys %{$modules{AMAD}{defptr}}) { @@ -1372,6 +1373,7 @@ sub AMAD_decrypt($) {
  • currentMusicTrack - currently playing song title of mediaplayer
  • daydream - on/off, daydream currently active
  • deviceState - state of Android devices. unknown, online, offline.
  • +
  • doNotDisturb - state of do not Disturb Mode
  • dockingState - undocked/docked, Android device in docking station
  • flow_SetCommands - active/inactive, state of SetCommands flow
  • flow_informations - active/inactive, state of Informations flow
  • @@ -1412,6 +1414,7 @@ sub AMAD_decrypt($) {
  • currentFlowsetUpdate - start flowset update on Android device
  • googleMusic - play/stop/next/back , controlling the google play music media player
  • installFlowSource - install a Automagic flow on device, XML file must be stored in /tmp/ with extension xml. Example: set TabletWohnzimmer installFlowSource WlanUebwerwachen.xml
  • +
  • doNotDisturb - sets the do not Disturb Mode, always Disturb, never Disturb, alarmClockOnly alarm Clock only, onlyImportant only important Disturbs
  • nextAlarmTime - sets the alarm time. Only valid for the next 24 hours.
  • notifySndFile - plays a media-file which by default needs to be stored in the folder "/storage/emulated/0/Notifications/" of the Android device. You may use the attribute setNotifySndFilePath for defining a different folder.
  • screenBrightness - 0-255, set screen brighness
  • @@ -1526,6 +1529,7 @@ sub AMAD_decrypt($) {
  • currentMusicTrack - aktuell abgespielter Musiktitel des verwendeten Mediaplayers
  • daydream - on/off, Daydream gestartet oder nicht
  • deviceState - Status des Androidgerätes. unknown, online, offline.
  • +
  • doNotDisturb - aktueller Status des nicht stören Modus
  • dockingState - undocked/docked Status ob sich das Gerät in einer Dockinstation befindet.
  • flow_SetCommands - active/inactive, Status des SetCommands Flow
  • flow_informations - active/inactive, Status des Informations Flow
  • @@ -1564,6 +1568,7 @@ sub AMAD_decrypt($) {
  • bluetooth - on/off, aktiviert/deaktiviert Bluetooth
  • clearNotificationBar - All,Automagic, löscht alle Meldungen oder nur die Automagic Meldungen in der Statusleiste
  • currentFlowsetUpdate - fürt ein Flowsetupdate auf dem Device durch
  • +
  • doNotDisturb - schaltet den nicht stören Modus, always immer Stören, never niemals stören, alarmClockOnly nur Wecker darf stören, onlyImportant nur wichtige Störungen
  • googleMusic - play, stop, next, back ,steuert den Google Play Musik Mediaplayer
  • installFlowSource - installiert einen Flow auf dem Device, das XML File muss unter /tmp/ liegen und die Endung xml haben. Bsp: set TabletWohnzimmer installFlowSource WlanUebwerwachen.xml
  • nextAlarmTime - setzt die Alarmzeit. gilt aber nur innerhalb der nächsten 24Std.