Hi, I want to create an automation to run at HA startup. I have also some conditions as part of this but I want HA to check the validity of these conditions after 10sec from Startup. I am aware of using the uptime sensor for this process but is there any other way?
- alias: 'Example 1'
trigger:
- platform: homeassistant
event: start
action:
- delay: '00:00:10'
...etc...
This is to delay the action, I want to delay checking of conditions in the automation.
Put the conditions in the action, after the delay.
- alias: 'Example 1'
trigger:
- platform: homeassistant
event: start
action:
- delay: '00:00:10'
- condition:
...etc...
From the documentation:
Conditions can also be part of an action. You can combine multiple service calls and conditions in a single action, and they will be processed in the order you put them in. If the result of a condition is false, the action will stop there so any service calls after that condition will not be executed.