diff --git a/CHANGELOG.md b/CHANGELOG.md index eee81c9..77f306d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,14 @@ -### test: versions pump (HEAD -> patch_mucki) +### test: gateway readings changed by gardena (HEAD -> patch_mucki) +>Thu, 12 Oct 2023 21:52:51 +0200 + +>Author: Sebastian (em@ail.tld) + +>Commiter: Sebastian (em@ail.tld) + + + + +### test: versions pump (origin/patch_mucki) >Tue, 3 Oct 2023 22:40:58 +0200 >Author: Sebastian (em@ail.tld) diff --git a/FHEM/73_GardenaSmartBridge.pm b/FHEM/73_GardenaSmartBridge.pm index e475137..e6a0635 100644 --- a/FHEM/73_GardenaSmartBridge.pm +++ b/FHEM/73_GardenaSmartBridge.pm @@ -1064,9 +1064,9 @@ sub WriteReadings { if ( ( $decode_json->{abilities}[0]{properties} - [$properties]{name} eq 'ethernet_statusO' + [$properties]{name} eq 'ethernet_status' || $decode_json->{abilities}[0]{properties} - [$properties]{name} eq 'wifi_statusO' + [$properties]{name} eq 'wifi_status' ) && ref($v) eq 'HASH' ) @@ -1074,14 +1074,15 @@ sub WriteReadings { if ( $decode_json->{abilities}[0]{properties} [$properties]{name} eq 'ethernet_status' ) { - readingsBulkUpdateIfChanged( $hash, - 'ethernet_status-mac', $v->{mac} ); readingsBulkUpdateIfChanged( $hash, 'ethernet_status-ip', $v->{ip} ) if ( ref( $v->{ip} ) ne 'HASH' ); readingsBulkUpdateIfChanged( $hash, 'ethernet_status-isconnected', - $v->{isConnected} ); + $v->{is_connected} ); + # obsolet, not published anymore + # readingsBulkUpdateIfChanged( $hash, + # 'ethernet_status-mac', $v->{mac} ); } elsif ( $decode_json->{abilities}[0]{properties} [$properties]{name} eq 'wifi_status' ) @@ -1089,13 +1090,14 @@ sub WriteReadings { readingsBulkUpdateIfChanged( $hash, 'wifi_status-ssid', $v->{ssid} ) if ( ref( $v->{ssid} ) ne 'HASH' ); + # obsolet, not published anymore + # readingsBulkUpdateIfChanged( $hash, + # 'wifi_status-mac', $v->{mac} ); readingsBulkUpdateIfChanged( $hash, - 'wifi_status-mac', $v->{mac} ); + 'wifi_status-isconnected', $v->{is_connected} ); readingsBulkUpdateIfChanged( $hash, 'wifi_status-ip', $v->{ip} ) if ( ref( $v->{ip} ) ne 'HASH' ); - readingsBulkUpdateIfChanged( $hash, - 'wifi_status-isconnected', $v->{isConnected} ); readingsBulkUpdateIfChanged( $hash, 'wifi_status-signal', $v->{signal} ); } diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index c14af7b..ec47b39 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2023-10-12_21:52:18 49642 FHEM/73_GardenaSmartBridge.pm +UPD 2023-10-21_20:21:09 49772 FHEM/73_GardenaSmartBridge.pm UPD 2023-10-03_22:40:44 126409 FHEM/74_GardenaSmartDevice.pm