#Can Trigger.id be used in an automation action?

7 messages · Page 1 of 1 (latest)

sour folio
#
data:
  title: DOOR OPENED
  message: "{{ trigger.id }} was opened"
action: notify.mobile_app_nickphone13```

I'm unclear on the docs ... do I use a trigger variable?
lofty birch
#

Yes

mild ruin
#

it's covered in the automation templating documentation

#

but basically every trigger you add an id will have the .id property

#

accessable through trigger.id in templates

sour folio
#

ah I was reading the wrong doc then

#

does that mean that trigger.id, in the context of an automation, will be the ID of trigger?