Hello,
I’m trying to push my understanding of Home Assistant automations and I have a situation I would like to try and achieve, but not sure if/how it’s possible. Below is a current automation I have setup that is working for my Blink camera.
- id: '10000000300'
alias: Motion Test
initial_state: true
hide_entity: true
trigger:
platform: state
entity_id: binary_sensor.blink_back_yard_motion_detected
to: 'on'
condition: []
action:
service: notify.ios_phone_x
data:
title: 'Motion Detected'
message: 'Camera has detected motion'
I would like to modify this so that it will work with all my Blink cameras and, even better, dynamically alert me to which camera detected motion.
So, for example (and I know the code below is NOT correct, but I’m using it to illustrate what I’m trying to do)
- id: '10000000300'
alias: Motion Test
initial_state: true
hide_entity: true
trigger:
platform: state
entity_id: binary_sensor.blink_cameras
to: 'on'
condition: []
action:
service: notify.ios_phone_x
data:
title: 'Motion Detected'
message: 'Camera {binary_sensor. entity_id} has detected motion'
Is it possible to dynamically change to message of this notification to include the specific sensor that captured the motion from a group of sensors?