That does not work, since all integrations are not always loaded at that point. I had to add at least a 20s delay after that or calling an integrated entity action on HA start would fail
All integrations are loaded before that event is dispatched. Whether the devices that are part of the integration are ready is a different matter.
Using this event in conjunction with an unavailable entities sensor (template, python script, plenty of examples on the forums recently) is the best way to ensure that everything is ready and correct (or not!) before proceeding.
Thanks all for the replies.
However there seems to be some misunderstanding on what i am trying to do.
I’m trying not to trigger an automation at startup.
It looks like 2:30 in the morning isn’t a good time to fix problems because the solotion was actuely quite simple.
I added a trigger from state condition for the ‘on’ and ‘of’ states and it works perfectly.
It might not be the best solution but it works so I’m happy