fix state

This commit is contained in:
Sebastian 2022-05-08 12:41:04 +02:00
parent af2f803be5
commit 15c791e1bf
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
fux payload
add resetcall + state

View File

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

View File

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