YAML & Jinja course Episode 3: Conditionals & Loops (w/Examples)

preview_player
Показать описание
Here's episode three of this YAML and Jinja programming course! I am explaining everything about If-Then statements and For-loops. This video covers everything you need to know to get started with If-Then statements and For Loops in Jinja templates and YAML in Home Assistant.

Links referred to in this video:

⭐⭐⭐
⭐⭐⭐

Music by:

00:00:00 Introduction
00:00:51 If-Then Statements
00:05:37 For-Loops

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

Hey! Let me know what you think of this episode of the YAML and Jinja course! I'm curious!

SmartHomeJunkie
Автор

I replayed the first two episodes and started taking notes so I can refresh my memory the next time I'm writing a template. Can't stress enough how useful these courses have been! 💚

major_west
Автор

The pace of this video was much better. I did not have to stop it and rewind to make sure I got it. The 1st two videos I had to do that a lot.

davidxx
Автор

Duidelijke en weer leerrijke video. Dank je Ed.

waltervos
Автор

Very useful programming examples for newbies

Fadukes
Автор

Tnx!
Good video.
As an old sh script ninja, this feels right at home.

My-noname
Автор

Thanks Ed. Another step further. I'm already looking forward to the next video.

edwaaij
Автор

Another excellent tutorial. I think this one is finally allowing me to understand and use For Loops!

daveforrester
Автор

thank you for your service. help me a lot to setup my HA for 2 weeks ago !

shiPham
Автор

Excellent video Ed. I wish such a video existed 2 years ago, when I had to figure out all this. Even with basic knowledge of if-then-else and for-next statements, you still need to know how it works in ninja2 templating.Thanks.

BartVanLandschoot
Автор

🤣🤣 I love that you addressed the comment about speaking too fast. Your videos are awesome! I understand the comment, but I just use CC and rewind from time to time. But I did try the speed playback you suggested at .75, but then it sounds like you are drugged 🤣🤣. Also I love the transparency of your bloopers trying to pronounce words in English. I applaud you for doing these tutorials in English as a second language. Keep up the awesome work and look for some Kofi.

johnhubbard
Автор

Hey, I am looking every day for the next course, I hope you are going to follow-up your series as your tutorials are greatly done. A pleasure to watch

mikaellume
Автор

great job. Home assistant is more powerful than I thought

eduardocenteno
Автор

Thank you, amazingly good! Also; your set up is fantastic with the division into sections and all the information below with references etc. You lead me on the right track right from the start and I can test things in peace afterwards. My stress factor has also leveled off to a comfortable level when I listen. Thanks again for your commitment!!

RSweden
Автор

Thanks for the tutorial. I’m now going to check the previous episodes.

halko
Автор

Thank you, Ed. I learned new tricks today
The loop is incredibly powerful.

sevagjb
Автор

Nice video!

Incidentally, you can give additional parameters to range to specify the starting value if you don't want to start from 0

chrisdixon
Автор

Thanks great video Ed, the pace seemed much better on this lesson.
Now if its not a really stupid question, how do you use the Jinja templating code in a HA dashboard? I have used Jinja a bit in custom templates (e.g. calculate house load from solar panel output, import & export kWh, etc) and automations (checking whether today matches a helper entity), and am familiar with the dev template editor as you are using, but how do I put this template code onto a dashboard?
At the moment I have had to use a HACS custom HTML card, formatting the contents as a table, but its awful to code & debug like this and I figure there ought to be a native way of doing this. You can’t use template code in any of the entity cards and I don’t really want to create more helper entities just as an intermediary to displaying on a dashboard

geoffreycoan
Автор

We have been waiting for the continuation of this series for a while now.

edwaaij