2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2024-11-22 02:59:49 +00:00

98_AMConnectTools.pm: disallow multiple definitions, remove attribute disabledForIntervalls.

git-svn-id: https://svn.fhem.de/fhem/trunk@29250 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Ellert 2024-10-17 06:36:13 +00:00
parent 93248f985a
commit e1df192634

View File

@ -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 <NAME> $type <email>" if( @val < 3 );
@ -781,11 +782,9 @@ __END__
<ul>
<li><a id='AMConnectTools-attr-notifiedByMowerDevices'>notifiedByMowerDevice</a><br>
<code>attr &lt;name&gt; notifiedByMowerDevice &lt;devspec for automower devices&gt;</code><br>
Sets the notify devices and starts increasing websocket events on mower event LEAVING and stops it with mower event PARKED_IN_CS </li>
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 </li>
<li><a href="disable">disable</a></li>
<li><a href="disabledForIntervals">disabledForIntervals</a></li>
<br><br>
</ul>
<br>