From 1f3887058b0719cb80ce2818364f6ee7a4cd01ab Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 29 May 2014 06:11:36 +0000 Subject: [PATCH] ZWave INDICATOR Class from hschmitt (Forum #24068) git-svn-id: https://svn.fhem.de/fhem/trunk@5998 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_ZWave.pm | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/10_ZWave.pm b/fhem/FHEM/10_ZWave.pm index 1783eeaad..43f20aac7 100755 --- a/fhem/FHEM/10_ZWave.pm +++ b/fhem/FHEM/10_ZWave.pm @@ -206,7 +206,14 @@ my %zwave_class = ( parse => { "078612(..)(..)(..)(..)(..)" => 'sprintf("version:Lib %d Prot %d.%d App %d.%d",'. 'hex($1),hex($2),hex($3),hex($4),hex($5))', } }, - INDICATOR => { id => '87', }, + INDICATOR => { id => '87', + set => { indicatorOff => "0100", + indicatorOn => "01FF", + indicatorDim => "01%02x", }, + get => { indicatorStatus => "02", }, + parse => { "038703(..)" => '($1 eq "00" ? "indState:off" : + ($1 eq "ff" ? "indState:on" : + "indState:dim ".hex($1)))',}, }, PROPRIETARY => { id => '88', }, LANGUAGE => { id => '89', }, TIME => { id => '8a', }, @@ -238,7 +245,8 @@ my %zwave_class = ( NON_INTEROPERABLE => { id => 'f0', }, ); my %zwave_cmdArgs = ( - dim => "slider,0,1,99", + dim => "slider,0,1,99", + indicatorDim => "slider,0,1,99", ); @@ -850,6 +858,15 @@ s2Hex($) Reset the configuration parameter for the cfgAddress parameter to its default value. See the device documentation to determine this value. +

Class INDICATOR +
  • indicatorOn
    + switch the indicator on
  • +
  • indicatorOff
    + switch the indicator off
  • +
  • indicatorDim value
    + takes values from 1 to 99. + If the indicator does not support dimming. It is interpreted as on.
  • +

    Class PROTECTION
  • protectionOff
    device is unprotected
  • @@ -941,6 +958,11 @@ s2Hex($) report the supported status fields as a bitfield. +

    Class INDICATOR +
  • indicatorStatus
    + return the indicator status of the node, as indState:on, indState:off or indState:dim value. +
  • +

    Class MULTI_CHANNEL
  • mcEndpoints
    return the list of endpoints available, e.g.:
    @@ -1065,6 +1087,9 @@ s2Hex($)
  • remainingFilterLife: %s %
  • supportedStatus:
  • +

    Class INDICATOR +
  • indState:[on|off|dim value]
  • +

    Class METER
  • energy:val [kWh|kVAh|pulseCount]
  • gas:val [m3|feet3|pulseCount]