From 553e55b95dc7ebe1a2ab3db691da61030c6879cc Mon Sep 17 00:00:00 2001 From: Ellert Date: Thu, 17 Oct 2024 06:36:13 +0000 Subject: [PATCH] 98_AMConnectTools.pm: disallow multiple definitions, remove attribute disabledForIntervalls. git-svn-id: https://svn.fhem.de/fhem/trunk@29250 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/AutomowerConnect/98_AMConnectTools.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fhem/contrib/AutomowerConnect/98_AMConnectTools.pm b/fhem/contrib/AutomowerConnect/98_AMConnectTools.pm index 31f63b3af..7af52e5d3 100644 --- a/fhem/contrib/AutomowerConnect/98_AMConnectTools.pm +++ b/fhem/contrib/AutomowerConnect/98_AMConnectTools.pm @@ -100,7 +100,6 @@ sub Initialize() { $hash->{SetFn} = \&Set; $hash->{AttrFn} = \&Attr; $hash->{AttrList} = "disable:1,0 " . - "disabledForIntervals " . "notifiedByMowerDevices " . $::readingFnAttributes; @@ -116,6 +115,8 @@ sub Define{ my $iam = "$type $name Define:"; my $username = ''; + return "$iam multiple definitions are not allowed." if( scalar devspec2array( "TYPE=$type" ) > 1 ); + return "$iam Cannot define $type device. Perl modul $missingModul is missing." if ( $missingModul ); return "$iam too few parameters: define $type " if( @val < 3 ); @@ -781,11 +782,9 @@ __END__
  • notifiedByMowerDevice
    attr <name> notifiedByMowerDevice <devspec for automower devices>
    - Sets the notify devices and starts increasing websocket events on mower event LEAVING and stops it with mower event PARKED_IN_CS
  • + Sets the notify devices and starts increasing websocket events on first running mower's event LEAVING and stops it with the last running mower's event PARKED_IN_CS
  • disable
  • - -
  • disabledForIntervals