add presence call in IsDisable Condition

This commit is contained in:
Marko Oldenburg 2017-10-05 17:02:28 +02:00
parent 3d875e91fc
commit 654e171062

View File

@ -353,6 +353,7 @@ sub LGTV_WebOS_TimerStatusRequest($) {
} elsif( IsDisabled($name) ) {
LGTV_WebOS_Close($hash);
LGTV_WebOS_Presence($hash) if( AttrVal($name,'pingPresence', 0) == 1 );
$hash->{helper}{device}{runsetcmd} = 0;
readingsBulkUpdate($hash, 'state', 'disabled');