hassio-addons / addon-zwave-js-ui

Z-Wave JS UI - Home Assistant Community Add-ons
https://addons.community
MIT License
124 stars 35 forks source link

have to restart after almost every inclusion #697

Open rbhun opened 4 weeks ago

rbhun commented 4 weeks ago

Problem/Motivation

Zwave JS UI freezes after an exclusion or (less frequently) inclusion. I am moving about a 100 devices over. After every 1-3 devices, I have an issue where I have to restart the UI to work it,

Expected behavior

Obviously, I want to excluse, incluse, maybe change a setting, then exclude and include again. All devices without security.

Actual behavior

after an exclusion, the Nodes Manager window becomes unresponsive. Mostly it spins at 'starting exclusion'. Sometimes at inclusion, or gives an error. Some rare occasions the device actually gets included, but the next exclusion wont work for sure.

Steps to reproduce

I think it started happening after some devices which needed 3-4 exclusions to work. It happens maybe more frequently with battery devices, but happens with mains powered too.

image

here you can see, immediately after a restart, I did an exclusion. It said failed. Then I wanted to include (thinking the device maybe excluded alreday. Top right you can see 'Exclusion failed', however the red X says 'exclusion active'. But it allowed me to start an inclusion, and it does say 'starting inclusion' while also saying 'inclusion stopped'

this is in the logs:

2024-08-15 13:00:29.680 ERROR Z-WAVE: Timeout while waiting for a callback from the controller (ZW0200) ZWaveError: Timeout while waiting for a callback from the controller (ZW0200) at Driver.sendMessage (/opt/node_modules/zwave-js/src/lib/driver/Driver.ts:5549:23) at ZWaveController.stopExclusion (/opt/node_modules/zwave-js/src/lib/controller/Controller.ts:2442:22) at ZwaveClient.stopExclusion (/opt/server/lib/ZwaveClient.js:2078:44) at Timeout. (/opt/server/lib/ZwaveClient.js:2063:22) at listOnTimeout (node:internal/timers:569:17) at processTimers (node:internal/timers:512:7) 2024-08-15 13:00:34.147 INFO APP: GET /health/zwave 301 1.941 ms - 191 2024-08-15 13:01:04.288 INFO APP: GET /health/zwave 301 1.929 ms - 191

apart from this, Zwave devices work, its only the exclusion that is frozen.