From 918f4dc6a3a85d70c151dc91cf1bb3524ff61fbf Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 21 Feb 2024 21:56:14 +0100 Subject: [PATCH 1/5] test: fix error spam --- FHEM/73_GardenaSmartBridge.pm | 7 +++++++ controls_GardenaSmartDevice.txt | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/FHEM/73_GardenaSmartBridge.pm b/FHEM/73_GardenaSmartBridge.pm index fe21726..dd1d589 100644 --- a/FHEM/73_GardenaSmartBridge.pm +++ b/FHEM/73_GardenaSmartBridge.pm @@ -1059,6 +1059,13 @@ sub WriteReadings { if ( ref($v) eq 'ARRAY' ); #$v = encode_utf8($v); + Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 1 ".$decode_json->{abilities}[0]{properties}[$properties{name} if ( $decode_json->{abilities}[0]{properties}[$properties] + {name} !~ /ethernet_status|wifi_status/ ); + Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 2".$t if ( $decode_json->{abilities}[0]{properties}[$properties] + {name} !~ /ethernet_status|wifi_status/ ); + Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 3".$v if ( $decode_json->{abilities}[0]{properties}[$properties] + {name} !~ /ethernet_status|wifi_status/ ); + readingsBulkUpdateIfChanged( $hash, $decode_json->{abilities}[0]{properties}[$properties] diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index a83fba6..03746be 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2023-11-28_08:37:01 48890 FHEM/73_GardenaSmartBridge.pm -UPD 2023-11-28_08:49:14 126386 FHEM/74_GardenaSmartDevice.pm +UPD 2024-02-21_21:54:03 49548 FHEM/73_GardenaSmartBridge.pm +UPD 2024-01-24_21:11:27 126386 FHEM/74_GardenaSmartDevice.pm From 2c94924e974fd08f872728872954287a3e920248 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 21 Feb 2024 21:58:05 +0100 Subject: [PATCH 2/5] fix: push version --- FHEM/73_GardenaSmartBridge.pm | 2 +- controls_GardenaSmartDevice.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FHEM/73_GardenaSmartBridge.pm b/FHEM/73_GardenaSmartBridge.pm index dd1d589..cb62b67 100644 --- a/FHEM/73_GardenaSmartBridge.pm +++ b/FHEM/73_GardenaSmartBridge.pm @@ -1568,7 +1568,7 @@ sub DeletePassword { ], "release_status": "stable", "license": "GPL_2", - "version": "v2.6.1", + "version": "v2.6.2", "author": [ "Marko Oldenburg " ], diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index 03746be..987c56c 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2024-02-21_21:54:03 49548 FHEM/73_GardenaSmartBridge.pm +UPD 2024-02-21_21:57:50 49548 FHEM/73_GardenaSmartBridge.pm UPD 2024-01-24_21:11:27 126386 FHEM/74_GardenaSmartDevice.pm From 790d5206b6e3f622440a35109aa866ba1c175e75 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 21 Feb 2024 22:00:02 +0100 Subject: [PATCH 3/5] fix: fix --- FHEM/73_GardenaSmartBridge.pm | 2 +- controls_GardenaSmartDevice.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FHEM/73_GardenaSmartBridge.pm b/FHEM/73_GardenaSmartBridge.pm index cb62b67..6c00470 100644 --- a/FHEM/73_GardenaSmartBridge.pm +++ b/FHEM/73_GardenaSmartBridge.pm @@ -1059,7 +1059,7 @@ sub WriteReadings { if ( ref($v) eq 'ARRAY' ); #$v = encode_utf8($v); - Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 1 ".$decode_json->{abilities}[0]{properties}[$properties{name} if ( $decode_json->{abilities}[0]{properties}[$properties] + Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 1 ".$decode_json->{abilities}[0]{properties}[$properties]{name} if ( $decode_json->{abilities}[0]{properties}[$properties] {name} !~ /ethernet_status|wifi_status/ ); Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 2".$t if ( $decode_json->{abilities}[0]{properties}[$properties] {name} !~ /ethernet_status|wifi_status/ ); diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index 987c56c..439d528 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2024-02-21_21:57:50 49548 FHEM/73_GardenaSmartBridge.pm +UPD 2024-02-21_21:59:56 49549 FHEM/73_GardenaSmartBridge.pm UPD 2024-01-24_21:11:27 126386 FHEM/74_GardenaSmartDevice.pm From 579f63299058a27c280a20509c3b7ef960c27a30 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 23 Feb 2024 22:52:25 +0100 Subject: [PATCH 4/5] test: catch null value --- FHEM/73_GardenaSmartBridge.pm | 1 + controls_GardenaSmartDevice.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/FHEM/73_GardenaSmartBridge.pm b/FHEM/73_GardenaSmartBridge.pm index 6c00470..cd0d384 100644 --- a/FHEM/73_GardenaSmartBridge.pm +++ b/FHEM/73_GardenaSmartBridge.pm @@ -1059,6 +1059,7 @@ sub WriteReadings { if ( ref($v) eq 'ARRAY' ); #$v = encode_utf8($v); + $v = ' ' if (!defined $v); Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 1 ".$decode_json->{abilities}[0]{properties}[$properties]{name} if ( $decode_json->{abilities}[0]{properties}[$properties] {name} !~ /ethernet_status|wifi_status/ ); Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 2".$t if ( $decode_json->{abilities}[0]{properties}[$properties] diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index 439d528..de89374 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2024-02-21_21:59:56 49549 FHEM/73_GardenaSmartBridge.pm +UPD 2024-02-23_22:52:08 49596 FHEM/73_GardenaSmartBridge.pm UPD 2024-01-24_21:11:27 126386 FHEM/74_GardenaSmartDevice.pm From 443ecd777622369d970c0d17ddc89ac097e06e34 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Thu, 28 Mar 2024 05:59:55 +0100 Subject: [PATCH 5/5] controls_GardenaSmartDevice.txt aktualisiert --- controls_GardenaSmartDevice.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index de89374..a453629 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2024-02-23_22:52:08 49596 FHEM/73_GardenaSmartBridge.pm -UPD 2024-01-24_21:11:27 126386 FHEM/74_GardenaSmartDevice.pm +UPD 2024-03-18_10:15:10 48866 FHEM/73_GardenaSmartBridge.pm +UPD 2024-03-17_20:57:32 126450 FHEM/74_GardenaSmartDevice.pm \ No newline at end of file