fix state
This commit is contained in:
parent
af2f803be5
commit
15c791e1bf
@ -1021,7 +1021,7 @@ sub setState {
|
||||
$state_string = 'offline' if ($online_state eq 'offline');
|
||||
# check valv error, override state
|
||||
my $error_type = ReadingsVal( $name, 'error-valve_error_1_type', 'ok' );
|
||||
$state_string = ( $error_type neq 'ok' ) ? $error_type : $state_string;
|
||||
$state_string = ( $error_type ne 'ok' ) ? $error_type : $state_string;
|
||||
|
||||
readingsBulkUpdate(
|
||||
$hash, 'state', RigReadingsValue( $hash, $state_string ) );
|
||||
|
@ -1,2 +1,2 @@
|
||||
UPD 2022-05-08_12:08:54 49518 FHEM/73_GardenaSmartBridge.pm
|
||||
UPD 2022-05-08_12:38:52 66211 FHEM/74_GardenaSmartDevice.pm
|
||||
UPD 2022-05-08_12:40:56 66210 FHEM/74_GardenaSmartDevice.pm
|
||||
|
Loading…
x
Reference in New Issue
Block a user