Switch polling stops occurring after a period of time #6950
-
Checklist
Describe the issueWhat is happening? After some time (~4 hours) application requests to poll switches are not being processed and the requests do not appear in the zwavejs log file. Then later on they may start being processed. This issue happens on zwavjs 9.14.1; but does not happen on zwavejs 9.10.3 or zwavejs 9.9.1. I will be installing some newer version to see when the problem starts occurring. The system is running on docker with Aeotec Gen5 FW 1.2 stick. I have been running a combination on Home Assistant 2024.3.1 and Zwave JS 9.9.1 for 3 months with the polling from Home Assistant working correctly. I have automations that periodically poll switches on a staggered schedule every 30 minutes. on 6/19 I upgraded Zwavejs to 9.14.1 (as part of my quarterly updates); the polls worked correctly for several hours; then stopped overnight; and the resumed in the early morning hours; then failed again. The stick is active; updates are flowing in. So it seems to be limited to polling. Im not 100% certain but it seemed like lights were still turning on / off from home assistant. I reviewed the Home Assistant Logs to verify the automations were running. I then manually tried executing the service call
The service call succeeded but zwavejs never processed the request and it never appears in the zwavejs logs. I then ran the current DEV branch of Home Assistant in the debugger (2024.6.3+) with it in this state and had the same behavior and I could verify that the messages were going out the websocket, This failure mode seemed very odd; so I have spent time analyzing the best I can. Since my goal was to be able to run HA 2024.6.3; I reviewed the docs to determine the minimum zwavejs version required which is 9.10.0; so I installed 9.10.3 and let it run overnite and there were no problems, I plan to move up to the 9.11.x branch next to see if the problem occurs there. Here is an example for Node 21; the polls run at :05 and 0:35
What did you expect to happen instead? The polls should work, Steps to reproduce the behavior:
Anything else we should know? Software versionsDriver (node-zwave-js): 12.1.1 Z-Wave JS UI: 9.14.1 Home Assistant Z-Wave Integration: 2024.3.1 and 2024.6.3.dev Home Assistant Z-Wave JS Addon: n/a ioBroker.zwave2 Adapter: n/a If you are using something non-standard, tell us here: ... Device informationThe issue effects all switches. Here is a specific one that shows the problem Manufacturer: Enbrighten Checklist
Upload Logfile |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Just stared a test on will let it run for 24 hours and report back. zwave-js-ui: 9.13.3.61d406e |
Beta Was this translation helpful? Give feedback.
-
It's possible that this is a duplicate of #6952 |
Beta Was this translation helpful? Give feedback.
-
Sounds likely. I do launch staggered battery refreshes at 11 pm est, device wake-up every 4 hours - so that fits the first occurrence. |
Beta Was this translation helpful? Give feedback.
-
Upgraded to 9.14.2 / 12.11.2 - will let run for 24 hours and report back. |
Beta Was this translation helpful? Give feedback.
The issue does not occur in zwavejs 19.4.2