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__