patch_mucki #87

Merged
sebastianschwarz merged 9 commits from patch_mucki into dev 2023-11-20 19:43:36 +00:00
3 changed files with 22 additions and 10 deletions
Showing only changes of commit 7385959b38 - Show all commits

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 >Tue, 3 Oct 2023 22:40:58 +0200
>Author: Sebastian (em@ail.tld) >Author: Sebastian (em@ail.tld)

View File

@ -1064,9 +1064,9 @@ sub WriteReadings {
if ( if (
( (
$decode_json->{abilities}[0]{properties} $decode_json->{abilities}[0]{properties}
[$properties]{name} eq 'ethernet_statusO' [$properties]{name} eq 'ethernet_status'
|| $decode_json->{abilities}[0]{properties} || $decode_json->{abilities}[0]{properties}
[$properties]{name} eq 'wifi_statusO' [$properties]{name} eq 'wifi_status'
) )
&& ref($v) eq 'HASH' && ref($v) eq 'HASH'
) )
@ -1074,14 +1074,15 @@ sub WriteReadings {
if ( $decode_json->{abilities}[0]{properties} if ( $decode_json->{abilities}[0]{properties}
[$properties]{name} eq 'ethernet_status' ) [$properties]{name} eq 'ethernet_status' )
{ {
readingsBulkUpdateIfChanged( $hash,
'ethernet_status-mac', $v->{mac} );
readingsBulkUpdateIfChanged( $hash, readingsBulkUpdateIfChanged( $hash,
'ethernet_status-ip', $v->{ip} ) 'ethernet_status-ip', $v->{ip} )
if ( ref( $v->{ip} ) ne 'HASH' ); if ( ref( $v->{ip} ) ne 'HASH' );
readingsBulkUpdateIfChanged( $hash, readingsBulkUpdateIfChanged( $hash,
'ethernet_status-isconnected', '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} elsif ( $decode_json->{abilities}[0]{properties}
[$properties]{name} eq 'wifi_status' ) [$properties]{name} eq 'wifi_status' )
@ -1089,13 +1090,14 @@ sub WriteReadings {
readingsBulkUpdateIfChanged( $hash, readingsBulkUpdateIfChanged( $hash,
'wifi_status-ssid', $v->{ssid} ) 'wifi_status-ssid', $v->{ssid} )
if ( ref( $v->{ssid} ) ne 'HASH' ); if ( ref( $v->{ssid} ) ne 'HASH' );
# obsolet, not published anymore
# readingsBulkUpdateIfChanged( $hash,
# 'wifi_status-mac', $v->{mac} );
readingsBulkUpdateIfChanged( $hash, readingsBulkUpdateIfChanged( $hash,
'wifi_status-mac', $v->{mac} ); 'wifi_status-isconnected', $v->{is_connected} );
readingsBulkUpdateIfChanged( $hash, readingsBulkUpdateIfChanged( $hash,
'wifi_status-ip', $v->{ip} ) 'wifi_status-ip', $v->{ip} )
if ( ref( $v->{ip} ) ne 'HASH' ); if ( ref( $v->{ip} ) ne 'HASH' );
readingsBulkUpdateIfChanged( $hash,
'wifi_status-isconnected', $v->{isConnected} );
readingsBulkUpdateIfChanged( $hash, readingsBulkUpdateIfChanged( $hash,
'wifi_status-signal', $v->{signal} ); '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 UPD 2023-10-03_22:40:44 126409 FHEM/74_GardenaSmartDevice.pm