You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a time-only helper: input_datetime.test and an automation that is triggered by it and in the automation, the helper is reset to a predefined value:
Setting the helper during the automation probably leads to some issue and causes the automation to be executed again at the previously set time (on the next day) and 00:00:00.
I have also noticed (by using profiler.log_event_loop_scheduled) that there are often two scheduled jobs for one point in time of the automation trigger in the event loop (usually immediately after restarting Home Assistant or change of the automation).
When the helper is changed, all jobs are normally also updated, but if this happens during automation, an old job remains.
If a delay is used before the service call, the jobs are also updated correctly and the problem does not occur.
(The real purpose of this automation is to dynamically pre-program switch-on times for devices, which is reset after execution, and by means of a condition the value 00:00:00 is ignored, which is used as a dummy value if no switch-on is desired.)
What version of Home Assistant Core has the issue?
core-2024.5.3 & core-2024.6.0.dev0
What was the last working version of Home Assistant Core?
The problem
I have a time-only helper:
input_datetime.test
and an automation that is triggered by it and in the automation, the helper is reset to a predefined value:Setting the helper during the automation probably leads to some issue and causes the automation to be executed again at the previously set time (on the next day) and 00:00:00.
I have also noticed (by using
profiler.log_event_loop_scheduled
) that there are often two scheduled jobs for one point in time of the automation trigger in the event loop (usually immediately after restarting Home Assistant or change of the automation).When the helper is changed, all jobs are normally also updated, but if this happens during automation, an old job remains.
If a delay is used before the service call, the jobs are also updated correctly and the problem does not occur.
(The real purpose of this automation is to dynamically pre-program switch-on times for devices, which is reset after execution, and by means of a condition the value 00:00:00 is ignored, which is used as a dummy value if no switch-on is desired.)
What version of Home Assistant Core has the issue?
core-2024.5.3 & core-2024.6.0.dev0
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
No response
Link to integration documentation on our website
https://www.home-assistant.io/docs/automation/trigger/#time-trigger
Diagnostics information
home-assistant.log
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: