What's new

News Headlines

Templates and Custom Sensors in Home Assistant - How To TUTORIAL

Description

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: https://jinja.palletsprojects.com/en/latest/templates/
* Material Design Icons: https://materialdesignicons.com/
* How to install HACS in Home Assistant: https://youtu.be/Q8Gj0LiklRE

The code used in this video can be downloaded at: https://ko-fi.com/s/eb3a98ab41

(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 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

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

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

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
Back
Top Bottom