HOW TO create your own Low Battery Warning Sensor In Home Assistant - TUTORIAL

Published at : 23 Dec 2025

In this video, I will show you how you can create your own LOW BATTERY WARNING SENSOR. I think it doesn’t really make sense to show all the batteries in your setup and what the charge value is of each battery. Basically, I am only interested in those batteries that need to be replaced. So, in this tutorial, I will show you how to show a list of batteries on your dashboard that need to be replaced in your house using a custom sensor template.

Links used in this video:
* Templates & Custom Sensors TUTORIAL: https://youtu.be/cdz32TLu_gw
* UUID generator: https://www.uuidgenerator.net/
* Code used in this video can be downloaded here: https://ko-fi.com/s/d659f895fe

Did you notice the awesome dashboard that I was using? This is Dwains Dashboard and you can set that up yourself too using this video: https://youtu.be/6hemFbrJuk8

⭐ Read the blog version of this video on https://www.smarthomejunkie.net

⭐⭐⭐
* Join this channel to get access to perks: 📺 https://www.youtube.com/c/smarthomejunkie/join
* Please consider becoming my patron 🏅 at https://www.patreon.com/join/smarthomejunkie
* Or please support me by buying me a ☕ at https://ko-fi.com/smarthomejunkie/
⭐⭐⭐

My Devices: https://github.com/smarthomejunkie/MyDevices

Instagram: https://www.instagram.com/smarthomejunkie/
Twitter: https://www.twitter.com/smarth0mejunkie
Facebook: https://www.facebook.com/smarthomejunkie/
TikTok: https://www.tiktok.com/@smarthomejunkie
Discord: https://discord.gg/at8v5hW

If you got enthusiastic about Home Assistant, you can watch many more videos in this playlist: https://www.youtube.com/playlist?list=PLKuGrHcHLKMi6CiV8YQ3oigZMkxyLJKmE

Check my channel for more awesome Smart Home tutorials: https://www.youtube.com/c/SmartHomeJunkie

00:00 Introduction
01:17 Preview of the end result of this tutorial
02:33 Creating the Battery Threshold Helper
03:47 Check the state and attributes of a battery entity
04:45 Create the custom template for the battery list
12:41 Add the battery list to a dashboard
17:20 One more thing: Unique ID explained

#homeassistant #homeautomation #iot #smarthome #batteries #battery #diy