-
-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
Automation is cancelled on API client disconnect #101751
Comments
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) automation documentation |
After a bit of debugging I've found a clue. To quote the documentation:
This is not what I am experiencing now. The call does not return until the service call is finished, and when the client drops the connection, the Please advise. |
The |
I don't know how the whole rest API works, but maybe you can consider using a webhook as trigger? |
It's a valid workaround, yes. |
The problem
I have a problem with my automations being cancelled during wait timer.
Background: I have a backup server that should stay powered off most of the time, only powering on at night to make a backup.
The power socket is controlled by home assistant. It has automation.backup_watchdog that waits for 31 minutes and powers off the server. While the server is running, it uses web API to restart the automation at a regular intervals while the OS is still running to prevent it to power off too early.
The error I have is that the automation mysteriously gets cancelled after about 6 minutes of waiting (out of 31), even when it is not restarted.
What version of Home Assistant Core has the issue?
core-2023.9.0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
automation
Link to integration documentation on our website
https://www.home-assistant.io/docs/automation/basics/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Nothing relevant after this.
Additional information
Traces of the last run:
The text was updated successfully, but these errors were encountered: