I use the following automation when HA starts:
- alias: homeassistant start-up
initial_state: true
trigger:
platform: homeassistant
event: start
action:
- service: script.turn_on
entity_id: script.customstartup
Is there a similar event like finished
when HA is done with its initialization?