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
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.
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.
How to Use the To-Do Option Action Buttons: Follow these steps:
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.
Navigate to Settings > Devices & Services > Integrations.
Click on the Local To-Do integration.
Select Add Entry and choose a name for your entry. For example, I named mine Blueprints and Maintenance List, as shown below. This will be the To-Do list where you can add your tasks.
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…
iOS
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.
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.
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…
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
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.
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:
Navigate to Settings > Device & Services > Helpers tab at the top.
Click the Create helper button.
Select Template and then choose Template a binary sensor.
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.