very nice thank you!
is it possible to know which entity/sensor is having the low battery so i can send that as part of my notification message? i tried {{trigger.to_state.name}} but that didnt work.
I have previously used individual triggers per device so i had a notification like this: A device has low battery level 20% - {{trigger.to_state.name}}
EDIT: {{sensors}} works in the notification message to show which device has the low battery.
Did something change in HA? I am no longer seeing any of the devices in my notifications? My notification portion of the code.
alias: Batteries Warning
description: ""
use_blueprint:
path: dadge/low-battery-level-detection-notification-for-all-battery-sensors.yaml
input:
actions:
- data:
message: A battery in the sensor named {{sensors}} is reporting a low state.
action: notify.mobile_app_pixel_9_pro_xl
- data:
message: A battery in the sensor named {{sensors}} is reporting a low state.
action: notify.persistent_notification
last_seen: 1
time: "06:00:00"
threshold: 50
In trace I see:
Triggered by the time at November 5, 2025 at 4:35:00 AM
Test If template renders a value equal to true
Stopped because a condition failed at November 5, 2025 at 4:35:00 AM (runtime: 0.05 seconds)
I had changed the time to watch when it triggers. Not sure why it is failing now. I have used this blueprint for a long time.