YAML & Jinja course Episode 5: Calculations and Date and Time

preview_player
Показать описание
Here's episode five of this YAML and Jinja programming course! In this episode of our Jinja and YAML course, we'll cover calculations and date and time functions. Learn how Jinja works and how to use it in Home Assistant with this tutorial!

Links referred to in this video:

⭐⭐⭐
⭐⭐⭐

Music by:

00:00:00 Introduction
00:00:34 Calculations
00:01:26 Add
00:01:39 Subtract
00:01:59 Divide
00:02:26 Remainder
00:02:56 Multiply
00:03:20 Power
00:03:40 NOT
00:04:01 Calculation example in Home Assistant
00:05:17 Date & Time
00:05:25 NOW
00:05:29 Formatting Dates and Times
00:06:10 retrieving individual days, months, years, hours, minutes, seconds
00:07:03 UTCNOW
00:07:18 Calculate with Date & Time
00:07:33 Time_since
00:08:36 Time_until
00:09:08 Timedelta
00:09:36 As_timedelta
00:10:10 Timestamps
00:12:32 Bloopers

#homeassistant #jinja #yaml #templates #templating #programming #calculations #date #time #tutorial
Рекомендации по теме
Комментарии
Автор

Enjoying these snippets of clarity. Having used all the functions, but not really learnt them.
These videos help to solidify the knowledge.

clairerovic
Автор

Great topic and very comprehensive. Thanks for taking the time to provide this!

major_west
Автор

What a fantastic series of videos. I really learn something from this. I really hope you stick with this series for a long time.

edwaaij
Автор

Another great episode (well worth my membership)!!! I love this series, as I always find at least a couple things I didn't know (or haven't used yet). This time it was multiplying strings and the time_since function, which will now replace a large section of bulky code I previously had (which also calculated plural/singular, which time_since does for me). I would also be interested in learning more about Jinja macros (using them as function calls vs a script with response variable).

ChillnCross
Автор

Thanks for this informative video. I have a question. How can take the formatted time to update a text value? I want to update text field when the sensor got triggered which I want to show in dashboard. Can you share some options please?

tamildesan
Автор

Hello sir, I will really appreciate it if you can show me how to integrate livestream into home assistant with this camera, Morecam MIPC Security Cameras Outdoor, 360° View PTZ 2.4G WiFi Cameras for Home Security with Mobile App, Surveillance Camera Outside with Night Vision IP66 Compatible with Alexa Motion Detector - Model 844

oj