-
-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Z-Wave JS value_updated triggers do not work after add-on restarted #88643
Comments
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
This issue is still happening even with the current 2023.5.4 build. |
And with 2023.6.1 as well |
Hey there @home-assistant/z-wave, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) zwave_js documentation |
I have updated to 2023.6.2 which is supposed to have this fix, however I am still experiencing the same issue. |
have you tried subscribing to the events again to confirm you are not getting the event? |
Yes, I subscribed to events and only see it when HA starts after the Z-Wave JS add-on. Let me know if any other logs are needed. |
@MartinHjelmare any thoughts on why this could be occurring? I can't find a thread to pull. EDIT: I think I figured it out. We are attaching the new listener to the old node instances we stored before the disconnect which have been replaced with new ones, so the new listener will never get called because the node instance it's attached to will not receive the event. |
PR submitted ^ I will reopen this after that inevitably closes this issue until we can confirm that it's resolved |
Verified fixed in 2023.6.3. Thank you. |
Please Reopen the ticket - The problem still persist on 2023.6.3 (HaOS installed on VirtualBox) |
Please open a new issue with your automation and all the information you can provide. |
The problem
Whenever the Z-Wave JS add-on is restarted (such as when a version update is performed) while Home Assistant is running, any value_updated triggers in automations stop working. I have to restart Home Assistant after the Z-Wave JS add-on to get the triggers to work again. In the zwave_js integration debug logs I always see the same messages whether the automation is triggered or not, and I've pasted those in the logs section. In developer tools I tried subscribing to events, and only see the event below when Home Assistant starts after the Z-Wave JS add-on.
event_type: automation_triggered
data:
name: Start Back Yard Timer
entity_id: automation.start_back_yard_timer
source: Z-Wave value 3-38-0-targetValue updated on In-Wall 600W Dimmer
origin: LOCAL
time_fired: "2023-02-23T03:58:25.266744+00:00"
context:
id: 01GSY6R6ZHWDFQD6JD4DD1HG2G
parent_id: null
user_id: null
What version of Home Assistant Core has the issue?
2023.2.5
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
zwave_js
Link to integration documentation on our website
No response
Diagnostics information
config_entry-zwave_js-df74f956572afe21ee1a9a59e999b3ec.json.txt
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: