Uploaded April 2023 | Updated September 2026, 3 weeks ago
Home Assistant Templates 101
Let's walk through everything you need to know to get started making templates. I explain the foundational blocks of templates, walk you through how to transform your home assistant data using math, and wrap it up giving to a look at some different ways you can use templates.
If you feel overwhelmed with #homeassistant templates, dont worry. After this video you will have everything you need to get started.
Code Examples:
Example Sensors:
github.com/thejeffreystone/homeassistant-config/blob/main/config/sensors/sensor.yaml
Jinja Examples from Temaplte Panel:
gist.github.com/thejeffreystone/54df3dec788df5170998416ac9a1ed47
Today Is / Month Is:
github.com/thejeffreystone/homeassistant-config/blob/34fd8aacbc744f41d78f44a071785fa21e41d605/config/sensors/house.yaml#L203
Jinja Resources:
Crash course for Beginners:
https://ultraconfig.com.au/blog/jinja2-a-crash-course-for-beginners/
Full Jinja Documentation (Use Search when needing syntax for functions):
jinja.palletsprojects.com/en/3.1.x
Video Chapters:
00:00 - Home Assistant Templates 101 - Intro
01:10 - Home Assistant Template Updates as of 2023.4
01:44 - What is Jinja?
03:07 - Template Basics: What do those Curly Braces mean?
06:57 - Home Assistant Entities in Templates
11:44 - Transform Home Assistant Entities using Templates
17:22 - Advance Templates - A Quick Look
23:00 - More to Come
Who am I?
My Name is Jeff. I am an DIY-er and Automator of boring things. And, of course, a huge Home Assistant fan. Oh, I also live in a house that tweets.
Follow Me:
Github - github.com/thejeffreystone
Twitter - twitter.com/thejeffreystone / twitter.com/slackerlabs
On the Web - slacker-labs.com
Discord - discord.gg/YkMKGHnahh
And if you like this video you could always fuel my automation habit -
Grab SlackerLabs Merch: https://slackerlabsmerch.square.site
One Time Donation:
Paypal: paypal.com/paypalme/SlackerLabs
Cash App: $slackerlabs
Buy me a coffee: buymeacoffee.com/icE6DeBut
.
Or use my Amazon affiliate link which provides a small commission on things you buy without additional cost to you - amazon.com/s/ref=as_li_ss_tl?k=Home+Automation&ref=nb_sb_noss_2&linkCode=ll2&tag=thejeffreysto-20&linkId=18622d75c4923c69c2b7488cec58ad5e&language=en_US
Video Gear:
Canon m50: amzn.to/3ftldPH
Desk Mic: amzn.to/3wkum40
Camera Mic: amzn.to/3tXk1cp
Newer 660: amzn.to/3fwwejd
Dazzne D50: amzn.to/3oGBK5y
Audio Interface: amzn.to/3u07chK
Gimble: amzn.to/3ouKAoe
Music - Epidemic Sound: epidemicsound.com/referral/o05z6m
Video Assets - LenoFx: http://i.refs.cc/CJXU6Da9?smile_ref=eyJzbWlsZV9zb3VyY2UiOiJzbWlsZV91aSIsInNtaWxlX21lZGl1bSI6IiIsInNtaWxlX2NhbXBhaWduIjoicmVmZXJyYWxfcHJvZ3JhbSIsInNtaWxlX2N1c3RvbWVyX2lkIjo3NzE2MjM1MTd9
Home Assistant Templates 101
Let's walk through everything you need to know to get started making templates. I explain the foundational blocks of templates, walk you through how to transform your home assistant data using math, and wrap it up giving to a look at some different ways you can use templates.
If you feel overwhelmed with #homeassistant templates, dont worry. After this video you will have everything you need to get started.
Code Examples:
Example Sensors:
github.com/thejeffreystone/homeassistant-config/blob/main/config/sensors/sensor.yaml
Jinja Examples from Temaplte Panel:
gist.github.com/thejeffreystone/54df3dec788df5170998416ac9a1ed47
Today Is / Month Is:
github.com/thejeffreystone/homeassistant-config/blob/34fd8aacbc744f41d78f44a071785fa21e41d605/config/sensors/house.yaml#L203
Jinja Resources:
Crash course for Beginners:
https://ultraconfig.com.au/blog/jinja2-a-crash-course-for-beginners/
Full Jinja Documentation (Use Search when needing syntax for functions):
jinja.palletsprojects.com/en/3.1.x
Video Chapters:
00:00 - Home Assistant Templates 101 - Intro
01:10 - Home Assistant Template Updates as of 2023.4
01:44 - What is Jinja?
03:07 - Template Basics: What do those Curly Braces mean?
06:57 - Home Assistant Entities in Templates
11:44 - Transform Home Assistant Entities using Templates
17:22 - Advance Templates - A Quick Look
23:00 - More to Come
Who am I?
My Name is Jeff. I am an DIY-er and Automator of boring things. And, of course, a huge Home Assistant fan. Oh, I also live in a house that tweets.
Follow Me:
Github - github.com/thejeffreystone
Twitter - twitter.com/thejeffreystone / twitter.com/slackerlabs
On the Web - slacker-labs.com
Discord - discord.gg/YkMKGHnahh
And if you like this video you could always fuel my automation habit -
Grab SlackerLabs Merch: https://slackerlabsmerch.square.site
One Time Donation:
Paypal: paypal.com/paypalme/SlackerLabs
Cash App: $slackerlabs
Buy me a coffee: buymeacoffee.com/icE6DeBut
.
Or use my Amazon affiliate link which provides a small commission on things you buy without additional cost to you - amazon.com/s/ref=as_li_ss_tl?k=Home+Automation&ref=nb_sb_noss_2&linkCode=ll2&tag=thejeffreysto-20&linkId=18622d75c4923c69c2b7488cec58ad5e&language=en_US
Video Gear:
Canon m50: amzn.to/3ftldPH
Desk Mic: amzn.to/3wkum40
Camera Mic: amzn.to/3tXk1cp
Newer 660: amzn.to/3fwwejd
Dazzne D50: amzn.to/3oGBK5y
Audio Interface: amzn.to/3u07chK
Gimble: amzn.to/3ouKAoe
Music - Epidemic Sound: epidemicsound.com/referral/o05z6m
Video Assets - LenoFx: http://i.refs.cc/CJXU6Da9?smile_ref=eyJzbWlsZV9zb3VyY2UiOiJzbWlsZV91aSIsInNtaWxlX21lZGl1bSI6IiIsInNtaWxlX2NhbXBhaWduIjoicmVmZXJyYWxfcHJvZ3JhbSIsInNtaWxlX2N1c3RvbWVyX2lkIjo3NzE2MjM1MTd9






![Build One Script to Rule Them All in home Assistant
Lets be real.
When you start automating the boring stuff in your home, you find that a lot of the scenarios you want to automate are very similar. In Fact, I would guess that you have a lot of scripts, scenes, and automations that touch the are almost identical except you change the brightness of a light or the media player you use.
If you are not careful you will end up with a Home Assistant configuration that is 15k lines....like mine.
In this video, I will show you how you can tame that web of slightly different automations, scripts, and scenes, and replace them with a single dynamic script that can be reused in all situations.
So if you are looking for a more streamline approach to building your automations, looking for ways to reduce the size of your config, or simply wanting to find ways to make your home smarter, stick around because we are going to build dynamic scripts using Parameters.
Here are the video chapters:
00:00 - Build Dynamic Scripts in Home Assistant - Intro
01:14 - What do you mean, Parameters?
01:55 - Build One Home Assistant Script to Rule Them All
06:54 - Use Parameters to makeHome Assistant Smarter
10:30 - Wrapping it Up
Links to things in the video:
Using Helpers in Home Assistant: https://youtu.be/JpC13mLuiQg
Who am I?
My Name is Jeff. I am an Automator of boring things and a huge Home Assistant fan. I also live in a house that tweets.
Follow Me:
Github - https://github.com/thejeffreystone
Twitter - https://twitter.com/thejeffreystone / https://twitter.com/slackerlabs
On the Web - https://slacker-labs.com/
And if you like this video you could always fuel my coffee/automation habit - https://www.buymeacoffee.com/icE6DeBut,
or use my Amazon affiliate link ( https://www.amazon.com/s/ref=as_li_ss_tl?k=Home+Automation&ref=nb_sb_noss_2&linkCode=ll2&tag=thejeffreysto-20&linkId=18622d75c4923c69c2b7488cec58ad5e&language=en_US) which helps support this content. The affiliate link provides a small commission on things you buy without additional cost to you.
If you want to follow my house on Twitter, you can at https://twitter.com/anchoragehouse2 but be warned....it can be snarky.
Home Assistant Gear:
Amazon Affiliate Links): http://a.co/cR4BZHP
Video Gear used to make this content (affiliate links):
Canon m50: https://amzn.to/39zkz1p
Mic: https://amzn.to/3r73dPd
Dazzne D50 (Key Light): https://amzn.to/3oGBK5y
Music - Epidemic Sound - For those wanting cool audio for their videos (Affiliate Links): [https://www.epidemicsound.com/referral/o05z6m/] Build One Script to Rule Them All in home Assistant](https://i.ytimg.com/vi/spTBUh9dG6M/mqdefault.jpg)



