Welcome to the community.
Currently it will not do that. I donât know how may batteries you would like to monitor but maybe it is better to use the custom group if you only have a few. Then it will only report on your custom group.
Blacky
Welcome to the community.
Currently it will not do that. I donât know how may batteries you would like to monitor but maybe it is better to use the custom group if you only have a few. Then it will only report on your custom group.
Blacky
Thanks! Will give it a try!
I installed this Blueprint today and discovered a little bug thanks to âSpookâ. If no list integration is installed in HA, the following error occurs:
Workaround (which I donât like so much)
Install âShopping listâ or âTo-do listâ Integration
I donât use List integrations because I donât actively work in the Home Assistant, but it makes itself popular in the background with the automations etc.
Had the same. Spook look all the automation. Just add list integration and itâs OK. Or ignore it.
I am not sure what I am doing wrong.
here is the code i am using from your blueprint:
alias: Low Battery Notifications & Actions
description: ""
use_blueprint:
path: Blackshome/low-battery-notifications-and-actions.yaml
input:
include_easy_notify: enable_easy_okay_notify
include_persistent_notification: enable_persistent_okay_notification
notify_data:
- high_priority
include_custom_actions: enable_custom_actions
custom_actions:
- metadata: {}
data:
title: đȘ«Low Battery Notification
message: |-
âą {{all_sensors|replace(', ', '
âą ')}}
action: notify.persistent_notification
notify_device:
- 31d893c533db9c662f9e57514c218c20
- 5ddb8d3c54ea7565725c5b352d731368
sensor_selection: enable_all_sensors
battery_level: 100
custom_group_battery_level: 100
Iâve set the battery % to 100% since all my sensors are at 100 just to check the notifications.
On iphone i get "YES! All batteries are okay
On the UI i get 1 bullet point with nothing else.
I even created the following in configuration yaml to fix it but still nothing:
- sensor:
- name: "All Sensors"
unique_id: all_sensors
state: >
{% set sensor_list = [
{'name': 'Amazon Fire Tablet Battery Level', 'entity': 'sensor.amazon_fire_tablet_battery_level'},
{'name': 'Andreasâs iPhone Battery Level', 'entity': 'sensor.andreass_iphone_battery_level'},
{'name': 'Button for TV Light Battery', 'entity': 'sensor.button_for_tv_light_battery'},
{'name': 'Entrance Door Battery', 'entity': 'sensor.entrance_door_battery'},
{'name': 'Entrance Motion Battery', 'entity': 'sensor.entrance_motion_battery'},
{'name': 'Freezer Temperature Sensor Battery', 'entity': 'sensor.freezer_temperature_sensor_battery'},
{'name': 'MAR-LX1A Battery Level', 'entity': 'sensor.mar_lx1a_battery_level'},
{'name': 'Temperature and Humidity Sensor Battery', 'entity': 'sensor.temperature_and_humidity_sensor_battery'}
] %}
{% set output = [] %}
{% for sensor in sensor_list %}
{% set state = states(sensor.entity) %}
{% if state is not none %}
{% set output = output + [sensor.name ~ ': ' ~ state] %}
{% endif %}
{% endfor %}
{{ output | join(', ') if output | length > 0 else 'No sensor data available' }}
attributes:
amazon_fire_tablet_battery_level: "{{ states('sensor.amazon_fire_tablet_battery_level') }}"
andreass_iphone_battery_level: "{{ states('sensor.andreass_iphone_battery_level') }}"
button_for_tv_light_battery: "{{ states('sensor.button_for_tv_light_battery') }}"
entrance_door_battery: "{{ states('sensor.entrance_door_battery') }}"
entrance_motion_battery: "{{ states('sensor.entrance_motion_battery') }}"
freezer_temperature_sensor_battery: "{{ states('sensor.freezer_temperature_sensor_battery') }}"
mar_lx1a_battery_level: "{{ states('sensor.mar_lx1a_battery_level') }}"
temperature_and_humidity_sensor_battery: "{{ states('sensor.temperature_and_humidity_sensor_battery') }}
Can you help? I am trying to get a list of my sensors names in bullet form + their battery percent either when I manually run it through the blueprint or when the automation runs on its own
Thanks a lot!
For some reason it is working now but I am not sure if I should delete the configuration yaml code or not. Can you help please?
Yeah, it is not a bug it is just how Spook works. You can ether ignore it or add to-do. To-do is home assistant and is supported by them so it will always be there.
Blacky
You do not need to ad anything to your configuration yaml file so you can remove it and would be best to do so.
Looks like you got it working⊠nice one.
Blacky
Hi Ralph, I have tested your yaml and everything works. I will do a FAQ on it so you can see how it works.
EDIT: Below is a FAQ now.
Blacky
Note: The To-Do list option can only be added when you receive a notification on a device. It will not work with UI Notifications. Ensure you have a device and enable the option in Easy Notify as shown below.
Start by adding the Local To-Do integration. Click here to visit the official Home Assistant website for instructions, or simply click the Add Integration button below.
Once you have installed the Local To-Do integration, youâll need to create an integration entry.
Note - The default shopping list isnât compatible due to its lack of description capability. However, all other To-Do lists are fully supported.
Now that you have an Entry, you can use it in the blueprint. In the Action Button section of the blueprint, enable the To-Do List by selecting one of the top two options. I chose Add To-Do List Action Buttons + Confirmation Message because I prefer to receive a confirmation message.
The input highlighted by the red box is where Iâve selected my Maintenance List Entry. You should select the entry you created by following the steps above.
Next, edit the default text inputs to suit your preferences and language. Ensure that all inputs contain some text.
Now, when you receive a low battery notification on your device, youâll have the option to add the low batteries to your selected To-Do List Entry. The appearance of these options may vary depending on whether your device is iOS or AndroidâŠ
When you receive the message, tap and hold, then release to view the action buttons. If you tap quickly and it disappears, thatâs just how iOS functions, and unfortunately, I canât change it.
Below is an example of how it looks when I tap and hold, then release.
Since I opted for a confirmation message, I receive this message after selecting the Add To To-Do List! button.
If you tap on the confirmation message, it will take you directly to your chosen Entry To-Do List, displaying the entry from your action button. You can then edit it by tapping on the entry and setting a date if you wish.
This is what you see when you tap on the To-Do list heading.
Depending on your Android settings, this is what it looks like when you receive the notification.
or
Since I opted for a confirmation message, I receive this message after selecting the Add To To-Do List! button.
If you tap on the confirmation message, it will take you directly to your chosen Entry To-Do List, displaying the entry from your action button. You can then edit it by tapping on the entry and setting a date if you wish.
In To-Do List Integration in the UI.
Conclusion: I hope this provides a clearer understanding of how to use the To-Do list action buttons.
Enjoy
Back to FAQ: Click Here
Blacky
Hi Blacky,
hopefully you enjoyed your holidays!
Thank you for checking my config file! But unfortunately there were no to-doâs added to my to-do list, when I run the task manuallyâŠ
I created and configured my To-Do List as you described in the FAQ with the name in my YAML.
For the test I set the battery level to 50 % and then I click on run on right 3 dots in the blueprint.
Result: I received the notification on my iPhone and also the notifcation in HO but no entry in the To-Do ListâŠ
Whereâs my mistake?
Kind regards and thank you in advance,
Ralph
Yea it was a nice break.
Could you again provide us your yaml so I can check it and a screen shot of your to-do list in the UI like mine in the FAQ
Blacky
Hey Hoping someone can help me, Iâm still a little new to HA and Blueprints.
I have this low battery Blueprint working for most of my battery devices that have a battery entity. However I cannot get my abode sensors to provide a notification when they are low. The sensors have an attribute for âlow Batteryâ true/false but they are the only devices that do not provide a notification in the application
Is this supported? or is this User error?
Could you look at maybe take a screen shot of your abode battery in developer tools. See if it provides a state when the battery is low. I can see you have Battery low = true so we need to see what that is reporting to HA in developer tools. Also check to see what another sensor reports when Battery low = false. Form there we can help and worse case you can create another template sensor that will look at the state and then report the state the blueprint will need to be included in the notification.
I can walk you through how to do this but lets see a screen shot from within developer tools of your sensor entity. If you can give me one that Battery low = false and one that Battery low = true.
Blacky
@Blacky
Here are the two screenshots you requested.
Thanks again! Iâll have to do it in 2 posts as Iâm a new user and there is limits I guess
As expected⊠you will need to create a template binary sensor for your abode sensors. One template binary sensor for each sensor.
To create a Template binary sensor, follow these steps:
Next, provide a Name of your choice. The Device class is battery. You can also link this template to your device so it appears under that deviceâs details.
In the State template field, add the code below. This one is for your Bar Motion so you would change the entity ID (binary_sensor.bassment_kitchen) for the other sensors.
When you enter this one in you should see Low as the battery status because this one is true. Run the low battery blueprint automation again once done and you should see it in your notification.
{{ state_attr('binary_sensor.bassment_kitchen', 'battery_low') == 'true' }}
Let us know how you go.
Blacky
Thanks Iâll try this tonight and report back!
I was able to use your suggestion and it resolved my issue, thanks for your help!
Note: I did have to change the "== âtrueâ " to just "== true "
Thanks for letting us know⊠glad you got it all working now. I sure this post will help others and I may even do a FAQ for it.
Blacky