I’ve a simple automation that sends a notification to my mobile when a PIR sensor battery is low, is there a way of altering this so the message indicates which sensor / entityID triggers the automation? (There are multiple sensors I just cut a load out below to shorten the code)
Appreciate I could add a seperate automation for each device, but there has to be a more efficient way. Thanks.
alias: Alarm Device Battery Low
description: ""
triggers:
- entity_id:
- binary_sensor.visonic_z01
to: "0"
attribute: battery_level
trigger: state
- entity_id:
- binary_sensor.visonic_z02
attribute: battery_level
to: "0"
trigger: state
conditions: []
actions:
- action: notify.mobile_app_s25
data:
message: Alarm PIR battery low
mode: single