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
Automations triggered by Zigbee device are now hanging or failing all together #98428
Comments
Duplicate of #98073 |
Hey there @dmulcahey, @Adminiuga, @puddly, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) zha documentation |
For zha maintainers, some context in #98073 (comment) and PR #98501 -- service calls used to have a default timeout and now we'd like to fix the root cause of the issue and ensure that integration services calls don't hang forever or resolve the underlying root cause. |
Thank you! I don't believe there are any operations in ZHA that should run indefinitely: all commands should have a timeout of one sort or another via the upstream library. With the removal of Core's timeouts, is there some other hard limit? Or is this behavior 100% caused by an integration service call running indefinitely? |
Not currently a hard limit. (My original suggestion was to add back the limit but we decided it should be specific to the integration based on the context). Just to clarify, timeouts are one solution but there could be others (e.g. immediate fail if the device isn't available etc) |
For what it's worth, running the latest version and I have not had any more issues. |
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. |
The problem
Racking my brain on this one. Had the below automation working for literally a year with NO problems.
The sensor triggers, automation sees the trigger
Condition passes
Lights not triggered.
I check traces it shows “stopped because only a single execution”. Immediately after I can trigger the lights with my dashboard or with my ZHA wireless button with no problem. No long running execution.
If I reboot HA it works once and then almost never again. I have a much more complex automation that also started to hang sometimes that won't recover until I reboot HA.
To temporarily work around the problem I ended up doing ZHA event captures and that works without issue. See Workaround automation.
What version of Home Assistant Core has the issue?
core-2023.8.2
What was the last working version of Home Assistant Core?
3 or 4 versions back
What type of installation are you running?
Home Assistant OS
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
No response
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: