YAML & Jinja Templating Course Episode 1: Expressions, Statements, Comments, Variables, and Filters
Learn the basics of Jinja templating in this programming course! I am explaining everything about expressions, statements, comments, variables, and filters. This video covers everything you need to know to get started with 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:
* Jinja Template Designer Documentation: jinja.palletsprojects.com/en/...
* Jinja Built-in filters: jinja.palletsprojects.com/en/...
* The YAML and Jinja Course Playlist: • YAML & JINJA Templatin...
Blog version: www.smarthomejunkie.net/jinja...
⭐⭐⭐
* 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
00:00:00 Introduction
00:01:58 Expressions
00:02:25 Statements
00:00:00 Comments
00:13:08 Variables
00:05:13 Filters
#homeassistant #jinja #yaml #templates #templating #programming
Пікірлер: 84
What do you think about YAML and Jinja? Do you rather want to do everything using the UI of Home Assistant, or do you like to program your own advanced templates? Let me know in the comments!
@Tafmie
3 ай бұрын
Thank you very much Ed! This is a series I have been waiting for for a long time. I'm already looking forward to the next episode!
@jp_baril
3 ай бұрын
I want to do everything using the UI, but being able to at least understand existing yaml/jinja code is always useful.
@hi-ccowboy7983
3 ай бұрын
I prefer YAML and Jinja. The UI is good, but I find it easier to visualize what I’m doing by looking at the code.
Excellent! It’s amazing how rare it is to find simple explanations for this stuff
This series is going to be a lot of help. Thanks Ed
Looking forward to the rest of the series!
Hi Ed, great video. I’ve been looking for something like this for a while. Even just explaining the difference between jinja and YAML is a big help. Thanks Eddie
Thank you for this type of content, as I could not find tutorials with explanations like this. I will begin my study of these episodes this weekend!
@SmartHomeJunkie
3 ай бұрын
I'm glad you found the content helpful! Enjoy your weekend study session!
Another top notch video. Looking forward to this series!
@SmartHomeJunkie
3 ай бұрын
Thanks!
Hier was ik al een tijdje naar opzoek. Eindelijk Geweldig!
Eindelijk voor mij meer duidelijkheid over het gebruik van Yaml en Jinja. Hier zat ik op te wachten. Dank je voor de heldere uitleg.
@SmartHomeJunkie
3 ай бұрын
Dank je wel voor je fijne reactie!
I am sure many HA users will love to follow your series - including me. Great work. These tutorials will certainly increase the reach of your channel!
@SmartHomeJunkie
3 ай бұрын
Thank you so much for your support! I'm glad you're enjoying the tutorials.
Excellent! short and useful introductory content
Thanks Ed This is great content which will help a great many, linking back now!
This is great! Really looking forward to the rest of this course!
Thanks a lot for this ! Using the code is indeed giving more flexibility than the UI, if we need more advanced features to be developped !
I’m looking forward to this although I will go through each one slowly as I am a complete novice to this. Thanks Ed👍🏻
I've been struggling with YAML and templates. This is greatly appreciated!
Great content, as always! The Jinja documentation is very comprehensive, however, it's a much better reference than it is a tutorial. I'm a developer by trade and still struggled with it. Your explanations of the basics opened up a whole new understanding for me, which will allow me to take advantage of the excellent reference material on the Jinja site!
Well done! Thank you.
Great job!! so clear. and super helpful. UI is great for most things, but some creative out of the box things require programming!
@SmartHomeJunkie
3 ай бұрын
I appreciate your positive feedback! It means a lot to me.
Hello, just wanted to tell you that I love your channel, you do a great job explaining everything we need to make our own Home Assistant setup. I hope someday you'll reach the million subscribers you deserve !
@SmartHomeJunkie
3 ай бұрын
Thank you so much for your kind words! ❤️
Thanks for the Home Assistant YAML / Jinja Tutorial series!
@SmartHomeJunkie
2 ай бұрын
I'm glad you found the tutorial series helpful!
This is exactly what was looking for. Excellent job, Ed! Thank you so much for that!
@SmartHomeJunkie
2 ай бұрын
Thanks! I'll make sure to keep up the good work to meet your high expectations!
Wow, that is awesome! Thanks Ed.
Looking forward to it. Please go deep :)
Thanks so much for this. This is great content! Can't wait for more
Thanks Ed, looking forward to your clear explanations.
Grate job. Waiting for next one.
Great video Ed, Cant wait for the rest in the series
Great video. Thank you.
Great vid!
Thank you very much and very important and also allays concerns for new HA users.
@SmartHomeJunkie
2 ай бұрын
Thank you for your kind words, they mean a lot to me!
Nice! It's very useful!
I'm not super comfortable with YAML or Jinja so I'm looking forward to these. Thanks Ed!
The series we're waiting for
Awesome. Thanks
Just what I needed! Super thanks!
@SmartHomeJunkie
3 ай бұрын
Thanks for your support!
At last, i've been looking for a tutorial about this.
👍👍👍 sounds good 👍👍
I love these tutorial type videos. I often use someone elses JINJA for what it does, without actually understanding how it does it. This for example: state: "{{ min([float(states('sensor.solaredge_m1_ac_power'), 0), 0]) | abs() }}" Hopefully you'll go down to the level I need to understand what this is doing to my sensor value, then I can replicate it and understand it. Thanks.
Super useful. Thanks ❤
@SmartHomeJunkie
3 ай бұрын
Thank you for your kind words
Thanks so much Ed for the simple explanations, I'm just getting into writing some custom code...without quite understanding what it is I'm writing. Trying to do some neat calculations around my energy consumption. This first video has already given me some confidence to keep going with it. Really looking forward to the rest of the series! Hoping you might go into calculations in some depth?
@SmartHomeJunkie
3 ай бұрын
Yeah, that will be covered too.
Brilliant..
Great video Ed! Love it, can't wait until next video. After the hole course maybe I can leave TheFes alone 🙂
@TheFes
3 ай бұрын
Always happy to help
Looks to be a really useful course Ed. I find Jinja and the differences between {{ and {% quite hard to understand and it usually takes several attempts before I can get my code to work!
Great educatives videos as usual. Do you plan for an episode about how to deal with Date and Time in Jinja? Cheers
@SmartHomeJunkie
3 ай бұрын
Yes sure!
Seems very hard 😂 I cant get the hang of templates!
This will help a lot Ed, would be great if you could also touch upon calculating with values ( adding or subtracting, …) further a great video as always.
@SmartHomeJunkie
3 ай бұрын
That will be absolutely covered!
Is there a way to get the embed code of a live streaming rtsp ip cam running in picture glass?
Very useful thanks. I did find the pace a bit fast throughout. You need time to listen to what you are saying and also take in what’s being shown on screen. Nice production, great content as always though 😊
@SmartHomeJunkie
3 ай бұрын
Thanks. Did you know that you can slow down the video in KZread? There's an option in the settings of the video.
Top Ed
great initiative. Please slow down a bit and please do not use dark mode, the code examples are hardly readable. Looking forward to the next episode.
@SmartHomeJunkie
3 ай бұрын
Thanks. You can use the pause button or set playback to a slower speed. I will still use dark mode. Sorry. 🙃
Take it one step further and show the use in node red please.
@SmartHomeJunkie
3 ай бұрын
Sorry, I don't do Node Red
Thx for the video. I am also having a hard time seeing the code. Could you maybe zoom in more?
@SmartHomeJunkie
3 ай бұрын
On what device are you watching this? It should be very clear on a desktop PC. These tutorials are not meant to watch on mobile devices because you will create templates on a desktop PC anyway.
@scottwood646
3 ай бұрын
@@SmartHomeJunkie 70 inch screen in my living room mainly sitting 12 feet away. Looking at it in my office on my 32 inch monitor on my PC is not much better. For example, when you talked about adding comments, the text is not much different from the dark background. I have seen other videos where they zoom in a lot more on the text as they talk about it. That helps. to my eyes, the dark background is harder to see the text too. Thx again for the videos. I have watched you for a while now and enjoy your videos a lot.
YAML means 'YAML Ain't Markup Language'. It's a recursive acronym
@SmartHomeJunkie
3 ай бұрын
It depends on whom you ask 🤣
@rolandboni8057
3 ай бұрын
@@SmartHomeJunkieCheck the official yaml homepage
@rolandboni8057
3 ай бұрын
@@SmartHomeJunkie The official homepage of yaml says something different
@SmartHomeJunkie
3 ай бұрын
@@rolandboni8057 I used this source, but don't take it too seriously: www.redhat.com/en/topics/automation/what-is-yaml#
@rolandboni8057
3 ай бұрын
@@SmartHomeJunkie neither do I 😎