From 25a6063384d12c3e13249d1bfa0a7db5c50d6e75 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Fri, 30 May 2014 13:21:15 +0000 Subject: [PATCH] ZWave: SWITCH_ALL by hschmitt (Forum #24118) git-svn-id: https://svn.fhem.de/fhem/trunk@6011 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_ZWave.pm | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/10_ZWave.pm b/fhem/FHEM/10_ZWave.pm index d04d62673..e7a4ad590 100755 --- a/fhem/FHEM/10_ZWave.pm +++ b/fhem/FHEM/10_ZWave.pm @@ -51,7 +51,18 @@ my %zwave_class = ( parse => { "032603(.*)"=> '($1 eq "00" ? "state:off" : ($1 eq "ff" ? "state:on" : "state:dim ".hex($1)))',}, }, - SWITCH_ALL => { id => '27', }, + SWITCH_ALL => { id => '27', + set => { swaIncludeNone => "0100", + swaIncludeOff => "0101", + swaIncludeOn => "0102", + swaIncludeOnOff => "01ff", + swaOn => "04", + swaOff => "05", }, + get => { swaInclude => "02", }, + parse => { "03270300" => "swa:none", + "03270301" => "swa:off", + "03270302" => "swa:on", + "032703ff" => "swa:on off", }, }, SWITCH_TOGGLE_BINARY => { id => '28', }, SWITCH_TOGGLE_MULTILEVEL => { id => '29', }, CHIMNEY_FAN => { id => '2a', }, @@ -876,6 +887,22 @@ s2Hex($)
  • protectionSeq
    device can be operated, if a certain sequence is keyed.
  • +

    Class SWITCH_ALL +
  • swaIncludeNone
    + the device does not react to swaOn and swaOff commands
  • +
  • swaIncludeOff
    + the device reacts to the swaOff command + but does not react to the swaOn command
  • +
  • swaIncludeOn
    + the device reacts to the swaOn command + but does not react to the swaOff command
  • +
  • swaIncludeOnOff
    + the device reacts to the swaOn and swaOff commands
  • +
  • swaOn
    + sends the all on command to the device
  • +
  • swaOff
    + sends the all off command to the device.
  • +

    Class SWITCH_BINARY
  • on
    switch the device on
  • @@ -1003,6 +1030,11 @@ s2Hex($) request data from the node (temperature/humidity/etc) +

    Class SWITCH_ALL +
  • swaInclude
    + return the switch-all mode of the node. +
  • +

    Class SWITCH_BINARY
  • swbStatus
    return the status of the node, as state:on or state:off. @@ -1142,6 +1174,9 @@ s2Hex($)
  • distance $val [m|cm|feet]
  • anglePosition $val [%|relN|relS]
  • +

    Class SWITCH_ALL +
  • swa:[none|on|off|on off]
  • +

    Class SWITCH_BINARY
  • state:on
  • state:off