Is it worth making the switch from the inbuilt File editor?
I like the way it shows spacing errors better etc, but im having a hard time getting all the red from VSC. If I fix some of the red bits I fail config check on bits that are clearly working ???
Was looking for something to help as I get to grips with YAML but this confuses me more if its marking things wrong that are not wrong…
Honestly, I use both. The File Editor addon I use on my phone as it renders way way way better on mobile devices then the studio code server… The studio code server I use when I have an actual computer with a keyboard and mouse in front of me.
Your indentation needs to be consisitent, so the second screenshot is wrong (or it looks that way). you have two spaces indentation mainly, but it looks like one space after data
That’s not a quirk. You actually have inconsistent indentation. Indentation is important in YAML.
cunsomize: should be indented one space further out which will mean your binary sensor entity_ids need to be two spaces further out. Same for all your device_classes, though they will now have to be 3 spaces further out because of the previous changes. See how the spacing correction trickles down to the items below?
Being reminded to use consistent indentation is one advantage of using VSCode.
Copy and paste wouldnt show the red I was talking about which was my question, so thought an image would work better .
Ill try the spacing again…what I found odd was when I spaced it in VS and got an ‘all clear’ and no red, HA then failed it on config check. Ill try again…it’s the reason VSC seems like the better option to pick up on these little things, just need to get to a point where both it and HA agree
Thanks @Tom_in_HI , fixed the customize portion thanks to your guidance. Im still struggling with the end section tho, I can get VSC to show no errors like this (which tbh doesn’t look right to me)
Thats what is tripping me up, that VSC says its good, but it’s not.
I have tracked down a nice little YAML spacing for noobs course on YT that im off to watch so I dont have to completely rely on VSC and me putting random spaces in until it’s not red
Just wondered if I was missing a way to open edits in VSC as I find myself more and more using custom cards that have no UI so really end up just editing the RAW dashboard code from the top right menu.