Cards Configuration error

Hello, i have a problem with cards:
i’ve splitted my configuration in a several files, so when i write following code

  - type: vertical-stack
    cards:
        - type: horizontal-stack
          cards:
           - type: entities
             title: Luci Soggiorno
             entities:
                      - entity: light.luci_ingresso
                        name: Luci Ingresso
                        
                      - entity: light.luci_divano     
                        name: Luci Divano
                        
                      - entity: light.luci_tv
                        name: Luci TV
                        
                      - entity: light.applique_sinistro
                        name: Applique Sinistro
                        
                      - entity: light.applique_destro
                        name: Applique Destro
  - type: vertical-stack
    cards:
      - type: horizontal-stack
        cards:
         - type: media-control
           title: TV Soggiorno
           entities:
                    - entity: media_player.tv_soggiorno
                      name: Tv Soggiorno
                    - entity: media_player.yamaha_receiver
                      name: Sinto Yamaha RX-V483

in Cards_soggiorno.yaml, it give me error

If i write media-control code in the views.yaml referred to soggiorno, it works! only in a splitted cards it don’t work! I’ve checked several times the indent and it seems correct!
Please help me!!

your indenting looks totally wrong for the horizontal stack and the entities

I’m asking for help, i dont need your opinion. Removing section for media control, it works as you can see from attached image, so before shooting sentences, try to suggest correct identing…

If you’re going to be a dick to someone trying to help, good luck getting help!

2 Likes

Ah, so are you trying to help me? really, i’m confused, you are said that identing is wrong without suggesting any solution… so where is help?

By looking at your join date you sure have been around here for a while and therefore should realize that:

  1. you should already know how to write yaml code so when someone points out that your indenting might be off you should probably be able to go and see for yourself where it’s wrong.

  2. that you shouldn’t be so crappy (or as @DavidFW1960 so eloquently said being a “edited:slightly_smiling_face: ) to people who are voluntarily trying to help you when you are the one who asked for help in the first place.

  3. figure it out yourself…

EDIT to add:

This is in no way spam. Whoever flagged it as such doesn’t understand the definition of the word…

What are your problems with a person that ask for help?

  1. If you have read what i wrote, you can understand that writing single code directly in views without splitting(entities or media-control) it works.
    For example:
views:
  - type: vertical-stack
    cards:
        - type: horizontal-stack
          cards:
           - type: entities
             title: Luci Soggiorno
             entities:
                - entity: light.luci_ingresso
                  name: Luci Ingresso                       
                  - entity: light.luci_divano     
                    name: Luci Divano                        
                  - entity: light.luci_tv
                    name: Luci TV                        
                  - entity: light.applique_sinistro
                    name: Applique Sinistro                        
                 - entity: light.applique_destro
                   name: Applique Destro

  - type: vertical-stack
    cards:
      - type: horizontal-stack
        cards:
         - type: media-control
           title: TV Soggiorno
           entities:
                    - entity: media_player.tv_soggiorno
                      name: Tv Soggiorno
                    - entity: media_player.yamaha_receiver
                      name: Sinto Yamaha RX-V483

And yes, i should probably know what are i doing, but if this is true then i should delete this post, right Doc?
2) This person dind’t tryed to provide help, He provide only useless information same as you with this, that you are writing only for numbers.
3) See above…

Absolutely none. I offer to help people who ask for it literally every day on this forum.

The difference is they don’t get edit (rhymes with gritty) right out of the gate when someone tries to point out a potential flaw in their code.

yes. I think you should delete this post and start over and not be so edit: angry.

Or else see #3 above.