From 91e5c94539cfdc178a6ffa5252846fd97a040eea Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 27 Sep 2015 06:39:43 +0000 Subject: [PATCH] 10_ZWave.pm/00_ZWDongle.pm: removeFailedNode patch (Forum #32823) git-svn-id: https://svn.fhem.de/fhem/trunk@9313 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/00_ZWDongle.pm | 18 +++++++++++++++++- fhem/FHEM/10_ZWave.pm | 36 ++++++++++++++++++++++++++++++++++-- 2 files changed, 51 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/00_ZWDongle.pm b/fhem/FHEM/00_ZWDongle.pm index 4e43d807f..826180ae1 100755 --- a/fhem/FHEM/00_ZWDongle.pm +++ b/fhem/FHEM/00_ZWDongle.pm @@ -30,7 +30,7 @@ my %sets = ( "removeNode" => { cmd => "4b%02x@", # ZW_REMOVE_NODE_FROM_NETWORK' param => {nwOn=>0xc1, on=>0x81, off=>0x05 } }, "createNode" => { cmd => "60%02x" }, # ZW_REQUEST_NODE_INFO' - "removeFailedNode" => { cmd => "61%02x" }, # ZW_REMOVE_FAILED_NODE_ID + "removeFailedNode" => { cmd => "61%02x@" }, # ZW_REMOVE_FAILED_NODE_ID "replaceFailedNode"=> { cmd => "63%02x" }, # ZW_REPLACE_FAILED_NODE "neighborUpdate" => { cmd => "48%02x" }, # ZW_REQUEST_NODE_NEIGHBOR_UPDATE "sendNIF" => { cmd => "12%02x05@" },# ZW_SEND_NODE_INFORMATION @@ -443,6 +443,9 @@ ZWDongle_Get($@) return "$name: Cannot generate" if($ret !~ m/^011c01(..)(.*)$/); $msg = $2; @a = (); + } elsif($type eq "isFailedNode") { ############################ + $msg = ($r[2]==1)?"yes":"no"; + } $type .= "_".join("_", @a) if(@a); @@ -878,6 +881,11 @@ ZWDongle_Ready($) update process. To read node's neighbor list see neighborList get below. +
  • removeFailedNode
    + Remove a non-responding node that must be on the failed Node list from + the node list in controller. Instead, always use removeNode if possible. + Note: the corresponding fhem device have to be deleted manually.
  • +
  • reopen
    First close and then open the device. Used for debugging purposes.
  • @@ -895,6 +903,9 @@ ZWDongle_Ready($)
  • homeId
    return the six hex-digit homeId of the controller.
  • +
  • isFailedNode
    + return if a node is stored in the failed node List.
  • +
  • caps, ctrlCaps, version
    return different controller specific information. Needed by developers only.
  • @@ -941,6 +952,11 @@ ZWDongle_Ready($)