From ee0c7fa4ba79a4658f2ab4c6d88d303864919e14 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 28 Jun 2022 23:07:34 +0200 Subject: [PATCH] [test] set empty --- CHANGED | 2 +- FHEM/74_GardenaSmartDevice.pm | 3 ++- controls_GardenaSmartDevice.txt | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGED b/CHANGED index 08460dd..7dd7fc7 100644 --- a/CHANGED +++ b/CHANGED @@ -1 +1 @@ - [fix] - debug stuff - cleanup + [fix] - readings diff --git a/FHEM/74_GardenaSmartDevice.pm b/FHEM/74_GardenaSmartDevice.pm index dfac0a3..29a3a41 100644 --- a/FHEM/74_GardenaSmartDevice.pm +++ b/FHEM/74_GardenaSmartDevice.pm @@ -652,7 +652,8 @@ sub WriteReadings { $hash, $decode_json->{abilities}[$abilities]{name} . '-' . $propertie->{name}, - ($propertie->{value} eq '') ? 'N/A' : RigReadingsValue( $hash, $propertie->{value} ) + ($propertie->{value} eq '') ? CommandAttr( undef, $name . ' '. $decode_json->{abilities}[$abilities]{name} . '-' + . $propertie->{name}) : RigReadingsValue( $hash, $propertie->{value} ) ) if ( exists( $propertie->{value} ) # defined ignored 'value':null && $decode_json->{abilities}[$abilities]{name} . '-' diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index 2ce0f2e..4798154 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ UPD 2022-06-28_13:11:16 49241 FHEM/73_GardenaSmartBridge.pm -UPD 2022-06-28_23:03:29 70402 FHEM/74_GardenaSmartDevice.pm +UPD 2022-06-28_23:07:24 70523 FHEM/74_GardenaSmartDevice.pm