I’ve been able to call IFTTT as an action in an automation as follows:
automation:
…
…
action:
- service: ifttt.trigger
data: {“event”: “GarageLeftOpened”}
- service: timer.start
entity_id: timer.garage_doorifttt:
key: !secret ifttt_key
I’m now trying to call the same IFTTT call from an alert
, which requires one to specify a list of notifications. The documentation says you can use a group notification to call other services such as twillow. But my attempt below to call IFTTT is failing. Any idea what I’m doing wrong?
alert:
garage_door:
name: Garage is open
done_message: Garage is closed
entity_id: cover.garage_door_opener
state: 'open'
repeat: 10
can_acknowledge: True
skip_first: True
notifiers: ifttt_garage_alert
notify:
- name: ifttt_garage_alert
platform: group
services:
- service: ifttt
data:
target: {"event": "GarageLeftOpened"}
ifttt:
key: !secret ifttt_key
@gureyes since you proposed using alerts, maybe you might know something about using group notifiers? Apparently they can be used elsewhere.