Closed kurtzettel closed 7 months ago
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (automation
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
automation documentation automation source (message by IssueLinks)
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. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
I am seeing the same problem with an automation. I'm on the latest HA 2024.1.2. Trace included. trace automation.theater_mode_poweroff_selected 2024-01-13T17_20_48.602042+00_00.json
Another instance of it in a different automation (but trying to make a call to the same underlying integration) trace automation.theater_mode_apple_tv_selected 2024-01-13T17_06_19.996920+00_00.json
I see the problem with my error (and probably @kurtzettel 's as well). continue_on_error only works for exceptions of type HomeAssistantError. In both our cases, the underlying component is throwing an exception of a different type, which cancels the automation/script/scene.
I think the correct mitigation in my case is to update the xbox component to wrap those exceptions in HomeAssistantError and re-throw. I've tested it locally and that gives me the expected behavior. I'll put together a PR with the fix for xbox and maybe some documentation enhancements for continue_on_error.
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. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
I have an automation that activates a scene:
This scene turns off a bunch of lights. When there is an error, the scene does not continue:
Here is the log:
While the cause of this is an error with the wiz light integration, this should not stop the automation. This was seen before with defects in Zigbee or Z-Wave not correctly wrapping errors I think but the core platform should not stop the automation from continuing if continue_on_error is set to true.
What version of Home Assistant Core has the issue?
core-2023.8.4
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
Automation
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?
No response
Additional information
I know this is a failure in the Wiz integration and if I can easily reproduce it, I'll submit a separate defect, but this specific error is that continue_on_error is not working as expected when invoking a scene.