From a15b24bb36b57b2a90994c70ff95580629d752e1 Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Tue, 23 Jan 2018 13:41:25 +0000 Subject: [PATCH] 37_harmony.pm: added sleeptimer events git-svn-id: https://svn.fhem.de/fhem/trunk@15971 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/37_harmony.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fhem/FHEM/37_harmony.pm b/fhem/FHEM/37_harmony.pm index 39e0af178..3f737771d 100644 --- a/fhem/FHEM/37_harmony.pm +++ b/fhem/FHEM/37_harmony.pm @@ -1019,6 +1019,7 @@ harmony_Read($) if( defined($decoded->{sleepTimerId}) ) { if( $decoded->{sleepTimerId} == -1 ) { delete $hash->{sleeptimer}; + DoTrigger( $name, "sleeptimer: expired" ); } else { harmony_sendEngineGet($hash, "gettimerinterval", "timerId=$decoded->{sleepTimerId}"); } @@ -1104,6 +1105,7 @@ harmony_Read($) } elsif( $content =~ m/engine\?gettimerinterval/ && $decoded ) { $hash->{sleeptimer} = FmtDateTime( gettimeofday() + $decoded->{interval} ); + DoTrigger( $name, "sleeptimer: $hash->{sleeptimer}" ); } elsif( $content =~ m/firmware\?/ && $decoded ) { Log3 $name, 4, "$name: firmware: $cdata";