From e9fd6283496cf0a17d1ab24c6956070ca20252b7 Mon Sep 17 00:00:00 2001 From: Ellert Date: Fri, 21 Jul 2023 12:42:51 +0000 Subject: [PATCH] 74_AutomowerConnect: Common.pm set state when disabledForIntervalls as 'temporarily disabled' git-svn-id: https://svn.fhem.de/fhem/trunk@27789 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/lib/FHEM/Devices/AMConnect/Common.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/fhem/lib/FHEM/Devices/AMConnect/Common.pm b/fhem/lib/FHEM/Devices/AMConnect/Common.pm index 111a7b20e..60a317fa6 100644 --- a/fhem/lib/FHEM/Devices/AMConnect/Common.pm +++ b/fhem/lib/FHEM/Devices/AMConnect/Common.pm @@ -632,6 +632,7 @@ sub APIAuth { if( IsDisabled( $name ) ) { + readingsSingleUpdate( $hash, 'device_state', 'temporarily disabled', 1 ) if ( ReadingsVal( $name, 'device_state', '' ) !~ /disabled/ ); RemoveInternalTimer( $hash ); InternalTimer( gettimeofday() + $hash->{helper}{retry_interval_apiauth}, \&APIAuth, $hash, 0 ); return undef;