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!
Links used in this video:
* Jinja documentation: [ Ссылка ]
* Material Design Icons: [ Ссылка ]
* How to install HACS in Home Assistant: [ Ссылка ]
The code used in this video can be downloaded at: [ Ссылка ]
(The code for the battery icon was not entirely correct, so I corrected it in the download file above 😊)
⭐ Read the blog version of this video on [ Ссылка ] ⭐
⭐⭐⭐
* Join this channel to get access to perks: 📺 [ Ссылка ]
* Please consider becoming my patron 🏅 at [ Ссылка ]
* Or please support me by buying me a ☕ at [ Ссылка ]
⭐⭐⭐
My Devices: [ Ссылка ]
Instagram: [ Ссылка ]
Twitter: [ Ссылка ]
Facebook: [ Ссылка ]
TikTok: [ Ссылка ]
Discord: [ Ссылка ]
Check my channel for more awesome Smart Home tutorials: [ Ссылка ]
If you got enthusiastic about Home Assistant, you can watch many more videos on this playlist: [ Ссылка ]
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
#homeassistant #smarthome #smarthomejunkie #homeautomation
![](https://s2.save4k.ru/pic/cdz32TLu_gw/maxresdefault.jpg)