As far as I know, I can run an automation when hass starts up with
automation:
trigger:
platform: homeassistant
event: start
Can I do the same for reload core/groups/automation ?
Thank you!
As far as I know, I can run an automation when hass starts up with
automation:
trigger:
platform: homeassistant
event: start
Can I do the same for reload core/groups/automation ?
Thank you!
I’d also like to trigger an automation off of reloading groups. Anyone know how?
I found the following to work for firing an automation after automations had been reloaded (to introduce a delay to enabling a select few).
trigger:
- platform: event
event_type: call_service
event_data:
domain: automation
service: reload
Although I didn’t specifically test it in an automation, swapping “automation” for “group” looks to be also going work for group reload.
For customization (core) reload, need to change both domain and service as follows:
domain: homeassistant
service: reload_core_config
I found this information by first reading the “Event Trigger” subsection of the Automation Trigger help page, which is the first type of trigger discussed… it “triggered” the idea to monitor events…
Then (action! ha ha) I started monitoring events in the dev-event section of the Developer Tools in a live Home Assistant system and fired off various events to see what came through…
Monitoring “call_service” events and firing off automation/group/core reloads then yeilded all the info above.
Thank you!
No worries, mate. Glad I could help.
Update… this broke for me somewhere between 115 and 117.
Credit where due: I got help from discord - thanks thomasloven
You now need a trigger more like this:
trigger:
- platform: event
event_type: automation_reloaded