Hi,
I’m trying to use device variable inside a notification of trigger, but it’s not working.
When I write the trigger variable inside the message body, I’m not getting the notification at all.
Appreciate any help, here’s my code:
alias: Boiler ON/OFF
description: ''
trigger:
- platform: device
type: changed_states
device_id: a463270721489a8907g1ajc903bfab03
entity_id: switch.boiler
domain: switch
condition: []
action:
- service: notify.me
data:
message: 'Boiler is {{ trigger.event.event_type }}'
mode: single
Thanks!