No video

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

  • @SmartHomeJunkie
    @SmartHomeJunkie4 ай бұрын

    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

    @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

    @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

    @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.

  • @singaporepastor
    @singaporepastor3 ай бұрын

    Excellent! It’s amazing how rare it is to find simple explanations for this stuff

  • @ianrobson9612
    @ianrobson96123 ай бұрын

    This series is going to be a lot of help. Thanks Ed

  • @DavidDeVisser
    @DavidDeVisser3 ай бұрын

    Looking forward to the rest of the series!

  • @holohane
    @holohane3 ай бұрын

    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

  • @wwolfram33
    @wwolfram333 ай бұрын

    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

    @SmartHomeJunkie

    3 ай бұрын

    I'm glad you found the content helpful! Enjoy your weekend study session!

  • @scottwhitaker1067
    @scottwhitaker10673 ай бұрын

    Another top notch video. Looking forward to this series!

  • @SmartHomeJunkie

    @SmartHomeJunkie

    3 ай бұрын

    Thanks!

  • @edwaaij4752
    @edwaaij47523 ай бұрын

    Hier was ik al een tijdje naar opzoek. Eindelijk Geweldig!

  • @waltervos8537
    @waltervos85373 ай бұрын

    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

    @SmartHomeJunkie

    3 ай бұрын

    Dank je wel voor je fijne reactie!

  • @stefan-lupo-pelzl
    @stefan-lupo-pelzl3 ай бұрын

    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

    @SmartHomeJunkie

    3 ай бұрын

    Thank you so much for your support! I'm glad you're enjoying the tutorials.

  • @LS-on6qf
    @LS-on6qfАй бұрын

    Excellent! short and useful introductory content

  • @homeautomatorza
    @homeautomatorza3 ай бұрын

    Thanks Ed This is great content which will help a great many, linking back now!

  • @richardharnwell3331
    @richardharnwell33313 ай бұрын

    This is great! Really looking forward to the rest of this course!

  • @cedricdelecole3964
    @cedricdelecole39643 ай бұрын

    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 !

  • @kevinhenryviii
    @kevinhenryviii3 ай бұрын

    I’m looking forward to this although I will go through each one slowly as I am a complete novice to this. Thanks Ed👍🏻

  • @major_west
    @major_west3 ай бұрын

    I've been struggling with YAML and templates. This is greatly appreciated!

  • @DeliberateGeek
    @DeliberateGeek3 ай бұрын

    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!

  • @skm7812
    @skm7812Күн бұрын

    Well done! Thank you.

  • @robRobblah
    @robRobblah3 ай бұрын

    Great job!! so clear. and super helpful. UI is great for most things, but some creative out of the box things require programming!

  • @SmartHomeJunkie

    @SmartHomeJunkie

    3 ай бұрын

    I appreciate your positive feedback! It means a lot to me.

  • @dotmhd
    @dotmhd3 ай бұрын

    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

    @SmartHomeJunkie

    3 ай бұрын

    Thank you so much for your kind words! ❤️

  • @halko1
    @halko13 ай бұрын

    Thanks for the Home Assistant YAML / Jinja Tutorial series!

  • @SmartHomeJunkie

    @SmartHomeJunkie

    2 ай бұрын

    I'm glad you found the tutorial series helpful!

  • @krzysztofkomornicki7007
    @krzysztofkomornicki70073 ай бұрын

    This is exactly what was looking for. Excellent job, Ed! Thank you so much for that!

  • @SmartHomeJunkie

    @SmartHomeJunkie

    2 ай бұрын

    Thanks! I'll make sure to keep up the good work to meet your high expectations!

  • @sevagjb
    @sevagjb3 ай бұрын

    Wow, that is awesome! Thanks Ed.

  • @Shaq2k
    @Shaq2k3 ай бұрын

    Looking forward to it. Please go deep :)

  • @donnyf12
    @donnyf123 ай бұрын

    Thanks so much for this. This is great content! Can't wait for more

  • @drumslapper
    @drumslapper3 ай бұрын

    Thanks Ed, looking forward to your clear explanations.

  • @piotrzadrozynski7197
    @piotrzadrozynski71973 ай бұрын

    Grate job. Waiting for next one.

  • @emms-place
    @emms-place3 ай бұрын

    Great video Ed, Cant wait for the rest in the series

  • @enriqueronda7239
    @enriqueronda7239Ай бұрын

    Great video. Thank you.

  • @bliblabl8149
    @bliblabl81493 ай бұрын

    Great vid!

  • @ElishaiPoran
    @ElishaiPoran3 ай бұрын

    Thank you very much and very important and also allays concerns for new HA users.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    2 ай бұрын

    Thank you for your kind words, they mean a lot to me!

  • @DeividasNarmontas
    @DeividasNarmontas3 ай бұрын

    Nice! It's very useful!

  • @pjuhl2313
    @pjuhl23133 ай бұрын

    I'm not super comfortable with YAML or Jinja so I'm looking forward to these. Thanks Ed!

  • @TonkaowGaming
    @TonkaowGaming3 ай бұрын

    The series we're waiting for

  • @berrnardflach
    @berrnardflach3 ай бұрын

    Awesome. Thanks

  • @hi-ccowboy7983
    @hi-ccowboy79833 ай бұрын

    Just what I needed! Super thanks!

  • @SmartHomeJunkie

    @SmartHomeJunkie

    3 ай бұрын

    Thanks for your support!

  • @sygad1
    @sygad13 ай бұрын

    At last, i've been looking for a tutorial about this.

  • @manfredzimmer1199
    @manfredzimmer11993 ай бұрын

    👍👍👍 sounds good 👍👍

  • @daveforrester61
    @daveforrester613 ай бұрын

    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.

  • @ericbelanger6900
    @ericbelanger69003 ай бұрын

    Super useful. Thanks ❤

  • @SmartHomeJunkie

    @SmartHomeJunkie

    3 ай бұрын

    Thank you for your kind words

  • @robertdon-duncan7954
    @robertdon-duncan79543 ай бұрын

    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

    @SmartHomeJunkie

    3 ай бұрын

    Yeah, that will be covered too.

  • @Nick_1976
    @Nick_19763 ай бұрын

    Brilliant..

  • @ictstelucjam3604
    @ictstelucjam36043 ай бұрын

    Great video Ed! Love it, can't wait until next video. After the hole course maybe I can leave TheFes alone 🙂

  • @TheFes

    @TheFes

    3 ай бұрын

    Always happy to help

  • @geoffreycoan
    @geoffreycoan3 ай бұрын

    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!

  • @mikaellume4657
    @mikaellume46573 ай бұрын

    Great educatives videos as usual. Do you plan for an episode about how to deal with Date and Time in Jinja? Cheers

  • @SmartHomeJunkie

    @SmartHomeJunkie

    3 ай бұрын

    Yes sure!

  • @michaelthompson657
    @michaelthompson6573 ай бұрын

    Seems very hard 😂 I cant get the hang of templates!

  • @gerwingal4430
    @gerwingal44303 ай бұрын

    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

    @SmartHomeJunkie

    3 ай бұрын

    That will be absolutely covered!

  • @vette5808
    @vette58083 ай бұрын

    Is there a way to get the embed code of a live streaming rtsp ip cam running in picture glass?

  • @Siliconpixel
    @Siliconpixel3 ай бұрын

    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

    @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.

  • @dirkpennings9683
    @dirkpennings96832 ай бұрын

    Top Ed

  • @GuusdeRuyter
    @GuusdeRuyter3 ай бұрын

    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

    @SmartHomeJunkie

    3 ай бұрын

    Thanks. You can use the pause button or set playback to a slower speed. I will still use dark mode. Sorry. 🙃

  • @mcfarlde
    @mcfarlde3 ай бұрын

    Take it one step further and show the use in node red please.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    3 ай бұрын

    Sorry, I don't do Node Red

  • @scottwood646
    @scottwood6463 ай бұрын

    Thx for the video. I am also having a hard time seeing the code. Could you maybe zoom in more?

  • @SmartHomeJunkie

    @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

    @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.

  • @rolandboni8057
    @rolandboni80573 ай бұрын

    YAML means 'YAML Ain't Markup Language'. It's a recursive acronym

  • @SmartHomeJunkie

    @SmartHomeJunkie

    3 ай бұрын

    It depends on whom you ask 🤣

  • @rolandboni8057

    @rolandboni8057

    3 ай бұрын

    ​@@SmartHomeJunkieCheck the official yaml homepage

  • @rolandboni8057

    @rolandboni8057

    3 ай бұрын

    @@SmartHomeJunkie The official homepage of yaml says something different

  • @SmartHomeJunkie

    @SmartHomeJunkie

    3 ай бұрын

    @@rolandboni8057 I used this source, but don't take it too seriously: www.redhat.com/en/topics/automation/what-is-yaml#

  • @rolandboni8057

    @rolandboni8057

    3 ай бұрын

    @@SmartHomeJunkie neither do I 😎