From fc7fd0fe208c5a0b1ba61d0d3a2413c518866c3a Mon Sep 17 00:00:00 2001 From: Sebastian Schwaz Date: Tue, 30 Mar 2021 11:15:32 +0200 Subject: [PATCH 1/4] fix HASH --- FHEM/73_GardenaSmartBridge.pm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/FHEM/73_GardenaSmartBridge.pm b/FHEM/73_GardenaSmartBridge.pm index df2978b..68ace2d 100644 --- a/FHEM/73_GardenaSmartBridge.pm +++ b/FHEM/73_GardenaSmartBridge.pm @@ -859,11 +859,7 @@ sub WriteReadings { {name} . '-' . $t, $v ) - if ( - $decode_json->{abilities}[0]{properties}[$properties] - {name} ne 'ethernet_status' - || $decode_json->{abilities}[0]{properties} - [$properties]{name} ne 'wifi_status' ); + if ($decode_json->{abilities}[0]{properties}[$properties]{name} !~ /ethernet_status|wifi_status/ ); if ( ( @@ -890,8 +886,10 @@ sub WriteReadings { elsif ( $decode_json->{abilities}[0]{properties} [$properties]{name} eq 'wifi_status' ) { + #TODO: read valies if bridge connected to wifi readingsBulkUpdateIfChanged( $hash, - 'wifi_status-ssid', $v->{ssid} ); + 'wifi_status-ssid', $v->{ssid} ) + if (ref($v->{ssid}) ne 'HASH'); readingsBulkUpdateIfChanged( $hash, 'wifi_status-mac', $v->{mac} ); readingsBulkUpdateIfChanged( $hash, From 568869278917e3c5439e0749261dc38b3b3fa0e8 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 30 Mar 2021 11:37:31 +0200 Subject: [PATCH 2/4] zones removed - not in response --- FHEM/73_GardenaSmartBridge.pm | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/FHEM/73_GardenaSmartBridge.pm b/FHEM/73_GardenaSmartBridge.pm index 68ace2d..9906ecd 100644 --- a/FHEM/73_GardenaSmartBridge.pm +++ b/FHEM/73_GardenaSmartBridge.pm @@ -833,9 +833,6 @@ sub WriteReadings { $v = encode_utf8($v); readingsBulkUpdateIfChanged( $hash, $t, $v ); } - - readingsBulkUpdateIfChanged( $hash, 'zones', - scalar( @{ $decode_json->{zones} } ) ); } elsif ($decode_json->{id} ne $hash->{helper}{locations_id} && ref( $decode_json->{abilities} ) eq 'ARRAY' @@ -1294,8 +1291,7 @@ sub DeletePassword {
  • longitude - Längengrad des Grundstücks
  • name - Name of your Garden – Default „My Garden“
  • state - State of the Bridge
  • -
  • token - SessionID
  • -
  • zones -
  • +
  • token - SessionID


  • @@ -1356,8 +1352,7 @@ sub DeletePassword {
  • longitude - Längengrad des Grundstücks
  • name - Name für das Grundstück – Default „My Garden“
  • state - Status der Bridge
  • -
  • token - SessionID
  • -
  • zones -
  • +
  • token - SessionID


  • From 8283007635c341203bba277e0e7bd34963309b1a Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Tue, 30 Mar 2021 13:03:56 +0200 Subject: [PATCH 3/4] change version --- FHEM/73_GardenaSmartBridge.pm | 2 +- controls_GardenaSmart.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 controls_GardenaSmart.txt diff --git a/FHEM/73_GardenaSmartBridge.pm b/FHEM/73_GardenaSmartBridge.pm index 9906ecd..9351878 100644 --- a/FHEM/73_GardenaSmartBridge.pm +++ b/FHEM/73_GardenaSmartBridge.pm @@ -1393,7 +1393,7 @@ sub DeletePassword { ], "release_status": "stable", "license": "GPL_2", - "version": "v2.2.0", + "version": "v2.2.1", "author": [ "Marko Oldenburg " ], diff --git a/controls_GardenaSmart.txt b/controls_GardenaSmart.txt new file mode 100644 index 0000000..56b3715 --- /dev/null +++ b/controls_GardenaSmart.txt @@ -0,0 +1 @@ +UPD 2021-03-30_13:03:36 43507 FHEM/73_GardenaSmartBridge.pm From 6e9e23e2eb85f02abefbec9aa506585f85115744 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Tue, 30 Mar 2021 18:20:58 +0200 Subject: [PATCH 4/4] remove wrong control file --- controls_GardenaSmart.txt | 1 - controls_GardenaSmartDevice.txt | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 controls_GardenaSmart.txt diff --git a/controls_GardenaSmart.txt b/controls_GardenaSmart.txt deleted file mode 100644 index 56b3715..0000000 --- a/controls_GardenaSmart.txt +++ /dev/null @@ -1 +0,0 @@ -UPD 2021-03-30_13:03:36 43507 FHEM/73_GardenaSmartBridge.pm diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index cc5936e..77ef842 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2021-03-28_14:50:43 43697 FHEM/73_GardenaSmartBridge.pm -UPD 2021-03-27_06:02:14 45622 FHEM/74_GardenaSmartDevice.pm +UPD 2021-03-30_13:04:26 43507 FHEM/73_GardenaSmartBridge.pm +UPD 2021-03-25_09:33:11 45622 FHEM/74_GardenaSmartDevice.pm