diff --git a/FHEM/73_GardenaSmartBridge.pm b/FHEM/73_GardenaSmartBridge.pm index 0e0ec38..5a8a228 100644 --- a/FHEM/73_GardenaSmartBridge.pm +++ b/FHEM/73_GardenaSmartBridge.pm @@ -694,17 +694,13 @@ sub ErrorHandling { } elsif ( $decode_json->{errors}[0]{code} eq "ratelimit.exceeded" ) { - Log3 $dname, 5, - "GardenaSmartBridge ($dname) - RequestERROR: error ratelimit.exceeded"; - readingsBulkUpdate( $dhash, "lastRequestState", "too many requests", 1 ); - readingsBulkUpdate( $dhash, "state", "inactive", 1 ); + Log3 $name, 5, + "GardenaSmartBridge ($name) - RequestERROR: error ratelimit.exceeded"; + readingsBulkUpdate( $hash, "lastRequestState", "too many requests", 1 ); + readingsBulkUpdate( $hash, "state", "inactive", 1 ); # remove all timer and disable bridge - readingsBulkUpdate( $dhash, "disable", "1", 1 ); -# AttrVal( $name, 'disable', '1'); - RemoveInternalTimer( $dhash, "FHEM::GardenaSmartBridge::getDevices" ); - RemoveInternalTimer( $dhash, "FHEM::GardenaSmartBridge::getToken" ); + RemoveInternalTimer( $hash ); - return; # post request max. } else { diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index 800dd56..36b4d2c 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2024-05-21_22:04:23 51083 FHEM/73_GardenaSmartBridge.pm +UPD 2024-05-22_18:13:20 50855 FHEM/73_GardenaSmartBridge.pm UPD 2024-05-21_09:01:54 127762 FHEM/74_GardenaSmartDevice.pm