Hi guys
I’m having some trouble getting my automation to dynamically return the name of the triggering entity for iOS notifications. I’ve tried “trigger.name” and “trigger.entity_id.attributes.friendly_name” but when I use anything other than what’s below, it seems to break the notification completely (it doesn’t send a notification to my iOS device)
Below is my automation yaml. Any help appreciated!
- id: '1601883264322'
alias: Camera Motion Notification
description: ''
trigger:
- platform: state
from: 'off'
to: 'on'
entity_id: binary_sensor.camera_1_motion
- platform: state
from: 'off'
to: 'on'
entity_id: binary_sensor.camera_2_motion
condition:
- condition: state
entity_id: person.jake
state: not_home
action:
- service: notify.mobile_app_jacobs_iphone
data:
title: Motion Detected
message: '{{ trigger.entity_id }} Detected'
mode: single