dev #14

Merged
marko merged 3 commits from dev into main 2023-05-16 02:28:06 +00:00
2 changed files with 14 additions and 9 deletions
Showing only changes of commit 3382f84606 - Show all commits

View File

@ -1,2 +1,2 @@
UPD 2022-03-31_06:48:33 18968 FHEM/82_LGTV_WebOS.pm
UPD 2022-03-31_14:55:57 55129 lib/FHEM/Devices/LGTV/LGTVWebOS.pm
UPD 2022-12-25_17:34:32 55512 lib/FHEM/Devices/LGTV/LGTVWebOS.pm

View File

@ -363,6 +363,8 @@ sub TimerStatusRequest {
else {
::readingsBulkUpdateIfChanged( $hash, 'state', 'off' )
if ( ::ReadingsVal( $name, 'state', 'off' ) ne 'off' );
::readingsBulkUpdateIfChanged( $hash, 'power', 'off' )
if ( ::ReadingsVal( $name, 'power', 'off' ) ne 'off' );
Presence($hash)
if ( ::AttrVal( $name, 'pingPresence', 0 ) == 1 );
@ -686,6 +688,7 @@ sub Close {
delete( $hash->{FD} );
::readingsSingleUpdate( $hash, 'state', 'off', 1 );
::readingsSingleUpdate( $hash, 'power', 'off', 1 );
::Log3( $name, 4, "LGTV_WebOS ($name) - Socket Disconnected" );
@ -962,6 +965,7 @@ sub ResponseProcessing {
"LGTV_WebOS ($name) - Sucessfull WS connection to $hash->{HOST}"
);
::readingsSingleUpdate( $hash, 'state', 'on', 1 );
::readingsSingleUpdate( $hash, 'power', 'on', 1 );
}
else {
@ -1342,6 +1346,7 @@ sub WriteReadings {
}
::readingsBulkUpdateIfChanged( $hash, 'state', 'on' );
::readingsBulkUpdateIfChanged( $hash, 'power', 'on' );
::readingsEndUpdate( $hash, 1 );