Comments (11)
I can also confirm the issue with an input boolean and this automation:
alias: Test Restart Automation
description: ""
trigger:
- platform: state
entity_id:
- input_boolean.test_input_boolean
to: "on"
- platform: state
entity_id:
- input_boolean.test_input_boolean
to: "on"
- platform: state
entity_id:
- input_boolean.test_input_boolean
to: "on"
condition: []
action:
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: notify.julian_telegram
metadata: {}
data:
message: test
mode: restart
Depending on how long the service takes to execute, the delay
might not even be needed(?)
But with it, I can reproduce the issue 100%. Currently running core 2024.6.0
.
I've definitely also seen this in some actual (light-related) automations that have the restart
mode.
@bdraco You already had fixed some similar issues where script/automations cancelled in restart
mode in previous releases. Are you aware of any other issues with this? (or have some time to also take a look at this? 😄 )
from core.
I have fixed a few ones recently, but this looks different. Is there a minimal reliable reproducer available?
from core.
Yeah, see the automation I have in my comment above. That's as minimal I was able to get it with reproducing consistently.
You just need to create an input boolean and test that automation.
Oh, and might wanna change the service at the end (send a notification in my example—it can do anything, doesn't really matter, as the automation doesn't get to that point when looking at the traces).
There's also one automation in the initial post.
from core.
@TheJulianJES @LucasCZE
Can you confirmed the linked PR #119100 fixes this problem?
from core.
Just FYI, I updated my HA to 2024.6.3 (the fix was included in 2024.6.2) and the issue is fixed also in my environment. 👍
from core.
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!
Code owner commands
Code owners of automation
can trigger bot actions by commenting:
@home-assistant close
Closes the issue.@home-assistant rename Awesome new title
Renames the issue.@home-assistant reopen
Reopen the issue.@home-assistant unassign automation
Removes the current integration label and assignees on the issue, add the integration domain after the command.@home-assistant add-label needs-more-information
Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.@home-assistant remove-label needs-more-information
Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
(message by CodeOwnersMention)
automation documentation
automation source
(message by IssueLinks)
from core.
I think I've actually seen similar behavior with restart
automations in 2024.5.x and 2024.6.x.
from core.
I also see this issue with a real automation for my window blind. The automation is quite complex and I can see it almost every day. The example YAML I have included is just for the demonstration, but the issue can easily occur even in a real case of use.
from core.
Did a quick test with the example I had in my comment above and the issue seems to be fixed then.
And as always, thanks for your work!
From the automation traces, the first automation run got into the delay and was restarted then:
The second run was restarted before it even got to the delay:
And as expected, with the fix, the last run completed now:
That's just an observation, the fixed behavior seems fine to me.
from core.
Thanks for testing!
from core.
Thanks for the fix @bdraco and thanks for testing it @TheJulianJES. I really don't know how to test the fix. But as per the comment above, I believe the bug is fixed. Thank you again. 👍
from core.
Related Issues (20)
- Tado integration no longer providing climate HOT 5
- Hue integration: Periodic brightness procent adjustment does not work on the light HOT 1
- Somfy Cover (only one) stops working after switching to Local API HOT 2
- Shelly calling async_delete_issue a lot HOT 1
- Entities are registered/duplicated in multiple areas when grouped with devices from different areas HOT 1
- Minecraft Bedrock Server Integration does not show Players Online Entity - Players List Attribute HOT 1
- PyDuotecno integration freezing HOT 1
- Services: cannot use "input_datetime.set_datetime" to set a 0 value HOT 1
- Google AI returns 400 Request contains an invalid argument. HOT 7
- UPnP integration doesn't let me add more devices HOT 1
- Detected blocking call to listdir with args ('/proc/self/fd',) inside the event loop by integration 'prometheus' HOT 1
- myUplink throwing error on key `43115` HOT 1
- waqi integration reporting AQI instead of PM2.5 HOT 2
- Cannot change “state_class” for a sensor with LTS
- Gree "X-Fan" switch goes back to off on its own HOT 1
- Device Connection Error - Shelly devices after 2024.6.4 with Gen1 devices HOT 1
- MelCloud delay in detecting temperature change
- Users panel: wrong error when adding username that contains capital HOT 1
- Netdata's entities don't support statistics HOT 1
- Opower - returning 403 Forbidden logging into ConEd HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.