From 40c7318992c213667d7180f0412c7e9a8ea4483d Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 7 Apr 2022 12:38:11 +0200 Subject: [PATCH] some locales --- FHEM/74_GardenaSmartDevice.pm | 4 ++-- controls_GardenaSmartDevice.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FHEM/74_GardenaSmartDevice.pm b/FHEM/74_GardenaSmartDevice.pm index 18b827a..4830f50 100644 --- a/FHEM/74_GardenaSmartDevice.pm +++ b/FHEM/74_GardenaSmartDevice.pm @@ -916,7 +916,7 @@ sub setState { $state_string = 'offline' if ($online_state eq 'offline'); readingsBulkUpdate( - $hash, 'state', $state_string ); + $hash, 'state', RigReadingsValue( $hash, $state_string ) ); } if ( AttrVal( $name, 'model', 'unknown' ) =~ /sensor.?/ ) { @@ -945,7 +945,7 @@ sub setState { # } #online state sensor I II readingsBulkUpdate( $hash, 'state', - $online_state eq 'online' ? $state_string : 'offline' ); + $online_state eq 'online' ? RigReadingsValue( $hash, $state_string) : RigReadingsValue( $hash, 'offline') ); } readingsBulkUpdate( diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index f52496e..0174a25 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ 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