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
If using "for:" in any trigger that supports it when HA restarts or automations are reloaded after the state, numeric_state, etc changes to the desired state but is waiting for the "for:" time to be reached the automation trigger condition will never be satisfied.
If for example you use the following trigger:
- platform: state
entity_id: lock.door
to: 'unlocked'
for:
minutes: 30
once the lock changes state to 'unlocked' if HA is restarted or automations are reloaded before the "for:" time is reached the trigger never occurs and the automation actions won't run.
This causes the need for an extremely complicated work around based on setting an input_datetime and doing multiple additional triggers and conditions to ensure the actions are performed when desired.
the same effect occurs for all "time" based functions in HA - timers, wait_template, delay, etc. which leaves the users with no reliable timed functionalities and so requires the above complex work arounds for any critical timed automations/scripts.
What is version of Home Assistant Core has the issue?
core-2021.8.3
What was the last working version of Home Assistant Core?
This is correct and expected behavior. During reloading/being offline, Home Assistant cannot know what happened in the environment outside of Home Assistant.
The problem
If using "for:" in any trigger that supports it when HA restarts or automations are reloaded after the state, numeric_state, etc changes to the desired state but is waiting for the "for:" time to be reached the automation trigger condition will never be satisfied.
If for example you use the following trigger:
once the lock changes state to 'unlocked' if HA is restarted or automations are reloaded before the "for:" time is reached the trigger never occurs and the automation actions won't run.
This causes the need for an extremely complicated work around based on setting an input_datetime and doing multiple additional triggers and conditions to ensure the actions are performed when desired.
the same effect occurs for all "time" based functions in HA - timers, wait_template, delay, etc. which leaves the users with no reliable timed functionalities and so requires the above complex work arounds for any critical timed automations/scripts.
What is version of Home Assistant Core has the issue?
core-2021.8.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
automation and script
Link to integration documentation on our website
https://www.home-assistant.io/docs/automation/trigger/
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: