diff --git a/CHANGELOG.md b/CHANGELOG.md index 77f306d..a87f35d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,14 @@ -### test: gateway readings changed by gardena (HEAD -> patch_mucki) +### test: changed published gateway informations (HEAD -> patch_mucki) +>Sat, 21 Oct 2023 20:21:31 +0200 + +>Author: Sebastian (em@ail.tld) + +>Commiter: Sebastian (em@ail.tld) + + + + +### test: gateway readings changed by gardena (origin/patch_mucki) >Thu, 12 Oct 2023 21:52:51 +0200 >Author: Sebastian (em@ail.tld) @@ -8,7 +18,7 @@ -### test: versions pump (origin/patch_mucki) +### test: versions pump >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 e6a0635..e901e8c 100644 --- a/FHEM/73_GardenaSmartBridge.pm +++ b/FHEM/73_GardenaSmartBridge.pm @@ -1087,19 +1087,22 @@ sub WriteReadings { elsif ( $decode_json->{abilities}[0]{properties} [$properties]{name} eq 'wifi_status' ) { + # obsolet, not published anymore TODO: ask user using wifi readingsBulkUpdateIfChanged( $hash, 'wifi_status-ssid', $v->{ssid} ) - if ( ref( $v->{ssid} ) ne 'HASH' ); - # obsolet, not published anymore + if (( ref( $v->{ssid} ) ne 'HASH' ) + && ( $v->{is_connected} )) ; # readingsBulkUpdateIfChanged( $hash, # 'wifi_status-mac', $v->{mac} ); readingsBulkUpdateIfChanged( $hash, 'wifi_status-isconnected', $v->{is_connected} ); readingsBulkUpdateIfChanged( $hash, 'wifi_status-ip', $v->{ip} ) - if ( ref( $v->{ip} ) ne 'HASH' ); + if (( ref( $v->{ip} ) ne 'HASH' ) + && ( $v->{is_connected} )) ; readingsBulkUpdateIfChanged( $hash, - 'wifi_status-signal', $v->{signal} ); + 'wifi_status-signal', $v->{signal} ) + if ( $v->{is_connected} ) ; } } } diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index ec47b39..271db0c 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2023-10-21_20:21:09 49772 FHEM/73_GardenaSmartBridge.pm +UPD 2023-10-23_22:03:43 49976 FHEM/73_GardenaSmartBridge.pm UPD 2023-10-03_22:40:44 126409 FHEM/74_GardenaSmartDevice.pm