-
We currently try to verify that a set-type command worked correctly. This is done by issuing a corresponding As far as I see it, there are several scenarios we need to support:
@hanskroner |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 16 replies
-
Don't poll. Or rather, why the need for a poll? See also the next answer.
How is the library deciding how long after the
As with the above answer, if the library was responsible for sending the
As with basically everything else, there isn't an easy answer. It's generally a good idea to use Supervision encapsulation for A closing remark: There's a lot of emphasis on providing "real state" mirroring. In my experience, after deeper analysis on this, it turns out to be rarely needed - outside of cool demos. This particular application might be different, so understanding why the goals are what they are would be helpful in defining a strategy to accomplish them. Maintaining an accurate mirror of the state of a distributed network with multiple external change agents is hard so starting with "is it absolutely necessary?" is important. For example, consider what happens if this library goes though major pains to in order to provide the optimal solution to the above, so that library clients have near-realtime notifications, but then the state of a switch (which doesn't do Lifeline reporting) is changed externally: either manually at the switch, or by another Z-Wave device. The library won't be notified of this change until the next poll cycle, which might mean that automations that a client of the library's might have defined using that change as a trigger will be delayed - if the network is large enough that the polling interval must be necessarily high, it might be that that the delay ruins the whole scenario. Knowing that case is real and unavoidable, and that there are lots of others like it, might help add a little perspective to this question. |
Beta Was this translation helpful? Give feedback.
-
Could it be assumed that the node has accepted the new value, if it acknowledges the message? Ie.. |
Beta Was this translation helpful? Give feedback.
-
This very much depends on whether a device supports S2 (and thus supervision encapsulation), and whether it is Z-Wave Plus v.2 If the device supports supervision encapsulation, just use this, and the node will tell you if the command was carried out correctly. Furthermore if the device is Z-Wave Plus v.2 it is required to send status updates to the lifeline destination, whenever the status was changed by anything else than the lifeline destination i.e. locally, or by another Z-Wave node. For legacy devices, the the previous discussion applies :) |
Beta Was this translation helpful? Give feedback.
-
Just about to start a zwave project for my home as an experienced javascript frontend coder with limited nodejs knowledge. Still trying to figure out how to put things together. May I ask
Many thinks. |
Beta Was this translation helpful? Give feedback.
This very much depends on whether a device supports S2 (and thus supervision encapsulation), and whether it is Z-Wave Plus v.2
If the device supports supervision encapsulation, just use this, and the node will tell you if the command was carried out correctly.
Furthermore if the device is Z-Wave Plus v.2 it is required to send status updates to the lifeline destination, whenever the status was changed by anything else than the lifeline destination i.e. locally, or by another Z-Wave node.
For legacy devices, the the previous discussion applies :)