mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
10_MYSENSORS_DEVICE: prevent smartSleep loop, #96518
git-svn-id: https://svn.fhem.de/fhem/trunk@27803 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f7544dd55a
commit
6151f138f6
@ -979,8 +979,9 @@ sub onInternalMessage {
|
||||
|
||||
if ($type == I_PRE_SLEEP_NOTIFICATION) {
|
||||
$hash->{preSleep} = $msg->{payload}//500;
|
||||
refreshInternalMySTimer($hash,"Asleep");
|
||||
refreshInternalMySTimer($hash,"Alive") if $hash->{timeoutAlive};
|
||||
refreshInternalMySTimer($hash,'Asleep');
|
||||
refreshInternalMySTimer($hash,'Alive') if $hash->{timeoutAlive};
|
||||
$hash->{nowSleeping} = 0;
|
||||
MYSENSORS::Timer($hash);
|
||||
sendRetainedMessages($hash) ;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user