From cb867db0f04e0787f89fdf5fb8c30b7a4b77eb47 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Sat, 5 May 2012 19:27:38 +0000 Subject: [PATCH] stop for blindActuator from Marc. git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1538 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/10_CUL_HM.pm | 7 ++++++- docs/commandref.html | 29 +++++++++++++++++++++-------- 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/FHEM/10_CUL_HM.pm b/FHEM/10_CUL_HM.pm index b46bb003c..64718a7bc 100755 --- a/FHEM/10_CUL_HM.pm +++ b/FHEM/10_CUL_HM.pm @@ -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 => " [on|off] ", devicepair => " 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); diff --git a/docs/commandref.html b/docs/commandref.html index 1dac32b01..5d2026631 100644 --- a/docs/commandref.html +++ b/docs/commandref.html @@ -2975,14 +2975,27 @@ A line ending with \ will be concatenated with the next one, so long lines
  • dimmer, blindActuator
      -
    • 0 - 100 with a resolution of 0.5:
      - set the dimmer / blindActuator to the given value (in percent).
      - as a second optional parameter you can give the On-Time in seconds (analog "on-for-timer"). 0 means infinite
      - 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
    • +
    • 0 - 100 [on-time] [ramp-time]
      + set the dimmer / blindActuator to the given value (in percent) + with a resolution of 0.5.
      + As a second optional parameter you can give the on-time in seconds + (analog "on-for-timer"), 0 means infinite.
      + 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
      +
    • on / off
      this corresponds to 100 or 0 %. -
    • toggle - toggle the dimmer between off and the last on-value
    • -
    • on-for-timer sec - set the dimmer on for the given seconds. Redundant with 0-100 and on/off for compatability purposes
    • + +
    • toggle - toggle the dimmer between off and the last on-value +
    • +
    • on-for-timer sec - set the dimmer on for the given seconds. + Redundant with 0-100 and on/off for compatability purposes
    • +
  • +
  • blindActuator +
      +
    • stop - stop the motion +

  • @@ -7742,8 +7755,8 @@ KlikAanKlikUit, NEXA, CHACON, HomeEasy UK.
    You need to define an RFXtrx433 define homepage weblink link http://www.fhem.de
    define webcam_picture weblink image http://w.x.y.z/current.jpg
    define interactive_webcam weblink iframe http://w.x.y.z/webcam.cgi
    - define define hr weblink htmlCode

    - define define w_Frlink weblink htmlCode { WeatherAsHtml("w_Frankfurt") }
    + define hr weblink htmlCode <hr>
    + define w_Frlink weblink htmlCode { WeatherAsHtml("w_Frankfurt") }
    define MyPlot weblink fileplot <logdevice>:<gnuplot-file>:<logfile>