test: fix wifi status if is_connected
This commit is contained in:
parent
7385959b38
commit
13de67f570
14
CHANGELOG.md
14
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)
|
||||
|
@ -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} ) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user