Hi,
I have an event automation which I call from IFTTT. I would also like to call it from another automation. I assume it can be done - I just can’t figure out the syntax.
Here’s the one I call from IFTTT
- alias: Garage Open
trigger:
platform: event
event_type: garage_open
condition:
platform: state
entity_id: sensor.garage_state
state: 'Closed'
action:
service: switch.turn_on
entity_id: switch.garage_door
Now I would like to call it from this one;
- alias: Garage Open Auto
trigger:
platform: state
entity_id: group.location
state: home
condition:
platform: state
entity_id: sensor.garage_state
state: 'Closed'
action:
service: switch.turn_on
entity_id: switch.garage_door
I haven’t figured out how to do this, so I’m simply replicating the functionality of the the first at this stage which I’d prefer to not have to do. Instead, I’d like to have no conditions, and just call the Garage open event - something like this;
action:
service: event
entity_id: automation.garage_open
Any thoughts?
Thx
James