mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 13:24:56 +00:00
18_CUL_HOERMANN.pm: add toggle command (thanks ti jueff, needs culfw 1.67)
git-svn-id: https://svn.fhem.de/fhem/trunk@12640 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
22106a7810
commit
2dffbd24c5
@ -13,7 +13,9 @@ CUL_HOERMANN_Initialize($)
|
||||
$hash->{Match} = "^R..........";
|
||||
$hash->{DefFn} = "CUL_HOERMANN_Define";
|
||||
$hash->{ParseFn} = "CUL_HOERMANN_Parse";
|
||||
$hash->{AttrList} = "IODev do_not_notify:1,0 ignore:0,1 showtime:1,0";
|
||||
$hash->{SetFn} = "CUL_HOERMANN_Set";
|
||||
$hash->{AttrList} = "IODev do_not_notify:1,0 ignore:0,1 showtime:1,0 ".
|
||||
"disable:0,1 disabledForIntervals ".
|
||||
|
||||
}
|
||||
|
||||
@ -32,6 +34,7 @@ CUL_HOERMANN_Define($$)
|
||||
|
||||
$modules{CUL_HOERMANN}{defptr}{$a[2]} = $hash;
|
||||
$hash->{STATE} = "Defined";
|
||||
AssignIoPort($hash);
|
||||
return undef;
|
||||
}
|
||||
|
||||
@ -58,11 +61,25 @@ CUL_HOERMANN_Parse($$)
|
||||
}
|
||||
}
|
||||
|
||||
sub
|
||||
CUL_HOERMANN_Set($@)
|
||||
{
|
||||
my ($hash, @a) = @_;
|
||||
|
||||
return "no set argument specified" if(int(@a) < 2);
|
||||
return "Unknown argument $a[1], choose one of toggle:noArg"
|
||||
if($a[1] ne "toggle");
|
||||
|
||||
return if(IsDisabled($name));
|
||||
|
||||
IOWrite($hash, "", "hn".$hash->{DEF})
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
=pod
|
||||
=item summary Hoermann Garage door opener (read-only)
|
||||
=item summary_DE Hoermann Garagenfernbedienung (nur lesen)
|
||||
=item summary Hoermann Garage door opener
|
||||
=item summary_DE Hoermann Garagenfernbedienung
|
||||
=begin html
|
||||
|
||||
<a name="CUL_HOERMANN"></a>
|
||||
@ -77,13 +94,19 @@ CUL_HOERMANN_Parse($$)
|
||||
<a name="CUL_HOERMANNdefine"></a>
|
||||
<b>Define</b>
|
||||
<ul>
|
||||
<code>define <name> CUL_HOERMANNEM <10-digit-hex-code></code>
|
||||
<code>define <name> CUL_HOERMANN <10-digit-hex-code></code>
|
||||
<br>
|
||||
</ul>
|
||||
<br>
|
||||
|
||||
<a name="CUL_HOERMANNset"></a>
|
||||
<b>Set</b> <ul>N/A</ul><br>
|
||||
<b>Set</b>
|
||||
<ul>
|
||||
<li>toggle<br>
|
||||
Send a signal, which, depending on the status of the door, opens it,
|
||||
closes it or stops the current movement. NOTE: needs culfw 1.67+
|
||||
</li>
|
||||
</ul><br>
|
||||
|
||||
<a name="CUL_HOERMANNget"></a>
|
||||
<b>Get</b> <ul>N/A</ul><br>
|
||||
@ -93,6 +116,9 @@ CUL_HOERMANN_Parse($$)
|
||||
<ul>
|
||||
<li><a href="#do_not_notify">do_not_notify</a></li>
|
||||
<li><a href="#showtime">showtime</a></li>
|
||||
<li><a href="#IODev">IODev</a></li>
|
||||
<li><a href="#disable">disable</a></li>
|
||||
<li><a href="#disabledForIntervals">disabledForIntervals</a></li>
|
||||
</ul>
|
||||
<br>
|
||||
</ul>
|
||||
|
Loading…
x
Reference in New Issue
Block a user