With all the various sensors in the house, my lazy behind did not want to check the battery level on each one of them. Time to automate that as well!

I wrote a script which polls all the devices once a day, and if anyone’s battery is below 15% it will let me know which devices need to be changed. This way, when I look at my dashboard (shameless plug for the next post), I can see which devices they are.

It took some time writing this one up but effectively if all is well the image below shows that all batteries are good and what the lowest one is.

Luckily my lowest is 22%, so I can slack off and do nothing yet. 😀