From a4747e5531a83236f060899bd614a491587e3c2a Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sat, 30 May 2015 16:13:52 +0000 Subject: [PATCH] 10_Zwave.pm: POWERLEVEL patch from krikan (Forum #37667) git-svn-id: https://svn.fhem.de/fhem/trunk@8661 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_ZWave.pm | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/10_ZWave.pm b/fhem/FHEM/10_ZWave.pm index e579d6492..172b0d46c 100755 --- a/fhem/FHEM/10_ZWave.pm +++ b/fhem/FHEM/10_ZWave.pm @@ -233,7 +233,16 @@ my %zwave_class = ( "087205(....)(....)(.{4})" =>'ZWave_mfsParse($hash,$1,$2,$3,1)', "087205(....)(.{4})(.{4})" =>'ZWave_mfsParse($hash,$1,$2,$3,2)'}, init => { ORDER=>49, CMD => '"get $NAME model"' } }, - POWERLEVEL => { id => '73' }, + POWERLEVEL => { id => '73', + set => { powerlevel => "01%02x%02x", + powerlevelTest => "04%02x%02x%04x" }, + get => { powerlevel => "02", + powerlevelTest => "05" }, + parse => { "047303(..)(..)" => + '"powerlvl:current ".hex($1)." remain ".hex($2)', + "067306(..)(..)(....)" => + '"powerlvlTest:node ".hex($1)." status ".hex($2). + " frameAck ".hex($3)',} }, PROTECTION => { id => '75', set => { protectionOff => "0100", protectionSeq => "0101", @@ -1956,6 +1965,14 @@ s2Hex($) Store NAME in the EEPROM. Note: only ASCII is supported.
  • location LOCATION
    Store LOCATION in the EEPROM. Note: only ASCII is supported.
  • + +

    Class POWERLEVEL +
  • Class is only used in an installation or test situation
  • +
  • powerlevel level timeout/s
    + set powerlevel to level [0-9] for timeout/s [1-255].
    + level 0=normal, level 1=-1dBm, .., level 9=-9dBm.
  • +
  • powerlevelTest nodeId level frames
    + send number of frames [1-65535] to nodeId with level [0-9].


  • Class PROTECTION
  • protectionOff
    @@ -2186,6 +2203,12 @@ s2Hex($)
  • location
    Get the location from the EEPROM. Note: only ASCII is supported.
  • +

    Class POWERLEVEL +
  • powerlevel
    + Get the current powerlevel and remaining time in this level.
  • +
  • powerlevelTest
    + Get the result of last powerlevelTest.
  • +

    Class PROTECTION
  • protection
    returns the protection state. It can be on, off or seq.
  • @@ -2380,6 +2403,12 @@ s2Hex($)

    Class NODE_NAMING
  • name:NAME
  • location:LOCATION
  • + +

    Class POWERLEVEL +
  • powerlvl:current x remain y
  • +
  • NOTE: "current 0 remain 0" means normal mode without timeout
  • +
  • powerlvlTest:node x status y frameAck z
  • +
  • NOTE: status 0=failed, 1=success (at least one ACK), 2=in progress


  • Class PROTECTION
  • protection:[on|off|seq]