Hello,
Trying to make an automation that will return the friendly name of a triggered sensor but I’m a little confused on the template.
This does not appear to be the answer. I get ,“None has triggered”
- action:
- data_template:
message: '{{ states[trigger.entity_id].name }} has triggered'
title: Occupancy Sensor
service: notify.ios_devansiphone7
alias: Occupancy Sensors
condition: []
id: '1510542576177'
trigger:
- entity_id: binary_sensor.basement, binary_sensor.basement_double_doors, binary_sensor.basement_slider,
binary_sensor.evas_room_occupancy, binary_sensor.family_room, binary_sensor.front_door,
binary_sensor.front_rooms, binary_sensor.garage_door, binary_sensor.garage_side_door,
binary_sensor.guest_door, binary_sensor.guest_room, binary_sensor.kitchen_slider,
binary_sensor.side_door, binary_sensor.upstairs_occupancy
from: 'off'
platform: state
to: 'on'
I