Thank you so much for this updated blueprint… i had to scroll down and explore this entire thread to find your improvements!
2 requests for you:
Remove the words “Battery level” or “Battery’ (any casing) from the sensor name. This avoids sensor names like “Basement Multisensor Battery Level” when “Basement Multisensor” is better and more legible. Perhaps ideal way is to add a configurable field for wildcards to be removed?
I have a bunch of devices where a binary sensor for “Low battery level” is also added. Useful for some situations in automations, but for these messages/notifications, it is redundant to the main battery level for the same device. E.g. I have “Basement Multisensor Battery Level” and “Basement Multisensor Low Battery Level” appearing. I know there is an exclude entities features but it requires me to pick entities one by one. is it possible to add a wildcard filter?
I was able to add a condition {{ sensors != '' }} to check if the sensors was an empty string.
Not sure why the condition in the blueprint doesn’t work as it checks the same thing.
This warning is normal. Do you run an automation without your newly added condition?
Then sensors will be replaced with devices matching your defined treshhold.
@Sbyx I just wanted so say thankyou, this is a great blueprint!
I couldn’t find any great way to get notified when a Zigbee/ZWave device has dropped off the network entirely - and it was even dangerous, e.g if I didn’t know my water-leak-sensor had dropped off the network.
So, I have borrowed (very) heavily from your code here, just making a couple of modifications, and make a new blueprint to notify once a day with a list of any devices that have gone offline.
It’s my first ever time making a blueprint, and there was no way I could have done it without your code. So, thank you!
Is there a way to add a custom attribute to the notification message? I have a battery_type attribute added for my battery sensors. Would be nice to see something like Low battery warning for: bathroom temperature battery (15% CR2032)
That would also interest me.
have the same problem. For me it is even the case that 3.0V corresponds to 100% and 2.1V to 0% since the actuators already have 2.1V low bat.
Maybe a stupid question, but when I manually ran the script, then I did get a notification (without the sensor name in it because all batteries are full).
But isn’t it supposed to only send the notification when the threshold really is below 20% or is manual running supposed to send the notification anyway?
So the solution to my problem, for Homematic IP battery devices, is a separate value_template sensor for each device that converts the volts into %. So it is possible to show the sensors in a battery map.
Bit off topic.I find this automation so useful thanks for developing it!
Is it possible to create a blueprint like this: finds automatically DW Sensors and informs when on ore more are open for a certain time?
I’ve tweaked this template to provide the friendly device name for any “low battery” binary sensor or “measurement” sensor. This means that you won’t see “SensorName Battery Level” names being returned in the notification if there is a valid device. If an entity has no device, then it should still provide a friendly-ish name:
Now, in the {{names}} field I get all the names of batteries that are below the threshold.
It would be nice to have something like
name1 (n1%), name2 (n1%), …