Lentron
(Marlo Melching)
January 10, 2018, 12:35pm
1
I’ve been trying to use the events in the service window as triggers for my automations, specifically all the homeassistant.xxx and hassio.xxx events
I tried to call them by:
trigger:
- event_type: homeassistant.check_config
platform: event
I can’t get it to work… any suggestions?
arsaboo
(Arsaboo)
January 10, 2018, 1:30pm
2
Those are services and not events that can be used for triggers.
Tinkerer
(aka DubhAd on GitHub)
January 10, 2018, 1:35pm
3
This describes the events built in to the platform, though there will be others.
Lentron
(Marlo Melching)
January 10, 2018, 2:02pm
4
@arsaboo Then how comes that i can use:
trigger:
- event_type: homeassistant.restart
platform: event
that works fine, so does: event_type: homeassistant.start
according to this picture i should be able to listen for the hassio events aswell:
arsaboo
(Arsaboo)
January 10, 2018, 2:07pm
5
I am guessing homeassistant.restart
is using the same homeassistant.start
trigger. As @Tinkerer indicated there are only few events that you can use as triggers and they are defined here . Also, you should use
trigger:
platform: homeassistant
event: start
Lentron
(Marlo Melching)
January 10, 2018, 2:21pm
6
then how do i trigger an automation whenever a specific service is called?
arsaboo
(Arsaboo)
January 10, 2018, 2:26pm
7
Again, those are services and not triggers. You can only use the triggers that are available in HA. Triggering an automation on service call does not make lot of sense to me.
Lentron
(Marlo Melching)
January 10, 2018, 3:48pm
8
the sense it makes is that i want to get a notification every time an error occurs and every time someone reloads the configuration.
2 Likes