I’ve probably done something obvious wrong as I’m new to all this but I’m seeing this in the logs:
Logger: homeassistant.components.automation
Source: components/automation/__init__.py:517
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: January 17, 2021, 4:50:53 PM (26 occurrences)
Last logged: 4:21:09 PM
* Blueprint Low battery level detection & notification for all battery sensors generated invalid automation with inputs OrderedDict([('day', '0'), ('actions', [OrderedDict([('service', 'Not'), ('data', OrderedDict([('Message', 'Battery low {{sensor}}')]))])])]): Service Not does not match format <domain>.<name> for dictionary value @ data['action'][0]['default'][0]['service']. Got None
* Blueprint Low battery level detection & notification for all battery sensors generated invalid automation with inputs OrderedDict([('day', '0'), ('actions', [OrderedDict([('service', 'Not'), ('data', OrderedDict([('message', 'Battery low Now')]))])])]): Service Not does not match format <domain>.<name> for dictionary value @ data['action'][0]['default'][0]['service']. Got None
I can execute the automation and I get my pushover alert so presume it’s not that part?
Thanks!
EDIT: I went through my whole automations file and found out there were two other entries for this automation!? So I deleted those and now all is OK. I only normally use the UI so hadn’t noticed them.
Hello everyone. It would be interesting if you do not use time as a trigger, but use the lowest battery level of possible sensors. So that the notification does not come every day at the specified time or on certain days of the week, but only when the battery level on the sensors reaches a critical
@e-raser that’s why it says only entities are supported (green) and you added devices (blue). You need to expand the devices to entities using the <> button.
i am trying to use your blueprint for batteries to satisfy my use case of multiple thermostats that control the water flowing to the radiators. the pump that sends water to the radiators is currently managed by a central thermostat not connected to a radiator,
i want to measure the heating level of each thermostat. if any heating level is above a threshold the pump should be on. if all the heating levels are below the threshold, the pump should be off.
i will control the heating level of each thermostat separately, including open window detection.
clearly this is similar to the battery detection blueprint you put together. i have used you blueprint to create automation to warn me when the radiator batteries are low.
So I don’t know if there is a bug somewhere or I’m just incompetent (the latter is most likely) but I cannot make this work. Every time I try to create an automation it just does…nothing. I fill in the time/action/etc then hit save. It seems to accept all my inputs but then doesn’t show up on the automations tab and doesn’t actually fire. I’m sure I’m missing something stupid but don’t even know where to start since this is the first blueprint I’ve tried to use. I haven’t a clue where to even start figuring out what the issue is. Any assistance would be appreciated, thanks!
Bummer… Also, the author has not responded within at least a week on the error HA is generating on this Blueprint.
IMHO - Blueprints need to be proofed out before posting. And when posted, maintain their blueprints as HA does make enhancements breaking some settings, which is called out during release.
Blueprint is working fine here (just got a notification yesterday) and I am regularly updating HA to the latest version. I just did the 2021.3.4 update and created a new automation with the blueprint. No log entries and triggering manually works fine.
If you see an issue like blueprint “generated invalid automation” it could be something in your actions could be wrong.
In the past there seemed to be some HA related issue wher HA put broken blueprint related sections in automations.yaml I would check your file and maybe remove all automation section related to the blueprint and then try again.
Hello @Sbyx !
Nice Blueprint, this is my first one. Added the Telegram notify and it works great.
I’ve a Feature Request, which should not be so difficult:
This automation is based on a periodic check (once a week or once a day) looking for the batterydevice_class.
Would be possible to implement the same check, with a faster frequence (i.e. every two hours) for check the devices which has a linkquality attribute? Maybe it works on battery as well. My goal is to check if those devices are working or not. I’ve different ZigBee devices and the problem is, they could not be paired correctly and so I’ve no idea if they are working or not. So looking for the last_update status could trigger a notification.
Possible to implement?
Thanks!
Simon
I really like the design of this blueprint. Unfortunately just like @WedHumpDay I was getting errors when trying to actually generate the automation (same errors in fact).
While I did that I did some formatting cleanup and then ran it through yamllint which highlighted some problems with the code. Applying fixes has given me a cleanly installing and working automation.
Outstanding @tykeal !!!
Just tested and works perfectly, no error messages.
The only downside I see with all alerting systems, if there are 2+ sensors then the alert messages places them one behind the other. Ideally, each device should be on it’s own line. Not complaining, this is working, so kudos. If more than one sensor goes off its easy enough to check the Battery tab…