Skip to content

ZWave Route Mapping #7359

Answered by AlCalzone
Siburanjan asked this question in Q&A
Discussion options

You must be logged in to vote

Using discoverNodeNeighbors isn't something you want to do frequently, as it instructs the node to ping all other nodes, waits for that to happen, and collects the results.

Z-Wave JS UI used to evaluate the neighbors property of the nodes, which caches this information, but that isn't really reliable. Also it does not tell you which routes are used, just which nodes "see" which other nodes.

Instead what we now do is listen to the statistics updated events, which contains information about the actual used routes and is updated every time a command was sent to a node. As a static fallback, you can use controller.getPriorityRoute(nodeId), which (as long as there is no priority route set) als…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by robertsLando
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants