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:
parent
93248f985a
commit
e1df192634
@ -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 <name> notifiedByMowerDevice <devspec for automower devices></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>
|
||||
|
Loading…
Reference in New Issue
Block a user