Templates and Custom Sensors in Home Assistant - How To TUTORIAL
Published at : 18 Dec 2025
Templates and Custom Sensors are a more advanced feature in Home Assistant. With Templates and Custom Sensors you can format and convert data so that it looks exactly the way how you want it to look. Templates and Custom Sensors are really powerful in Home Assistant and will help you in tailoring Home Assistant to your specific needs. In this video, I will explain how to create Templates and Custom Sensors in Home Assistant so that you can set this up yourself!
00:00 Introduction 00:57 Use Cases 02:24 Getting to know the Developer Tools in Home Assistant 04:33 How to retrieve the state and attributes of a motion sensor 08:01 Light Counter Template 09:45 Battery Status Template 13:59 How to create a custom sensor in Home Assistant 19:45 How to use a custom sensor in a Home Assistant dashboard 23:46 Add a custom light counter sensor to a Home Assistant dashboard 26:02 Add a battery status custom sensor to a Home Assistant dashboard 29:50 Outtro