One wy this could be improved is if multiple sensors could be added to the same one. I guess I can check and add in yaml. but it would have been easy peasy (for me) to just add more and more. Not sure about the code implications though. Im not a coder.
Not sure it is possible to add a list or it is beyond my knowledge so I created an automation for each entity that I check from the same blueprint. I have also noticed that depending on the device that I need the check for different battery levels, for example my Z-Wave smoke detectors audibly report low battery when they show 80% but my Z-Wave lock works down to about 40% so the flexibility is better in my case.
Thanks much⌠I use inexpensive Zigbee PIR motion sensors⌠if the battery dies completely, they lose their pairing, which is a royal pain to set up again. This way I can catch them before the battery dies, which is a huge help.
Does the App expose options for the notification (eg, persistent notification) for really important or critical battery level warnings? It would be AWESOME to have it so I canât swipe it away when it gets below a set percentage.
This is the first time me trying out blueprints and I have one issue. Maybe someone can help me out to understand where could be the problem.
I have chosen my Tradfri on/off switch as the entity when I was setting up automation:
Used entity: sensor.tradfri_on_off_switch_main_battery_level
Which has state: 34
And state attributes:
Then for the test, I executed the automation and nothing happened. I know that notifications work on my phone, as I have one notification sent when my HA restarts.
This is what I found out in the logs section:
Logger: homeassistant.components.automation.battery_level_notification_tradfri_on_off_switch
Source: components/automation/__init__.py:373
Integration: Automation ([documentation](https://www.home-assistant.io/integrations/automation), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+automation%22))
First occurred: 2:24:08 PM (1 occurrences)
Last logged: 2:24:08 PM
Error rendering variables: UndefinedError: 'trigger' is undefined
P.S. I wanted to upload 3x images to better describe the situation, but as a new user I was limited to 1, so I tried to quite some attributes of the entity and logs.
Yes, just a copy and paste and more could be added as long as the check is at the same percentage. Would be nice if one day that automations could have a multiple selection function for sources for the trigger like exists with target for actions.
I do not think it is the best solution.
Blueprints are invented to decrease a volume of code.
The blueprint for 10 devices is too large.
May be it is better to use ONE automation which covers all batteries, like this:
I do not think that we should implement it as a blueprint - I think it may be a usual automation.
I am also a newbie and it would be great to get an opinion of some expert.
Thatâs why you see the State Trigger used this way in a blueprint:
trigger:
- platform: state
entity_id: !input first_sensor
- platform: state
entity_id: !input second_sensor
- platform: state
entity_id: !input third_sensor
My personal opinion is that if someone is capable of composing an automation, the end-result will be more compact than an automation adapted for use as a blueprint. Future versions of the blueprint feature may change that but, for now, thatâs the situation.