Understanding YAML as it's used in Home Assistant Config files

  Рет қаралды 67,777

DrZzs & GrZzs

DrZzs & GrZzs

Күн бұрын

Пікірлер: 58
@pr19580
@pr19580 4 жыл бұрын
That video had the highest density of answered questions of anything I watched recently! Thanks!
@williammiller4143
@williammiller4143 4 жыл бұрын
There is so much to digest but the approach of one task per day makes it less scary. Thanks to you and Frank for a great video!
@surfingnoid
@surfingnoid 4 жыл бұрын
THANK YOU! This was absolutely, by far, the best explanation of how HA uses YAML and the structure of everything!!! All of this now makes complete sense, and I just wish I saw this six months ago. It would have saved me from repairing and painting my walls after constantly bashing my head against them.
@LordGeva
@LordGeva 4 жыл бұрын
Keep coming back to this video everyday. It's pure gold
@andrejsersen59
@andrejsersen59 2 жыл бұрын
AWESOME!!! Thank you guys for this! I think you should do such classroom/course regularly!
@aleharder
@aleharder 2 жыл бұрын
So glad I watched this before starting out in HA, definitely helpful to keep everything organized right from the start. 😄
@tarcisio_menezes
@tarcisio_menezes 3 жыл бұрын
What a informative video!!! Thank you very much for both of you! Waiting for more videos like that! 👏🏻
@andor421
@andor421 4 жыл бұрын
Great video to start with yaml! I'm migrating from domoticz to homeassistant and this video helps me understand the automations in yaml and help me to design my configurations (splits) before starting.
@user-0xastalavista
@user-0xastalavista 4 жыл бұрын
It's great, big thanks Doc and Frenck. It's really helpful and the fog of yaml files in my head just got cleared a lot. :-) One line I like most is : "Every automation is a item in a list. Inside the item is a dictionary. So it (automaiion.yaml) is a list of dictionaries." Thanks. :-)
@michiganmitten
@michiganmitten 2 жыл бұрын
I've been hoping for an explanation like this for years! Thank you!
@PM13501
@PM13501 4 жыл бұрын
Franck, this video has been the best one I have watched so far on HA! It made my life so much less messier and now I only refactor code in small steps.....thank you for taking time to explain it.
@gonzalolaplata
@gonzalolaplata 4 жыл бұрын
Just 3 words... THANK YOU BOTH!!!!!!!!!
@madrian_hello
@madrian_hello 4 жыл бұрын
Back to basics, oh yes! I learned a lot. Thank you both. BTW Frank has the best ASMR voice ever. 😬😎
@edgaro.4564
@edgaro.4564 4 жыл бұрын
Doc, This video is soo valuable , Thanks, and just in 30 mins.!!!!!
@JevVan
@JevVan 3 жыл бұрын
Wow, new to hassio, but I've been coding as a hobby my whole life. This video, just ulocked a ton of knowledge and understanding of how HA works. Thank you so much!
@stevesfascinations1516
@stevesfascinations1516 4 жыл бұрын
You filled in a bunch of missing information in my knowledge bank! Thanks to Dr & Frank!
@chrisc9213
@chrisc9213 4 жыл бұрын
HA Yaml 101, when are HA Yaml 200 & 300 courses come out? Great Job!!
@PM13501
@PM13501 4 жыл бұрын
Excellent tutorial, very informative!!! Thanks for putting it together.
@ChrisTopher-wl6pd
@ChrisTopher-wl6pd 4 жыл бұрын
Ok this was f@cking AWESOME!!! Hurry up and do class 102
@jeffmills8737
@jeffmills8737 4 жыл бұрын
Great information. When you added the "Alexa Media Player", did you put the files it created for each of you echo devices in a folder? Looks like by default it just places them in "config/"
@EsotericArctos
@EsotericArctos 4 жыл бұрын
Thanks for editing this and releasing a concise version. I think this will help a lot of people and reduce the confusion. Yaml is quite a powerful way to program HA, but most people get lost in the big files and the indentation. @DrZzsHow far have you got with your splitting so far?
@lmamakos
@lmamakos 4 жыл бұрын
Not to be pedantic, but you're not actually *programming* anything in YAML - you're defining a data structure. Now, it's a pretty large and complex data structure, but that's really what's happening here. I think if people think of YAML as a way to write down and specify structured data -- which is then interpreted in specific ways by software like Home Assistant - then it's less magical. An automation in Home Assistant is just a defined by a specifically shaped piece of data. And white space / indentation largely ceases to be a problem if you have a text editor or other tool that understands YAML definitions to help you.
@balelab4211
@balelab4211 4 жыл бұрын
Outstanding informations, thanks!
@nigelhill6358
@nigelhill6358 4 жыл бұрын
Great video. Thanks a lot !!
@dionwestmeijer8735
@dionwestmeijer8735 4 жыл бұрын
Nice Vid!
@sekt1953
@sekt1953 2 жыл бұрын
Excellent tutorial, very informative !!! Thanks for putting it together. next question how can i have Helpers like timers, input_select, etc .. in yaml files and still be able to create Helpers with UI, later move them to yal files.
@paullonsdale2148
@paullonsdale2148 4 жыл бұрын
Silly question I’m sure - but what is the benefit of creating lots of smaller files vs. Smaller number of longer files?
@frogeye22
@frogeye22 4 жыл бұрын
Me too.. Can someone throw some light on this ??
@finipini
@finipini 4 жыл бұрын
hello. It surprised me at 23:20 that Frank said that automations in packages does not needed full reload of HA, but i tested it and it does need it. Am i missing something, or doesn,t understand it right ?
@Druidus98
@Druidus98 4 жыл бұрын
This is so helpful 👍🏻 Thx a lot dream team 😉 What about securing this all with ssl https and certificates? Thx again 🙏🏻🍪
@waynenocton
@waynenocton 4 жыл бұрын
Have you done any kind of home tour so we can see what all you are controlling?
@CamStansell
@CamStansell 4 жыл бұрын
excellent.
@3ATIVE
@3ATIVE 4 жыл бұрын
I watched the live stream of this, after the fact, so didn't get a chance to ask... Does this mean Franck is about to buy a 3D Printer???
@DrZzs
@DrZzs 4 жыл бұрын
oh man! I can't believe I forgot to ask him that! BTW, I watched a couple of your Alexa TTS videos. Great work man. Keep it up!
@seamus65
@seamus65 4 жыл бұрын
Technically would Justin not have to actually tidy his config before that happens?
@3ATIVE
@3ATIVE 4 жыл бұрын
@@DrZzs Call him now!! LOL So glad you like(d) my tuts. Thnx for the support, still got a few more ideas on the list. 😎
@3ATIVE
@3ATIVE 4 жыл бұрын
@@seamus65 I thought that too, that's why I ask if he was "about to buy..." 😉
@reesericdotci
@reesericdotci 4 жыл бұрын
Thanks for the cut poo!
@heimdallmidgard4670
@heimdallmidgard4670 4 жыл бұрын
Nice video you too. Now make a video about variables/input numbers and automations etc. Or any other topic.
@Rmharnisch
@Rmharnisch 4 жыл бұрын
Best comment: "You can't triple stamp a double stamp" 🤣
@ranikeev
@ranikeev 4 жыл бұрын
Is it possible to do nested includes?
@sekt1953
@sekt1953 2 жыл бұрын
someone shows items on split like this: automation split:! include_dir_list ./automations others like here: automation split:! include_dir_list automations / I understand well what ./ means, but what is correct
@DavidSmith-fh3yi
@DavidSmith-fh3yi 4 жыл бұрын
Great video, although I watched the original a few times to get my head around lists and dictionarys, almost there now! You mention a sensor to show how many lines in config.yaml Can you or anyone reading this share how you did it, i have looked for a couple of hours but nothing immediately springs to the front.
@DavidSmith-fh3yi
@DavidSmith-fh3yi 4 жыл бұрын
I managed to get the solution from some nice people on the facebook group "DrZzs Home Automation and Tech Hacks" This works on my RPi 4 with HASSIO using the command line integration within my sensors.yaml: - platform: command_line name: config yaml lines command: 'cat /root/config/configuration.yaml | wc -l'
@guentherh8807
@guentherh8807 3 жыл бұрын
It seems you HA automation doesn't work properly as you have to wear these hats. Will watch the video in detail when I have time at home :-)
@lubeda04
@lubeda04 4 жыл бұрын
very helpful, but i thing @frencks 04-secret-trick.yaml does only work for automations and not for scripts :-( at least i couldnt get it to work.
@johnwalker3180
@johnwalker3180 4 жыл бұрын
Great video, but I can't get even the basics of it to work for me. Created "integrations" folder pointed to by "packages" line in configuration.yaml and moved one integration (a Xiaomi robot vacuum) and I cannot for the life of me get it to recognize it. So, I'm just going to continue doing most of this in NodeRed. It's just so much easier.
@MrBobWareham
@MrBobWareham 3 жыл бұрын
I can see why people use NodRed
@enkrypt3d
@enkrypt3d 2 жыл бұрын
is he saying YAML or JAML?
@abouteverything2115
@abouteverything2115 3 жыл бұрын
I used to program in C++, Fortran, Pascal, and still do VBA. Apparently, I am a mechanical engineer with old school programming skills. I tried learning Java and recently Yaml but to be honest, these are absolutely boring stuff. I hate it to admit that these days I copy and paste code when I need it and just fix small pieces here and there. Why on Earth we need so many different programming languages? These days every developer creates a new language. It's like they say "Ok, we have built this abacus, let's create a new language, copy C++ style but change a few rules and add a few unnecessary handling elements and make it sensitive to spaces so that people have to come to our community and search for clues". How hard can it be to use an existing language and just add your own library to it? I don't think copying a language is harder than creating one.
@kevin8798
@kevin8798 4 жыл бұрын
13:37 Funny that in the USA you can't say sh*t. Where in The Netherlands you can, without beeing beeped or whatever haha.
@n.r.2258
@n.r.2258 3 жыл бұрын
Nerds for nerds ....
@xnolimitgamerx
@xnolimitgamerx 3 жыл бұрын
The left one is Dutch
@jamegrabham9992
@jamegrabham9992 4 жыл бұрын
First course for me...LOL
@seamus65
@seamus65 4 жыл бұрын
First? TeeHee!!!
@LapinskasDarius
@LapinskasDarius 3 жыл бұрын
HA YAML configuration format is freaking junk :E
@dagger6498
@dagger6498 4 жыл бұрын
This made no sense!
@nexes-forty-four2381
@nexes-forty-four2381 4 жыл бұрын
First
YAML Basics // Level Up Your Home Assistant Skills
22:58
This Smart House
Рет қаралды 78 М.
Cool Parenting Gadget Against Mosquitos! 🦟👶 #gen
00:21
TheSoul Music Family
Рет қаралды 30 МЛН
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 3 МЛН
Home Assistant - первые шаги, знакомство с интерфейсом, 2022
41:14
Alex Kvazis - технологии умного дома
Рет қаралды 63 М.
IT WORKED! Moving Node-RED flows to Home Assistant Automation.
25:02
Home Assistant How To - split your configuration files (YAML way)
33:42
Mastering Scripts in Home Assistant: A Comprehensive Guide
14:00
Smart Home Junkie
Рет қаралды 44 М.
Home Assistant 101: Creating and Using Packages
19:04
ResinChem Tech
Рет қаралды 4,2 М.
This is SO Much Better! Getting Started with ESPHome 2021
29:42
Everything Smart Home
Рет қаралды 334 М.
Home automation that's private and local?! (Home Assistant Yellow)
19:49
Malware Development: Processes, Threads, and Handles
31:29
Home Assistant Automation Intro
13:53
SlackerLabs
Рет қаралды 29 М.
Cool Parenting Gadget Against Mosquitos! 🦟👶 #gen
00:21
TheSoul Music Family
Рет қаралды 30 МЛН