2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

stop for blindActuator from Marc.

git-svn-id: https://svn.fhem.de/fhem/trunk@1538 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2012-05-05 19:27:38 +00:00
parent 1075e37521
commit 9150c207d9
2 changed files with 27 additions and 9 deletions

View File

@ -890,7 +890,7 @@ my %culHmSubTypeSets = (
dimmer =>
{ "on-for-timer"=>"sec", on=>"", off=>"", toggle=>"", pct=>"" },
blindActuator=>
{ "on-for-timer"=>"sec", on =>"", off=>"", toggle=>"", pct=>"" },
{ "on-for-timer"=>"sec", on =>"", off=>"", toggle=>"", pct=>"", stop=>"" },
remote =>
{ text => "<btn> [on|off] <txt1> <txt2>",
devicepair => "<btnNumber> device", },
@ -1062,6 +1062,11 @@ CUL_HM_Set($@)
my $cmd = sprintf("++A011%s%s02%s%02X%s%s", $id, $dst, $chn, $a[1]*2,$rval,$tval);
CUL_HM_PushCmdStack($hash, $cmd);
} elsif($cmd eq "stop") { #####################################
my $headerbytes = $md eq "HM-LC-SW1-BA-PCB" ? "FF" : "A0";
CUL_HM_PushCmdStack($hash,
sprintf("++%s11%s%s03%s", $headerbytes, $id,$dst, $chn));
} elsif($cmd eq "text") { #############################################
$state = "";
return "$a[2] is not a button number" if($a[2] !~ m/^\d$/ || $a[2] < 1);

View File

@ -2975,14 +2975,27 @@ A line ending with \ will be concatenated with the next one, so long lines
<li>dimmer, blindActuator
<ul>
<li>0 - 100 with a resolution of 0.5:<br>
set the dimmer / blindActuator to the given value (in percent).<br>
as a second optional parameter you can give the On-Time in seconds (analog "on-for-timer"). 0 means infinite<br>
as a third optional parameter you can give the Ramp-Time in seconds (steps of 0.1) for a "slow-dim". 0 means instant. Default: 0.5<br></li>
<li>0 - 100 [on-time] [ramp-time]<br>
set the dimmer / blindActuator to the given value (in percent)
with a resolution of 0.5.<br>
As a second optional parameter you can give the on-time in seconds
(analog "on-for-timer"), 0 means infinite.<br>
As a third optional parameter you can give the Ramp-Time in
seconds (steps of 0.1) for a "slow-dim". 0 means instant. Default:
0.5<br>
</li>
<li>on / off<br>
this corresponds to 100 or 0 %.
<li>toggle - toggle the dimmer between off and the last on-value</li>
<li>on-for-timer sec - set the dimmer on for the given seconds. Redundant with 0-100 and on/off for compatability purposes</li>
</li>
<li>toggle - toggle the dimmer between off and the last on-value
</li>
<li>on-for-timer sec - set the dimmer on for the given seconds.
Redundant with 0-100 and on/off for compatability purposes</li>
</ul></li>
<li> blindActuator
<ul>
<li>stop - stop the motion
</li>
</ul></li>
<br>
@ -7742,8 +7755,8 @@ KlikAanKlikUit, NEXA, CHACON, HomeEasy UK. <br> You need to define an RFXtrx433
<code>define homepage weblink link http://www.fhem.de</code><br>
<code>define webcam_picture weblink image http://w.x.y.z/current.jpg</code><br>
<code>define interactive_webcam weblink iframe http://w.x.y.z/webcam.cgi</code><br>
<code>define define hr weblink htmlCode <hr></code><br>
<code>define define w_Frlink weblink htmlCode { WeatherAsHtml("w_Frankfurt") }</code><br>
<code>define hr weblink htmlCode &lt;hr&gt</code><br>
<code>define w_Frlink weblink htmlCode { WeatherAsHtml("w_Frankfurt") }</code><br>
<code>define MyPlot weblink fileplot &lt;logdevice&gt;:&lt;gnuplot-file&gt;:&lt;logfile&gt;</code><br>
</ul>
<br>