diff --git a/FHEM/74_GardenaSmartDevice.pm b/FHEM/74_GardenaSmartDevice.pm index 3356467..58f4ea9 100644 --- a/FHEM/74_GardenaSmartDevice.pm +++ b/FHEM/74_GardenaSmartDevice.pm @@ -686,7 +686,7 @@ sub WriteReadings { # readingsBulkUpdate( $hash, 'ambient_temperature-temperature', '-1' ) if (ReadingsVal($name, 'device_info-category', 'unknown') eq 'sensor'); # readingsBulkUpdate( $hash, 'light-light', '-1' ) if (ReadingsVal($name, 'device_info-category', 'unknown') eq 'sensor'); # } - readingsBulkUpdate($hash, 'state', $online_state eq 'offline' ? $state_string : 'offline' ) + readingsBulkUpdate($hash, 'state', $online_state eq 'online' ? $state_string : 'offline' ) } readingsBulkUpdate(