diff --git a/FHEM/73_GardenaSmartBridge.pm b/FHEM/73_GardenaSmartBridge.pm index df2978b..9906ecd 100644 --- a/FHEM/73_GardenaSmartBridge.pm +++ b/FHEM/73_GardenaSmartBridge.pm @@ -833,9 +833,6 @@ sub WriteReadings { $v = encode_utf8($v); readingsBulkUpdateIfChanged( $hash, $t, $v ); } - - readingsBulkUpdateIfChanged( $hash, 'zones', - scalar( @{ $decode_json->{zones} } ) ); } elsif ($decode_json->{id} ne $hash->{helper}{locations_id} && ref( $decode_json->{abilities} ) eq 'ARRAY' @@ -859,11 +856,7 @@ sub WriteReadings { {name} . '-' . $t, $v ) - if ( - $decode_json->{abilities}[0]{properties}[$properties] - {name} ne 'ethernet_status' - || $decode_json->{abilities}[0]{properties} - [$properties]{name} ne 'wifi_status' ); + if ($decode_json->{abilities}[0]{properties}[$properties]{name} !~ /ethernet_status|wifi_status/ ); if ( ( @@ -890,8 +883,10 @@ sub WriteReadings { elsif ( $decode_json->{abilities}[0]{properties} [$properties]{name} eq 'wifi_status' ) { + #TODO: read valies if bridge connected to wifi readingsBulkUpdateIfChanged( $hash, - 'wifi_status-ssid', $v->{ssid} ); + 'wifi_status-ssid', $v->{ssid} ) + if (ref($v->{ssid}) ne 'HASH'); readingsBulkUpdateIfChanged( $hash, 'wifi_status-mac', $v->{mac} ); readingsBulkUpdateIfChanged( $hash, @@ -1296,8 +1291,7 @@ sub DeletePassword {
  • longitude - Längengrad des Grundstücks
  • name - Name of your Garden – Default „My Garden“
  • state - State of the Bridge
  • -
  • token - SessionID
  • -
  • zones -
  • +
  • token - SessionID


  • @@ -1358,8 +1352,7 @@ sub DeletePassword {
  • longitude - Längengrad des Grundstücks
  • name - Name für das Grundstück – Default „My Garden“
  • state - Status der Bridge
  • -
  • token - SessionID
  • -
  • zones -
  • +
  • token - SessionID