dev #54
@ -916,7 +916,7 @@ sub setState {
|
|||||||
$state_string = 'offline' if ($online_state eq 'offline');
|
$state_string = 'offline' if ($online_state eq 'offline');
|
||||||
|
|
||||||
readingsBulkUpdate(
|
readingsBulkUpdate(
|
||||||
$hash, 'state', $state_string );
|
$hash, 'state', RigReadingsValue( $hash, $state_string ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( AttrVal( $name, 'model', 'unknown' ) =~ /sensor.?/ ) {
|
if ( AttrVal( $name, 'model', 'unknown' ) =~ /sensor.?/ ) {
|
||||||
@ -945,7 +945,7 @@ sub setState {
|
|||||||
# }
|
# }
|
||||||
#online state sensor I II
|
#online state sensor I II
|
||||||
readingsBulkUpdate( $hash, 'state',
|
readingsBulkUpdate( $hash, 'state',
|
||||||
$online_state eq 'online' ? $state_string : 'offline' );
|
$online_state eq 'online' ? RigReadingsValue( $hash, $state_string) : RigReadingsValue( $hash, 'offline') );
|
||||||
}
|
}
|
||||||
|
|
||||||
readingsBulkUpdate(
|
readingsBulkUpdate(
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
UPD 2022-03-29_13:42:09 49520 FHEM/73_GardenaSmartBridge.pm
|
UPD 2022-03-29_13:42:09 49520 FHEM/73_GardenaSmartBridge.pm
|
||||||
UPD 2022-04-07_12:19:21 61989 FHEM/74_GardenaSmartDevice.pm
|
UPD 2022-04-07_12:37:44 62069 FHEM/74_GardenaSmartDevice.pm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user