-
Mostly to see if I could do it and to find issues if I couldn’t, I have installed zwave-js-ui as an alternative Zwave provider for my openHAB installation on an Rpi4 - 2GB. The goal was to be able to leave all my rules (and other home automation elements) alone and use the zwave-js-ui to duplicate everything I was doing with the OH Zwave binding. Additionally, I was also interested the zwave-js-ui features available without having to unplug the zstick and use Simplicity Studio. I did have to make minor modifications in some rules, but pretty much mission accomplished.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
There's not really a hard reason for the 1s awake time, more of a gut feeling. I'd accept a PR to make this configurable with a driver option, like we do with other timeouts.
This comes from the specifications:
The driver remembers (in memory) when the last wakeup was and compares that with the configured wakeup interval. If the time since the last wakeup is more than 5 minutes longer than expected, the interval is queried again. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the feedback. If I decide to stick with zwave-js beyond the testing I'm doing, I'll look at a PR. It will take some time for me to understand by looking at the other configurable timeouts. My experience with zwave device clocks is that they are highly inaccurate. I have a powered Aeotec plug that loses about a minute per hour. I'll examine my devices, but highly suspect they are losing over the threshold every day. Two thoughts; since the spec says SHOULD, not MUST I do not think you would be jeopardizing certification without this. However, I could see a variable parameter based on a 1% error, so a daily wake could allow up to 864 seconds, while a 8 hour wake interval would be close the the current 5 minutes. Again I could look at that in the future. For now with the minimum wake a 1 second it is basically moot (battery power-wise) anyway |
Beta Was this translation helpful? Give feedback.
-
I'm going to close this as I have all the information I need. FTR - I tracked the actual wake intervals of my battery devices over several days. I can say the internal clocks are pretty bad for some devices and would not be encompassed with even a 1% cap. (The zooz zse-29v2 loses about an hour and a half each day and one of my sensative door sensors gains an hour a day-but is not 132 polled as only longer is tracked). Anyway my concern is moot anyway with a one second minimum "wake" as that command typically takes way less than 100ms. Thanks for your answers |
Beta Was this translation helpful? Give feedback.
There's not really a hard reason for the 1s awake time, more of a gut feeling. I'd accept a PR to make this configurable with a driver option, like we do with other timeouts.
The 1000ms is currently hardcoded here:
node-zwave-js/packages/zwave-js/src/lib/driver/Driver.ts
Line 5518 in ef0adbb
This comes from the specifications:
The driver reme…