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:
Beta-User
2023-07-28 10:01:14 +00:00
parent a0bd70ca57
commit bd3f736d41

View File

@@ -979,8 +979,9 @@ sub onInternalMessage {
if ($type == I_PRE_SLEEP_NOTIFICATION) { if ($type == I_PRE_SLEEP_NOTIFICATION) {
$hash->{preSleep} = $msg->{payload}//500; $hash->{preSleep} = $msg->{payload}//500;
refreshInternalMySTimer($hash,"Asleep"); refreshInternalMySTimer($hash,'Asleep');
refreshInternalMySTimer($hash,"Alive") if $hash->{timeoutAlive}; refreshInternalMySTimer($hash,'Alive') if $hash->{timeoutAlive};
$hash->{nowSleeping} = 0;
MYSENSORS::Timer($hash); MYSENSORS::Timer($hash);
sendRetainedMessages($hash) ; sendRetainedMessages($hash) ;
return; return;