From dfab2a2244c8676830897b634ee29aa3f5dd9abd Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Fri, 25 Apr 2014 06:45:14 +0000 Subject: [PATCH] ZWave: doc added to neighbour commands. git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5639 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/00_ZWDongle.pm | 12 ++++++++++++ fhem/FHEM/10_ZWave.pm | 8 ++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/fhem/FHEM/00_ZWDongle.pm b/fhem/FHEM/00_ZWDongle.pm index b5542e8a9..a29cbdbb6 100755 --- a/fhem/FHEM/00_ZWDongle.pm +++ b/fhem/FHEM/00_ZWDongle.pm @@ -645,6 +645,12 @@ ZWDongle_Ready($) device upon reception of the answer. Used for previously included nodes, see the nodeList get command below. +
  • neighborUpdate
    + Requests controller to update his routing table which is based on + slave's neighbor list. The update may take significant time to complete. + With the event "done" or "failed" ZWDongle will notify the end of the update process. + To read node's neighbor list see neighborList get below.
  • +
    @@ -665,6 +671,10 @@ ZWDongle_Ready($)
  • nodeInfo
    return node specific information. Needed by developers only.
  • +
  • neighborList id
    + returns the list of neighbor nodeIds of specified node. + Provides insights to actual network topology. + List includes dead links and non-routing neighbors
  • raw
    Send raw data to the controller. Developer only.
  • @@ -689,6 +699,8 @@ ZWDongle_Ready($)
  • UNDEFINED ZWave_${type6}_$id ZWave $homeId $id $classes"
  • +
  • ZW_REQUEST_NODE_NEIGHBOR_UPDATE [started|done|failed] +
  • diff --git a/fhem/FHEM/10_ZWave.pm b/fhem/FHEM/10_ZWave.pm index 5f4b68a99..fbf33b4dd 100755 --- a/fhem/FHEM/10_ZWave.pm +++ b/fhem/FHEM/10_ZWave.pm @@ -628,13 +628,13 @@ ZWave_Parse($$@) } elsif($cmd eq "ZW_REQUEST_NODE_NEIGHBOR_UPDATE") { if ($id eq "21") { - $evt = 'STARTED'; + $evt = 'started'; } elsif ($id eq "22") { - $evt = 'DONE'; + $evt = 'done'; } elsif ($id eq "23") { - $evt = 'FAILED'; + $evt = 'failed'; } else { - $evt = 'unknown'; + $evt = 'unknown'; # should never happen } }