test: changed published gateway informations

This commit is contained in:
Sebastian 2023-10-21 20:21:31 +02:00
parent 7dfa0b2dda
commit 7385959b38
3 changed files with 22 additions and 10 deletions

View File

@ -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)

View File

@ -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} );
}

View File

@ -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