Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Home Assistant 201 - Creating and Using Templates

ResinChem Tech via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to create and use Template Entities in Home Assistant through this 20-minute tutorial that transforms your smart home customization capabilities. Master the Jinja2 templating language with clear explanations and practical examples that demonstrate how to create virtual sensors and entities by pulling data from existing devices. Explore three real-world implementations including unit conversion between measurement systems, creating descriptive sun position entities using attributes, and converting numeric wind bearings into cardinal directions like N, SW, and NE. Discover both UI editor and YAML methods for template creation, understand how to integrate templates into automations and scripts, and learn advanced techniques like defining local variables. Follow along with hands-on examples that show template entities in action on a sample dashboard, complete with step-by-step guidance for adding entity values and reviewing demo templates that you can adapt for your own home automation needs.

Syllabus

00:00 Intro
00:58 Templating Overview
01:33 Why Use Templates?
03:30 Getting Started with Templates and the Editor
05:08 Example 1: Unit Conversion
09:24 Example 2: Sun Position & Using an Attribute
13:13 Example 3: Wind Bearing to Cardinal Direction
14:48 Sample Dashboard using Template Entities
16:07 Adding Entity Values in a Template
17:22 Reviewing the Demo Template
18:13 Templates in Automations/Scripts
19:26 Using Variables & Wrap Up

Taught by

ResinChem Tech

Reviews

Start your review of Home Assistant 201 - Creating and Using Templates

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.