zwave-js / node-zwave-js

Z-Wave driver written entirely in JavaScript/TypeScript
https://zwave-js.github.io/node-zwave-js/
MIT License
753 stars 606 forks source link

Distinguish between fast and slow device classes when doing optimistic value updates #3892

Open AlCalzone opened 2 years ago

AlCalzone commented 2 years ago

We should distinguish between devices that do fast and device that do slow transitions and only do optimistic updates for fast ones. This way, UIs could give immediate feedback about the state of lights but it would still be possible to wait for the slower ones like roller shutters.

Fast would be:

Slow would be:

Nagskull commented 1 year ago

Hello,

Is there any chance that this change will be implemented in the foreseeable future? I have experimented with workarounds based on the predicted transition time, but they lead to erratic or much less responsive behaviors.

This change could be made easier, I guess, by simply letting users deactivate optimistic value updates manually, on a node-by-node or node-types basis. This way, there would be no need to update existing devices configuration files to specify whether they are slow or fast.

Thanks a lot for tour help!

MaelDieudonne commented 7 months ago

Sorry do I need to tag you @AlCalzone? Still hoping that one day this change could be implemented. Would be a game changer for me. Thanks