add new reading power for msg support
This commit is contained in:
parent
007588c8b6
commit
3382f84606
@ -1,2 +1,2 @@
|
|||||||
UPD 2022-03-31_06:48:33 18968 FHEM/82_LGTV_WebOS.pm
|
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
|
||||||
|
@ -363,6 +363,8 @@ sub TimerStatusRequest {
|
|||||||
else {
|
else {
|
||||||
::readingsBulkUpdateIfChanged( $hash, 'state', 'off' )
|
::readingsBulkUpdateIfChanged( $hash, 'state', 'off' )
|
||||||
if ( ::ReadingsVal( $name, 'state', 'off' ) ne 'off' );
|
if ( ::ReadingsVal( $name, 'state', 'off' ) ne 'off' );
|
||||||
|
::readingsBulkUpdateIfChanged( $hash, 'power', 'off' )
|
||||||
|
if ( ::ReadingsVal( $name, 'power', 'off' ) ne 'off' );
|
||||||
|
|
||||||
Presence($hash)
|
Presence($hash)
|
||||||
if ( ::AttrVal( $name, 'pingPresence', 0 ) == 1 );
|
if ( ::AttrVal( $name, 'pingPresence', 0 ) == 1 );
|
||||||
@ -686,6 +688,7 @@ sub Close {
|
|||||||
delete( $hash->{FD} );
|
delete( $hash->{FD} );
|
||||||
|
|
||||||
::readingsSingleUpdate( $hash, 'state', 'off', 1 );
|
::readingsSingleUpdate( $hash, 'state', 'off', 1 );
|
||||||
|
::readingsSingleUpdate( $hash, 'power', 'off', 1 );
|
||||||
|
|
||||||
::Log3( $name, 4, "LGTV_WebOS ($name) - Socket Disconnected" );
|
::Log3( $name, 4, "LGTV_WebOS ($name) - Socket Disconnected" );
|
||||||
|
|
||||||
@ -962,6 +965,7 @@ sub ResponseProcessing {
|
|||||||
"LGTV_WebOS ($name) - Sucessfull WS connection to $hash->{HOST}"
|
"LGTV_WebOS ($name) - Sucessfull WS connection to $hash->{HOST}"
|
||||||
);
|
);
|
||||||
::readingsSingleUpdate( $hash, 'state', 'on', 1 );
|
::readingsSingleUpdate( $hash, 'state', 'on', 1 );
|
||||||
|
::readingsSingleUpdate( $hash, 'power', 'on', 1 );
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -1342,6 +1346,7 @@ sub WriteReadings {
|
|||||||
}
|
}
|
||||||
|
|
||||||
::readingsBulkUpdateIfChanged( $hash, 'state', 'on' );
|
::readingsBulkUpdateIfChanged( $hash, 'state', 'on' );
|
||||||
|
::readingsBulkUpdateIfChanged( $hash, 'power', 'on' );
|
||||||
|
|
||||||
::readingsEndUpdate( $hash, 1 );
|
::readingsEndUpdate( $hash, 1 );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user