2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +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:
Beta-User 2023-07-28 10:01:14 +00:00
parent f7544dd55a
commit 6151f138f6

View File

@ -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;