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

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

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

  • @SmartHomeJunkie
    @SmartHomeJunkie  4 месяца назад +10

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

    • @oscargraveland
      @oscargraveland 4 месяца назад

      Must be a Dutch thing: 'e' or 'i' 😁

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

      @@oscargraveland theglobalmontessorinetwork.org/resource/primary/pronunciation-i-english/

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

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

      @@chrschra Let's just say that I never needed Node Red.

  • @major_west
    @major_west 4 месяца назад +10

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

      Thank you for sharing your experience! It's fantastic to know that the courses are making a difference for you.

  • @david18xx33
    @david18xx33 4 месяца назад +4

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

      Looks like the third time's the charm! No more rewinding for you!

  • @Fadukes
    @Fadukes 4 месяца назад +1

    Very useful programming examples for newbies

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

      Programming can be tricky, but with the right examples, even newbies can become coding pros!

  • @My-noname
    @My-noname 4 месяца назад +1

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

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

      Looks like the sh script ninja approves! 😄

  • @edwaaij4752
    @edwaaij4752 4 месяца назад

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

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

      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.

  • @BartVanLandschoot
    @BartVanLandschoot 4 месяца назад +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  4 месяца назад

      Looks like I missed my chance to be your personal coding guru 2 years ago! Better late than never, right?

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

    Duidelijke en weer leerrijke video. Dank je Ed.

  • @shiPham0705
    @shiPham0705 4 месяца назад +1

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

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

      Thank you for your kind words. I'm grateful for the opportunity to assist you with your HA setup.

  • @daveforrester61
    @daveforrester61 4 месяца назад +2

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

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

      Awesome! Keep practicing and you'll master for loops in no time!

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

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

      The next episode is already live for my patrons and sponsors 😉

  • @R2Sweden
    @R2Sweden 4 месяца назад +1

    Thank you Ed, exelent tutorial!

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

      Your kind words mean a lot, thank you for your support!

  • @erikwagen1480
    @erikwagen1480 4 месяца назад +3

    Great stuff!

  • @wwolfram33
    @wwolfram33 4 месяца назад +1

    Thanks again for these!

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

      You're welcome, don't forget to hit that like button for more!

  • @donstephens6279
    @donstephens6279 4 месяца назад +1

    Loving these. Great job.

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

      Thanks a bunch for the positive feedback! It motivates me to keep creating more content.

  • @R2Sweden
    @R2Sweden 4 месяца назад +1

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

      Looks like I've become your stress-relief guru! Happy to help!

  • @eduardocenteno3769
    @eduardocenteno3769 4 месяца назад +1

    great job. Home assistant is more powerful than I thought

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

      Home Assistant might just take over the world one day with its power! Watch out, Skynet!

  • @sevagjb
    @sevagjb 4 месяца назад +1

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

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

      That's awesome! Keep exploring and learning new things!

  • @chrisdixon5241
    @chrisdixon5241 4 месяца назад +1

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

  • @AndrehHimself
    @AndrehHimself Месяц назад +1

    "some people are complaining that I speak to fast" - laughing while watching it in 2x

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

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

      Thank you so much for your support 🙏🏻

  • @frankphilips5498
    @frankphilips5498 4 месяца назад +1

    Nice job

  • @geoffreycoan
    @geoffreycoan 4 месяца назад +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

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

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

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

      Be patient... There are already two new episodes recorded and waiting to be published.

  • @joncentel4932
    @joncentel4932 4 месяца назад +1

    👍