Uploaded September 2023 | Updated September 2026, 3 weeks ago
Master Home Assistant Temaplte and build your very own Home Assistant entities using state based templates. This video is long, but full of working examples from my own Home Assistant based smart home.
Links to things mentioned in the video:
YAML Shown in this video: github.com/thejeffreystone/SlackerLabVideoExamples/tree/main/2023-MasterTemplates_StateBasedEntities
HA Template Docs: home-assistant.io/integrations/template/#state-based-template-binary-sensors-buttons-images-numbers-selects-and-sensors
Sensor Device classes: home-assistant.io/integrations/sensor
Binary Sensor Device Classes: home-assistant.io/integrations/binary_sensor
Third Reality Smart Button: amzn.to/3PYfHbe
Chapters:
00:00 - Intro
01:13 - The New, Old Way of Building Template Entities
06:30 - What is a State Based Template Entity?
07:19 - Real Examples of State Based Templates in Home Assistant
08:10 - Example - We Have a Problem Sensor
11:18 - Example - Button Monitor Entity
15:28 - Example - Is tomorrow a school day?
18:39 - Example - Using a Media Player as a Occupancy Sensor
21:26 - Example - Dynamic Occupancy Sensors
27:59 - Example - Countdown Sensor to a Date
32:28 - Example - Find Batteries that need Changing
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
Use my Amazon Affiliate Links:
My Favorite Smart Home Tech: amzn.to/3QKFp3W
Gear I use my Smart Home: amzn.to/3R0kQ3F
Getting Started with Home Assistant: amzn.to/3PXayjw
Home Assistant Yellow Essential Gear: amzn.to/3LK4fgN
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
Other Affiliate Links:
Music - Epidemic Sound: epidemicsound.com/referral/o05z6m
Video Assets - LenoFx: http://i.refs.cc/CJXU6Da9?smile_ref=eyJzbWlsZV9zb3VyY2UiOiJzbWlsZV91aSIsInNtaWxlX21lZGl1bSI6IiIsInNtaWxlX2NhbXBhaWduIjoicmVmZXJyYWxfcHJvZ3JhbSIsInNtaWxlX2N1c3RvbWVyX2lkIjo3NzE2MjM1MTd9
Master Home Assistant Temaplte and build your very own Home Assistant entities using state based templates. This video is long, but full of working examples from my own Home Assistant based smart home.
Links to things mentioned in the video:
YAML Shown in this video: github.com/thejeffreystone/SlackerLabVideoExamples/tree/main/2023-MasterTemplates_StateBasedEntities
HA Template Docs: home-assistant.io/integrations/template/#state-based-template-binary-sensors-buttons-images-numbers-selects-and-sensors
Sensor Device classes: home-assistant.io/integrations/sensor
Binary Sensor Device Classes: home-assistant.io/integrations/binary_sensor
Third Reality Smart Button: amzn.to/3PYfHbe
Chapters:
00:00 - Intro
01:13 - The New, Old Way of Building Template Entities
06:30 - What is a State Based Template Entity?
07:19 - Real Examples of State Based Templates in Home Assistant
08:10 - Example - We Have a Problem Sensor
11:18 - Example - Button Monitor Entity
15:28 - Example - Is tomorrow a school day?
18:39 - Example - Using a Media Player as a Occupancy Sensor
21:26 - Example - Dynamic Occupancy Sensors
27:59 - Example - Countdown Sensor to a Date
32:28 - Example - Find Batteries that need Changing
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
Use my Amazon Affiliate Links:
My Favorite Smart Home Tech: amzn.to/3QKFp3W
Gear I use my Smart Home: amzn.to/3R0kQ3F
Getting Started with Home Assistant: amzn.to/3PXayjw
Home Assistant Yellow Essential Gear: amzn.to/3LK4fgN
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
Other Affiliate Links:
Music - Epidemic Sound: epidemicsound.com/referral/o05z6m
Video Assets - LenoFx: http://i.refs.cc/CJXU6Da9?smile_ref=eyJzbWlsZV9zb3VyY2UiOiJzbWlsZV91aSIsInNtaWxlX21lZGl1bSI6IiIsInNtaWxlX2NhbXBhaWduIjoicmVmZXJyYWxfcHJvZ3JhbSIsInNtaWxlX2N1c3RvbWVyX2lkIjo3NzE2MjM1MTd9










