Hi @Cergon
The original code works if the trigger is entity state change, then you can operate on the related entity and fetch its friendly name etc.
In your case it is an event.
Could you please add more details on what kind of event it is, and what kind of information you would like to extract and include in your message from it or some how related entity
Be aware that attempting to test actions that use the trigger variable using the âRunâ command or the automation.trigger action will fail, you need a real trigger event to populate the variable.
The brief formatted code I showed earlier was what was the visual editor produced. I remove the extra quotes and the notification still doesnât include the trigger name or entity name. It just says opened
This is my automation:
alias: "Door opened chime "
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.slider_door_opening
- binary_sensor.front_door_opening
- binary_sensor.garage_mudroom_door_opening
to: "on"
from: "off"
conditions: []
actions:
- action: notify.mobile_app_pixel_9_pro_xl
metadata: {}
data:
data:
channel: door
message: "{{ trigger.name }} opened"
mode: single