Тёмный

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

Smart Home Junkie
Подписаться 58 тыс.
Просмотров 6 тыс.
50% 1

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.
⭐ You can download all the code that I created for the course at: ko-fi.com/s/84ab3c5875⭐
Links referred to in this video:
* For loop variables: jinja.palletsprojects.com/en/...
* The YAML and Jinja Course Playlist: • YAML & JINJA Templatin...
Blog version: www.smarthomejunkie.net/yaml-...
⭐⭐⭐
* Join this channel to get access to perks: 📺 / smarthomejunkie
* Please consider becoming my patron 🏅 at / smarthomejunkie
* Or please support me by buying me a ☕ at ko-fi.com/smarthomejunkie/
* Or sponsor me through PayPal at paypal.me/smarthomejunkie
⭐⭐⭐
⭐ If you want me to create a review of your product, please visit this page for information and rates: www.smarthomejunkie.net/revie... ⭐
My Devices: github.com/smarthomejunkie/My...
Instagram: / smarthomejunkie
X: www.x.com/smarth0mejunkie
Mastodon: mastodon.world/@smarthomejunkie
Facebook: / smarthomejunkie
TikTok: / smarthomejunkie
Discord: / discord
Music by:
* 2TECH-AUDIO: 2tech-audio.bandcamp.com/
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

Хобби

Опубликовано:

 

5 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 50   
@SmartHomeJunkie
@SmartHomeJunkie 2 месяца назад
Hey! Let me know what you think of this episode of the YAML and Jinja course! I'm curious!
@oscargraveland
@oscargraveland 2 месяца назад
Must be a Dutch thing: 'e' or 'i' 😁
@SmartHomeJunkie
@SmartHomeJunkie 2 месяца назад
@@oscargraveland theglobalmontessorinetwork.org/resource/primary/pronunciation-i-english/
@chrschra
@chrschra 25 дней назад
Very good! Just started with a python developer background with home assistant and I'm asking myself if I should learn node red instead of ha automation or stay in ha until I experience it's limits. How do you think about it? In the end I'd like to log a lot of stuff into influxdb, read it and develop complex actions. Can I skip node red and do all of this with yaml and jinja?
@SmartHomeJunkie
@SmartHomeJunkie 25 дней назад
@@chrschra Let's just say that I never needed Node Red.
@major_west
@major_west 2 месяца назад
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! 💚
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
Thank you for sharing your experience! It's fantastic to know that the courses are making a difference for you.
@waltervos8537
@waltervos8537 Месяц назад
Duidelijke en weer leerrijke video. Dank je Ed.
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
Graag gedaan!
@Fadukes
@Fadukes Месяц назад
Very useful programming examples for newbies
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
Programming can be tricky, but with the right examples, even newbies can become coding pros!
@R2Sweden
@R2Sweden Месяц назад
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!!
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
Looks like I've become your stress-relief guru! Happy to help!
@My-noname
@My-noname Месяц назад
Tnx! Good video. As an old sh script ninja, this feels right at home.
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
Looks like the sh script ninja approves! 😄
@edwaaij4752
@edwaaij4752 Месяц назад
Thanks Ed. Another step further. I'm already looking forward to the next video.
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
It's already finished, but it will take sooner time before I'm going to publish it because others videos come first in the queue.
@shiPham0705
@shiPham0705 2 месяца назад
thank you for your service. help me a lot to setup my HA for 2 weeks ago !
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
Thank you for your kind words. I'm grateful for the opportunity to assist you with your HA setup.
@BartVanLandschoot
@BartVanLandschoot 2 месяца назад
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.
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
Looks like I missed my chance to be your personal coding guru 2 years ago! Better late than never, right?
@daveforrester61
@daveforrester61 2 месяца назад
Another excellent tutorial. I think this one is finally allowing me to understand and use For Loops!
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
Awesome! Keep practicing and you'll master for loops in no time!
@mikaellume4657
@mikaellume4657 Месяц назад
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
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
The next episode is already live for my patrons and sponsors 😉
@donstephens6279
@donstephens6279 2 месяца назад
Loving these. Great job.
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
Thanks a bunch for the positive feedback! It motivates me to keep creating more content.
@wwolfram33
@wwolfram33 2 месяца назад
Thanks again for these!
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
You're welcome, don't forget to hit that like button for more!
@R2Sweden
@R2Sweden Месяц назад
Thank you Ed, exelent tutorial!
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
Your kind words mean a lot, thank you for your support!
@david18xx33
@david18xx33 2 месяца назад
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.
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
Looks like the third time's the charm! No more rewinding for you!
@erikwagen1480
@erikwagen1480 2 месяца назад
Great stuff!
@johnhubbard3879
@johnhubbard3879 Месяц назад
🤣🤣 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.
@SmartHomeJunkie
@SmartHomeJunkie 29 дней назад
Thank you so much for your support 🙏🏻
@sevagjb
@sevagjb 2 месяца назад
Thank you, Ed. I learned new tricks today The loop is incredibly powerful.
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
That's awesome! Keep exploring and learning new things!
@halko1
@halko1 2 месяца назад
Thanks for the tutorial. I’m now going to check the previous episodes.
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
Get ready to binge-watch all the previous episodes like a pro! Grab some popcorn and enjoy the show.
@geoffreycoan
@geoffreycoan 2 месяца назад
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
@chrisdixon5241
@chrisdixon5241 2 месяца назад
Nice video! Incidentally, you can give additional parameters to range to specify the starting value if you don't want to start from 0
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
Yes, that is correct!
@eduardocenteno3769
@eduardocenteno3769 2 месяца назад
great job. Home assistant is more powerful than I thought
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
Home Assistant might just take over the world one day with its power! Watch out, Skynet!
@joncentel4932
@joncentel4932 2 месяца назад
👍
@frankphilips5498
@frankphilips5498 2 месяца назад
Nice job
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
Thank you so much!
@edwaaij4752
@edwaaij4752 Месяц назад
We have been waiting for the continuation of this series for a while now.
@SmartHomeJunkie
@SmartHomeJunkie Месяц назад
Be patient... There are already two new episodes recorded and waiting to be published.
Далее
YAML & Jinja Course Episode 4: Scoping and Literals!
9:30
Впервые дал другу машину…
00:57
Can We Save Goku In 5 SECONDS⁉️😰 #dbz #goku
00:15
Two GPT-4os interacting and singing
5:55
Просмотров 2,8 млн
The BEST Dashboard I’ve EVER Seen! Smart Home Tour
13:06
HTML Templates Instead Of Reactivity | Prime Reacts
12:42
Has Generative AI Already Peaked? - Computerphile
12:48
RAG from the Ground Up with Python and Ollama
15:32
Просмотров 25 тыс.
Why Home Assistant is the FUTURE of Smart Homes
11:31
Просмотров 157 тыс.
Tiny motor, big power
0:25
Просмотров 942 тыс.
#shoot
1:00
Просмотров 11 млн