mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
37_harmony.pm: added sleeptimer events
git-svn-id: https://svn.fhem.de/fhem/trunk@15971 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
afdca75786
commit
a15b24bb36
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user