I would like to run an automation once after HA has been running for five minutes. Not sure how to achieve this!
To clarify - I want to run this automation at startup and then just once more again five minutes after startup
I would like to run an automation once after HA has been running for five minutes. Not sure how to achieve this!
To clarify - I want to run this automation at startup and then just once more again five minutes after startup
Add the uptime integration if you haven’t already:
Then use a template trigger:
trigger:
- platform: homeassistant
event: start
- platform: template
value_template: "{{ now() - states('sensor.uptime')|as_datetime > timedelta( minutes = 5) }}"
action:
...
Edit: added start trigger as well.
Brilliant - many many thanks