Это видео недоступно.
Сожалеем об этом.

YAML & Jinja Templating Course Episode 1: Expressions, Statements, Comments, Variables, and Filters

Поделиться
HTML-код
  • Опубликовано: 2 авг 2024
  • 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

Комментарии • 83

  • @SmartHomeJunkie
    @SmartHomeJunkie  3 месяца назад +5

    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
    @singaporepastor 3 месяца назад +11

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

  • @ianrobson9612
    @ianrobson9612 3 месяца назад +12

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

  • @DavidDeVisser
    @DavidDeVisser 3 месяца назад +6

    Looking forward to the rest of the series!

  • @krzysztofkomornicki7007
    @krzysztofkomornicki7007 2 месяца назад +1

    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!

  • @holohane
    @holohane 3 месяца назад +1

    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
    @wwolfram33 3 месяца назад +1

    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
    @scottwhitaker1067 3 месяца назад +1

    Another top notch video. Looking forward to this series!

  • @edwaaij4752
    @edwaaij4752 3 месяца назад +2

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

  • @waltervos8537
    @waltervos8537 3 месяца назад +2

    Eindelijk voor mij meer duidelijkheid over het gebruik van Yaml en Jinja. Hier zat ik op te wachten. Dank je voor de heldere uitleg.

  • @cedricdelecole3964
    @cedricdelecole3964 3 месяца назад

    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 !

  • @stefan-lupo-pelzl
    @stefan-lupo-pelzl 3 месяца назад +1

    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

  • @kevinhenryviii
    @kevinhenryviii 3 месяца назад

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

  • @TonkaowGaming
    @TonkaowGaming 3 месяца назад

    The series we're waiting for

  • @richardharnwell3331
    @richardharnwell3331 3 месяца назад +2

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

  • @sevagjb
    @sevagjb 3 месяца назад

    Wow, that is awesome!
    Thanks Ed.

  • @homeautomatorza
    @homeautomatorza 3 месяца назад +2

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

  • @donnyf12
    @donnyf12 3 месяца назад

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

  • @emms-place
    @emms-place 3 месяца назад

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

  • @robRobblah
    @robRobblah 3 месяца назад +1

    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.

  • @manfredzimmer1199
    @manfredzimmer1199 3 месяца назад

    👍👍👍 sounds good 👍👍

  • @bliblabl8149
    @bliblabl8149 3 месяца назад

    Great vid!

  • @berrnardflach
    @berrnardflach 3 месяца назад

    Awesome. Thanks

  • @major_west
    @major_west 3 месяца назад +1

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

  • @DeliberateGeek
    @DeliberateGeek 3 месяца назад +1

    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!

  • @piotrzadrozynski7197
    @piotrzadrozynski7197 3 месяца назад

    Grate job. Waiting for next one.

  • @enriqueronda7239
    @enriqueronda7239 Месяц назад

    Great video. Thank you.

  • @drumslapper
    @drumslapper 3 месяца назад

    Thanks Ed, looking forward to your clear explanations.

  • @Shaq2k
    @Shaq2k 3 месяца назад

    Looking forward to it. Please go deep :)

  • @DeividasNarmontas
    @DeividasNarmontas 3 месяца назад

    Nice! It's very useful!

  • @hi-ccowboy7983
    @hi-ccowboy7983 3 месяца назад

    Just what I needed! Super thanks!

  • @sygad1
    @sygad1 3 месяца назад

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

  • @dotmhd
    @dotmhd 3 месяца назад +2

    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
    @halko1 3 месяца назад +1

    Thanks for the Home Assistant YAML / Jinja Tutorial series!

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 месяца назад

      I'm glad you found the tutorial series helpful!

  • @ElishaiPoran
    @ElishaiPoran 2 месяца назад +1

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

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 месяца назад +1

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

  • @Nick_1976
    @Nick_1976 3 месяца назад

    Brilliant..

  • @pjuhl2313
    @pjuhl2313 3 месяца назад

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

  • @ericbelanger6900
    @ericbelanger6900 3 месяца назад +1

    Super useful. Thanks ❤

  • @daveforrester61
    @daveforrester61 3 месяца назад

    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.

  • @ictstelucjam3604
    @ictstelucjam3604 3 месяца назад +1

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

    • @TheFes
      @TheFes 3 месяца назад +2

      Always happy to help

  • @robertdon-duncan7954
    @robertdon-duncan7954 3 месяца назад

    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?

  • @geoffreycoan
    @geoffreycoan 3 месяца назад

    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!

  • @gerwingal4430
    @gerwingal4430 3 месяца назад

    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.

  • @mikaellume4657
    @mikaellume4657 3 месяца назад +1

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

  • @dirkpennings9683
    @dirkpennings9683 Месяц назад

    Top Ed

  • @michaelthompson657
    @michaelthompson657 3 месяца назад

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

  • @Siliconpixel
    @Siliconpixel 3 месяца назад

    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 RUclips? There's an option in the settings of the video.

  • @vette5808
    @vette5808 3 месяца назад

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

  • @GuusdeRuyter
    @GuusdeRuyter 3 месяца назад

    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
    @mcfarlde 3 месяца назад

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

  • @scottwood646
    @scottwood646 3 месяца назад

    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
    @rolandboni8057 3 месяца назад

    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 😎