I really dont understand this yaml Coding!! Im a total noob at this and I have tried copying/pasting, trials and error… sometimes it works, sometimes it dont. More often it dont…
Sometimes I coding yaml directly in lovelace card, sometimes in raw editor… dont really understand when to use what.
Also, sometimes there is spaces sometimes its not, sometimes there is ”-” sometimes its not!!
Sometimes it says ”cards:” sometimes it says ”card:”…
Sometimes I do cut and paste, in my beleive that it would just works as it would be a correct code. But nope… still need to truggle with spaces to get it working!
Sometimes it says ”type:” sometimes it says ”- type:”, sometimes it says ”cards:” sometimes it says ”- cards:”…!!..!!
What the fu****
Fine, doing a one card only configuration is often not a big problem. But when using Many cards together, and maybe using vertical and/or horisontal stacks I really gets lost and have no clue what im doing!!
Can someone please help me out on this, please explain when to use what!! And why!
Also, should I use any kind of text editor instead of raw editor as it is impossible to get all the spaces correctly!?
The top level card type will never have “-” in front of it if using the UI card input method. It will if viewing in the raw editor as you are looking at a list of cards in a view. Not a single card.
e.g. this is what the first example would look like in the RAW editor:
As for “card:” or “cards:” the distinction lies in the fact of whether the underlying configuration supports multiple cards (hence “cards:” is used) or a single card (and that is when “card:” is used).
I think I understand a little bit better now, althought its quite difficult when there is many cards and horisontal/vertical stacks, and entities together!
Like this one, I want to make a layout that have this structure. Left column (red) would be fixed and on all my tabs. But middle and right column would be more dynamic and on all my tabs with various info.
But I dont manage to get the cards work correctly. Althought it creates my horisontal and vertical stacks, and also my cards… my cards is not editable like a “real” cards?