YAML Basics // Level Up Your Home Assistant Skills

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

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

  • @rishabMehta7
    @rishabMehta7 3 года назад +19

    This is exactly wat makes your channel amazing. Instead of doing the same stuff over and over you cover topics which might not generate lots of views but it's something we all need. Thank you for the amazing work!!

  • @TheRiehlThing42
    @TheRiehlThing42 Год назад +2

    Just started watching your video, looking forward to learning more about YAML. I did chuckle at the whiteboard and left handed struggle. As a kid, I hated writing. The stupid left handers hook and smearing frustrated me to no end. My dad, also left handed, knew how much I hated writing because of that. Grew up, didn't go to college right away, 10 years later started college and came across the same thing with writing. I was talking to my dad again, and he said, "rotate your hand below." I was like, "why the hell did you not say that to me back when I was growing up?" I spent an hour at night, practicing. I even compared it to writing right handed, since I'm almost ambidextrous. After a week, I lost my left handers hook, no more smearing, and writing on whiteboards and chalkboards in college classes stopped being a problem.
    Now back to watching your video, and learning YAML. Nice thing about coding, keyboards don't care if you're left handed.

  • @ramiromaney3499
    @ramiromaney3499 2 года назад +3

    Thank you for the awesome vid! I was HIGHLY CONFUSED before I got here and ALMOST gave up!.
    This is the first vid of yours that I have watched im really looking forward to the others!

    • @ThisSmartHouse
      @ThisSmartHouse  2 года назад +1

      Excellent! I am so happy the video helped you on your automation journey!

  • @rebe7800
    @rebe7800 2 года назад +1

    One of the BEST I've seen. Maybe the BEST. 👍👍

    • @ThisSmartHouse
      @ThisSmartHouse  2 года назад

      Thank you! I need to plan more "professor" videos.

  • @usmcboyd
    @usmcboyd 2 года назад +1

    Randomly found your channel and it is great information. My wife is left handed so I understand your pain of keeping your hand clean. Keep up the great work.

    • @ThisSmartHouse
      @ThisSmartHouse  2 года назад

      That is why I use an Eink tablet now to hand write notes, no more smudges. Thank you!!

  • @daviddecrock826
    @daviddecrock826 11 дней назад +1

    thanks for the clear explanation i learned a lot from it

  • @munkeepilot
    @munkeepilot 9 месяцев назад +1

    Very, very helpful in understanding the yaml syntax. I love how you don’t skip over important concepts like nested quotations, fixed width fonts, includes and secrets. I can’t thank you enough for your presentation sir.

    • @ThisSmartHouse
      @ThisSmartHouse  9 месяцев назад

      You are so welcome. I know those things tripped me up so other folks must encounter the same issues.

  • @JustinHughesRoberts
    @JustinHughesRoberts 2 года назад +1

    Fantastic video. I discovered you via your appearance on the hass podcast. Well paced and confidence inspiring. I've been having a watch of some of your other videos too. Your subscriber count doesn't do your work justice. Keep it going.

    • @ThisSmartHouse
      @ThisSmartHouse  2 года назад

      Thank you for the kind words, it really means a lot! That was a fun podcast.

  • @JoseBerruezo
    @JoseBerruezo 2 года назад +2

    Excellent video, the best explanation I've seen so far.

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

    Excellent video. Thanks for the time and effort that went into making it. Thought I was already subscribed but I definitely am now.

  • @kevinbrown1757
    @kevinbrown1757 2 года назад

    Hey Ryan. Heard you today on the Home Assistant podcast, where you mentioned you live in KC. Cheers from Brookside!
    Thanks for this video, and also the HA setup video that helped me get started with HA earlier this year.

    • @ThisSmartHouse
      @ThisSmartHouse  2 года назад

      I actually didn't know they posted the podcast until I saw your comment. 😅 I live out east but I work down on state line.
      I'm so glad the videos helped!

  • @andytaylor1
    @andytaylor1 2 года назад +1

    learnt a lot as a new HA adopter...thanks for the great content

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

    THAT was time well spent. Thank you!

  • @MarkGhali
    @MarkGhali 3 года назад +1

    Great Video! Understanding YAML took me a longtime like 3 years when Home Assistant was on 0.40. If I had this video then it would have saved me a lot of headaches! I love the whiteboard approach! Thanks again

    • @ThisSmartHouse
      @ThisSmartHouse  3 года назад +1

      The secret is, the whiteboard kept me from having to animate stuff in after effects. So I just took the lazy approach. 😅 I think I've been using yammal about as long as you have. I'm so happy that I have the tools now that we didn't have back then. Vs code makes all the difference..

    • @MarkGhali
      @MarkGhali 3 года назад +1

      @@ThisSmartHouse VS Code is such a huge help now!! I had to put home assistant down sometimes after completing breaking it back in the day. Now it is rock solid

    • @ThisSmartHouse
      @ThisSmartHouse  3 года назад

      Oh man I know the feeling. There were a few times before I discovered backups that I completely hosed my system. Not a good day.

  • @klittlet005
    @klittlet005 2 года назад +2

    Very good! Instead of theory, you showed an actual application of yaml. I have no knowledge of home assistant but I'm sure this will help with an sdwan project I have at work.

  • @WiseInetellect
    @WiseInetellect 2 года назад

    You're a gentleman and a scholar sir, your method of teaching is outstanding!

    • @ThisSmartHouse
      @ThisSmartHouse  2 года назад

      Wow thank you! Who knew I could teach? What subject would you like me to do next?

  • @clarencemartin57
    @clarencemartin57 9 месяцев назад

    I finally found someone to explain how to code YAML, Thanks!
    The only question I have is: where do I find my YAML Config in HomeAssistsnt - this is a missing key for me.
    Also, I am have subscribed to your channel and look forward to more videos.

  • @JRWJWV
    @JRWJWV 2 года назад +1

    Absolutely fantastic tutorial. I have some programming experience with Java, and for the life of me I couldn't figure out why my tabs were all screwed up. Java is all about tabs, YAML is all about spaces.

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

    Excellent beginner tutorial. Learned a lot 😊

  • @timwhitlock2172
    @timwhitlock2172 2 года назад +2

    Thanks... really good explanation of the fundamentals which I sorely needed. I'm a HA & YAML newbie, migrating from the Insteon environment and have found it challenging to find a cohesive "here is how you do it" guide. Generally I've found information to be scattered and generally of a "troubleshooting" nature, which is often helpful, but does not provide the same fundamental understanding.

    • @ThisSmartHouse
      @ThisSmartHouse  2 года назад

      Awesome and welcome! I had insteon gear but dumped it 3 years ago. Sad to see then just close. But I heard some users are buying the company.
      What other topics are you struggling with? I am trying to make a whole getting started series.

  • @Larstronomy
    @Larstronomy 3 года назад +2

    Wonderful video, taught me a lot. Great presentation aswell!

  • @AntonioVillanuevaB
    @AntonioVillanuevaB 3 года назад +1

    Excellent video. Thank you. You have gained a subscriber.

  • @daryllvangeelen1249
    @daryllvangeelen1249 2 года назад +1

    Thank you I found your tutorial very easy to understand and it was really helpful.

  • @WPGinfo
    @WPGinfo 2 года назад +1

    Thank you! Challenging topic, yet very helpful for a newbie like me.

    • @ThisSmartHouse
      @ThisSmartHouse  2 года назад

      I know it took me well over a year to get comfortable with YAML. Hopefully this saves you some grief! So happy it was helpful.

  • @designbybeck
    @designbybeck 2 года назад +1

    very good breakdown! Very helpful! Thank You!

  • @iansoper3453
    @iansoper3453 10 месяцев назад

    Excellent video! Thank you. Very well explained.

  • @SBinVancouver
    @SBinVancouver 2 года назад +1

    "We Olds". Love it! We ex-Telecomm Geeks might call it an "octothorpe".

  • @bexroot634
    @bexroot634 2 года назад +1

    Thanks... a really good explanation Absolutely well-organized structure.

    • @ThisSmartHouse
      @ThisSmartHouse  2 года назад

      I am so glad you found the video helpful!!

  • @MrMarco7ify
    @MrMarco7ify 10 месяцев назад

    Keep these videos coming! You earned my follow :)

  • @rupam.mandal
    @rupam.mandal 8 месяцев назад +2

    Great Explanation. Thanks

  • @ahmedishak7240
    @ahmedishak7240 2 года назад +1

    Great Work. Thanks a lot.

  • @LarryZing
    @LarryZing 3 дня назад +1

    This was extremely helpful! I love how you illustrated the syntax. I especially appreciated that you gave the reason for using the secrets.yaml file. I had assumed that the secrets.yaml file was supposed to be encrypted so it never made sense that you could read everything in plain text.
    I tried the Discord invite link but it didn't work. Is it expired? I'm not a current Discord user so maybe it's my issue.

    • @ThisSmartHouse
      @ThisSmartHouse  3 дня назад

      Someone else pointed that out. The link might have expired. You can try this one: discord.gg/gXPTAPaZ

  • @ivan-j4l9x
    @ivan-j4l9x 5 месяцев назад

    I don't have insomnia anymore. Home assistant tutorials are better than any sedative.

    • @ThisSmartHouse
      @ThisSmartHouse  5 месяцев назад

      Well at least it helped with something!

    • @ivan-j4l9x
      @ivan-j4l9x 5 месяцев назад

      @ThisSmartHouse lol. I want to learn though. Learning something new is always a struggle at tye beginning.

    • @ThisSmartHouse
      @ThisSmartHouse  5 месяцев назад

      I totally get it!

  • @mdbruin8143
    @mdbruin8143 Год назад

    Good explanation of the basics of yaml. I searched for yaml tutorials but I think I'm a bit further than beginner.
    One correction: your example for the option is indeed a list, but the example for the sensor is a dictionary. Because it has a key and value, even when it has only one key and value.

  • @CP-yt1ei
    @CP-yt1ei 5 дней назад

    subscribed & liked.. i learned alot! thanks!

  • @fredaker8353
    @fredaker8353 2 года назад +1

    Great video. Thanks.

  • @cyosh345
    @cyosh345 2 года назад +2

    Thank you for taking time to make this instructional. For beginners like me, who are just starting out...what should I be learning first? I'm talking about the very first steps in programming. Any suggestions would be appreciated. Thank you

    • @ThisSmartHouse
      @ThisSmartHouse  2 года назад +1

      You are so welcome. What specifically are you trying to accomplish? I usually suggest getting used to the YAML for configuration, then start building automations. You can swap back and forth between the GUI automation builder and YAML. It is nice, because the GUI will build stuff for you, then you can see what the underlying YAML is doing.

    • @cyosh345
      @cyosh345 2 года назад

      @@ThisSmartHouse I'm specifically trying to understand programming language for Home Assistant. It seems basic to those who know, but I've been on the outside all this time...just now stepping into it. Thanks for your suggestion about yaml

  • @My427Cobra
    @My427Cobra 3 года назад +4

    Love the Dr. Strangelove reference

  • @Joseph-ko2kl
    @Joseph-ko2kl 3 года назад +1

    Thanks man I was just about to give up on the whole thing.

  • @estqwerty
    @estqwerty 2 года назад +1

    Thank you for this video. Keep going.

  • @Tripmonkey
    @Tripmonkey 2 года назад +1

    Great run through, thanks :)

  • @scotttaylor6451
    @scotttaylor6451 3 года назад

    Great job, a follow video would be advantages and disadvantages of using yaml vs the ui

  • @jboissi
    @jboissi Год назад +1

    Hello
    It's wonderful, I disover many informations about yaml..
    a french man

  • @yingderekliao1981
    @yingderekliao1981 2 года назад +1

    what a newbie friendly video. thx

    • @ThisSmartHouse
      @ThisSmartHouse  2 года назад

      Glad it helped. This week's video will be another getting started video.

  • @Lonestar101
    @Lonestar101 2 года назад +1

    Thank you for this tutorial. I learned a lot.

  • @fredman1956
    @fredman1956 3 года назад +1

    Thank you so much, great help..

  • @xtremeideaz
    @xtremeideaz 2 года назад +1

    Thanks for this.

  • @dannytech4709
    @dannytech4709 2 года назад +1

    Great Video thanks

  • @DJH27673
    @DJH27673 3 года назад

    Briljant explanation. One question though, it seems that when you use include, the sequence is important? I'm stille trying to get my switchbot out of the configuration file, but it doesn't accept that.
    Keep up the great work, I really love your content!

  • @robakers6127
    @robakers6127 Год назад

    this is awerome....! thank you....

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

    Well done

  • @TechHawk52
    @TechHawk52 6 месяцев назад

    Thanks , I learned a lot..

  • @jackfruit123
    @jackfruit123 Год назад

    great info, thank you ! I have a problem. I have an esphome switch that turn on light based on sunset and sunrise. The problem is, if the hass automation run while switch is disconnected, the switch wont change state even after it is reconnected to hass. My idea is to add sunrise and sunset state check on script and call it every time the switch connect to hass in addition to existing automation. Is there on_connect event in esphome or somewhere else that can trigger script execution in hass?

  • @Silent1Majority
    @Silent1Majority 3 года назад

    Absolutely well-organized structure. Thank you and I'm sure my subscription to your channel is not nearly enough.

  • @ericfung3308
    @ericfung3308 Год назад

    Very helpful, thanks!

  • @WMartinNI
    @WMartinNI 3 года назад

    Thanks for the video, I've just set up Home Assistant this week while I'm waiting for my new Zigbee thermostats to come so I'm giving myself a crash course. I think I'm going to have to find a better editor than nano 🤦
    Could you explain why some sub sections require a hyphen when they're a list of items at the same level of the hierarchy (eg "-platform: mqtt") but not others (eg all of the items under "threat")
    I assume it's needed when the list of entries are all different versions of the same thing (if you get what I mean)?

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

    So can you only have two levels of nested quotes? If so, is there never a need for three, for example if some text had an apostrophe?

  • @alexlay7809
    @alexlay7809 Год назад

    Loved the video. Thanks a lot. Just wanted to ask a question: is there a way to create a formula that you can send a value to and have it return the correct value? In this instance, for example I have power entities either being negative or positive, and since I have to return positive values I have written 7 or 8 if statements to get the correct value back, but it seems more intuitive to actually write something as a formula, plug in the entity and get back the desired result. Can this be done?

  • @syotos8643
    @syotos8643 3 года назад

    Would it not have been easier to screen cap doing this on Notepad++? Good video and explanation.

    • @ThisSmartHouse
      @ThisSmartHouse  3 года назад

      I did grab some screen caps out of vs code. But showing the spaces was more difficult that's why I decided to do the whiteboard instead.

  • @raughboy188
    @raughboy188 10 месяцев назад

    Yaml comes in usual form, you also have varian called yaml script,there is also toml which is similar to yaml.

  • @Lunolux
    @Lunolux 2 года назад +1

    i didnt know that YAML is an acronyme de Yet Another Markup Language xD
    great video well explained

  • @ElishaiPoran
    @ElishaiPoran Год назад

    Thanks for the excellent tutorial!
    I have a question:
    You created a secrets file (with the letter S at the end of the word) but in the main configuration file you wrote "!secret xiaomi ip" without the letter S at the end of the word secret.
    why?

    • @ThisSmartHouse
      @ThisSmartHouse  Год назад +1

      That is the Home Assistant / YAML nomenclature. If you see the documentation here, that is how it is done: www.home-assistant.io/docs/configuration/secrets/
      But you are right that is kind of strange. I guess you can think of it as the file holds all of the secrets, while when you call it you are referring to one secret.

    • @ElishaiPoran
      @ElishaiPoran Год назад +1

      @@ThisSmartHouse
      Thanks! 🙏❤️

    • @ThisSmartHouse
      @ThisSmartHouse  Год назад +1

      You are welcome!

  • @hogwelder505
    @hogwelder505 2 года назад

    How to setup a secondary home assistant on the same net work. I have a shop that is 175 feet from my home that would like to be able to turn on and off the lights and setup some season in. I have tried remote-home assistant from gethub but keep getting errors. The master home assistant does not find the slave home assistant I thank that I’m not getting the yaml right.

    • @ThisSmartHouse
      @ThisSmartHouse  2 года назад

      So both the shop and the house are on the same wifi network? What sort of lights are you using?

    • @hogwelder505
      @hogwelder505 2 года назад

      @@ThisSmartHouse I have z-wave wall switches and some Zigbee light bulbs, I also have some motion sensor that are z-wave. I use a iPad or iPhone for the controller with Smartthings. I would like to able to connect the Home Assistants together on one control panel like it is in Smartthings but went I try to install remote home assistants I get a error that says the sever can not be found. I have watched a couple of videos about how to connect multiple HAs but they are not on the same network.

    • @hogwelder505
      @hogwelder505 2 года назад

      I’m use ethernet hardwire I not have them setup on WiFi

  • @joeking5211
    @joeking5211 Год назад

    This vid looked like the holy grail, but at 7:40 Totally lost, you got two platform:mqtt in the list, how does that work ???, thought they should be merged ???. Are you saying 'every' mqtt topic/payload has to have it all repeated ???. If it is a list, surely that's a duplicate, so not valid ??? I really am Bemused & confused here, any clarity here would be greatly appreciated or any other refs/vid you can point me to to clear this up ? .
    Kind Rgds.

  • @stevetrapp1095
    @stevetrapp1095 3 года назад

    Thanks

  • @peterengland6153
    @peterengland6153 Год назад

    Just "Thank You"

  • @rishabMehta7
    @rishabMehta7 3 года назад +1

    I have a feeling it was me sending the discord notifications🤣🤣🤣

    • @ThisSmartHouse
      @ThisSmartHouse  3 года назад

      Pffftt.😂😆 I didn't realize I had the speakers turned on and I couldn't edit out the notification sound.

  • @MaxGoddur
    @MaxGoddur 2 года назад

    This is the first and only instance of someone describing the in and outs of YAML and believing me I have searched. What I find interesting, is the lack of using something like BASIC in Home Assistant as it is a pretty widely-used programming language.
    YAML is really hard to understand and the flow is not obvious. I could walk through BASIC and tell you what each line is doing not the case with YAML. So have avoided trying to use YAML due to it being so hard to incorporate with something like a Trealife SPST SW or Athom plug.
    Many have poo-pooed me, stating " I got it working" as if to say folks that can't get it working are stupid. Oh well maybe sometime soon a larger company will jump in and organize the evolving smart home. Can not wait to dump HA and use something simple so I don't have to spend my free time trying to figure out how to use a piece of SW I have had around for years.

    • @ThisSmartHouse
      @ThisSmartHouse  2 года назад

      Home Assistant is moving away from YAML for most MAJOR items. But YAML is an important "language". You have to remember that something like BASIC is a true programming language, where as YAML is a configuration language. It is common across the IT industry (similar to XML) for parsing external data and bringing it into another application.
      If you really hate YAML, you might want to check out Node-Red, which uses a graphical interface that is based on Javascript.

    • @MaxGoddur
      @MaxGoddur 2 года назад +1

      @@ThisSmartHouse thank you and understand what you are saying and wonder how many folks can hit the ground running using either ESPhome or Node-Red. Find both approaches archaic. Oh well, I tried to incorporate this system but sadly will be abandoning it, too complicated for folks with other things to do. Guess most folks are looking for a "Set it and forget it" approach or at least I am.

  • @droneforfun5384
    @droneforfun5384 8 месяцев назад

    What is mqtt what is input_select etc

    • @ThisSmartHouse
      @ThisSmartHouse  8 месяцев назад +1

      MQTT is a common data exchange protocol used in smart home products (www.home-assistant.io/integrations/mqtt/)
      input_select is a building block in Home Assistant. Think of it as a drop down selection box. www.home-assistant.io/integrations/input_select/

  • @RupertoCamarena
    @RupertoCamarena 2 года назад

    please more of yaml

    • @ThisSmartHouse
      @ThisSmartHouse  2 года назад

      What things are you specifically looking for?

  • @WanderlustWonderscape
    @WanderlustWonderscape 2 года назад

    19:42 - AHHHHHH!!!!

    • @ThisSmartHouse
      @ThisSmartHouse  2 года назад

      Yeah looks like my adjustment layer with the zoom slipped over the wrong clip. Unfortunately you can't edit an existing video except for to black out.

  • @ChazmillsADLT
    @ChazmillsADLT 20 дней назад

    I got just a few minutes into the video on “YAML basics” but when you mentioned “notifier bulletin” I had to stop. You don’t explain what that is and therefore it’s not explaining why or where you would use this.
    On the old BASIC language there was/is a structure and reasons for putting something where it is, I have yet to find a YAML video which REALLY explains the “basics”.
    Notify what, what does it do, where would you use one.
    Try explaining and giving an example, start with the end product, like a button that changes the icon when pressed. I believe that is fairly easy but no one, yet, has explained something practical that you can see it working in real life.

  • @towkukus
    @towkukus 2 года назад +1

    thanks for the video. Please remove background musing for the next one

  • @kaspernaess-schmidt6618
    @kaspernaess-schmidt6618 9 месяцев назад

    Why dont you explain how to use all the stuff you are talking about in an example? Tell stuff like how to actually implement a change? How do I get to the yaml file? Where is the editor, do I need to run the editor on the computer running HA? You need to explain everything because we noobs dont know ANYTHING about coding!!

    • @ThisSmartHouse
      @ThisSmartHouse  9 месяцев назад

      I wish I could cover everything in one video. But then it would be hours long. Plus those things very from install to install.
      Do you have the SAMBA add on set up? If so you can access the files via Windows explorer and use and file editor like notepad++ or VSCode.
      Or you can use the VSCode server add on and edit the files in the web browser. Let me know where you are stuck.

  • @MalachiEleanore-s1t
    @MalachiEleanore-s1t 3 месяца назад

    Lopez Paul Perez Carol Lewis Laura

  • @chrisw1462
    @chrisw1462 Год назад

    An example isn't an example if you don't describe what it DOES. Your 'Full Example' could be totally made up for all any newbie would know.

  • @HuxleySabrina-u8l
    @HuxleySabrina-u8l 3 месяца назад

    Perez Joseph Wilson Sharon Martin Ronald

  • @mrpenguin61
    @mrpenguin61 Год назад

    Dr Strangelove

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

    YAML AINT MARKDOWN LANGUAGE!!

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

      The internet does not lie!: en.wikipedia.org/w/index.php?title=YAML
      I know they have changed the name now, but I think of it as Yet Another Markup Language vs XML.

  • @BartonSebastiane-p8p
    @BartonSebastiane-p8p 4 месяца назад

    Robinson Sarah Young Laura Thomas Ruth

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

    The amount of ads is ridiculous.

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

      Controlled by RUclips now. It is either ads off or on now.

  • @arizonaniceguy376
    @arizonaniceguy376 2 года назад

    The only thing I learned is don’t use tabs

    • @ThisSmartHouse
      @ThisSmartHouse  2 года назад

      Well if you learned that then that is enough... 😂

  • @josephgagnon555
    @josephgagnon555 Год назад

    YAML - YAML Ain’t Markup Language

    • @ThisSmartHouse
      @ThisSmartHouse  Год назад

      "Originally YAML was said to mean Yet Another Markup Language" -en.wikipedia.org/wiki/YAML
      But I did see that YAML.org has now changed it to YAML Ain't Markup Language. 🤣