Duplicate Key in ui-lovelave.yaml

I am getting the following warnings in my HA log

  • YAML file /config/ui-lovelace.yaml contains duplicate key “group”. Check lines 990 and 1015
  • YAML file /config/ui-lovelace.yaml contains duplicate key “hide”. Check lines 991 and 1016
  • YAML file /config/ui-lovelace.yaml contains duplicate key “icon”. Check lines 995 and 1022
  • YAML file /config/ui-lovelace.yaml contains duplicate key “name”. Check lines 996 and 1023
  • YAML file /config/ui-lovelace.yaml contains duplicate key “type”. Check lines 997 and 1024

When I check my ui-lovelace.yaml I can see the entries the warnings are referencing but I’m not sure how to adress the issue.
Here is the block where the Warnings are coming from.

#Layout-Card Music Test
- type: vertical-stack
cards:
- type: iframe
url: http://stream.domain.tld
aspect_ratio: 75%
- type: entities
entity: media_player.main_controller
group: true
hide:
controls: false
source: true
volume: false
icon: ‘mdi:music-circle’
name: Multi-Room Audio
type: ‘custom:mini-media-player’

        entity: media_player.snapcast_client_e921ace5_3774_4190_b02b_fc3d4f66c17f
        source: true
        group: true
        hide:
          controls: true
          power: true
          power_state: false
          source: true
          volume: false
        icon: 'mdi:speaker-multiple'
        name: Deck Speakers
        type: 'custom:mini-media-player'

Can I not have group, icon, name etc on seperate cards? Or are these warnings being generated because I’m mashing seperate cards together inside a verticle-stack and HA doesn’t like that?

Your indentations are completely wrong (and by that I mean: there is none). I advise to read up if you haven’t used YAML before, or study codes of others to learn how to properly use YAML → User Manual

Looking at your code I think it’s not finished, or you missed some stuff. I see type: entities but no further veriables of the card. Anyay, here’s how to properly format it.

- type: vertical-stack
  cards:
    - type: iframe
      url: http://stream.domain.tld
      aspect_ratio: 75%
    - entity: media_player.main_controller
      group: true
      hide:
      controls: false
      source: true
      volume: false
      icon: ‘mdi:music-circle’
      name: Multi-Room Audio
      type: 'custom:mini-media-player'
    - entity: media_player.snapcast_client_e921ace5_3774_4190_b02b_fc3d4f66c17f
      source: true
      group: true
      hide:
        controls: true
        power: true
        power_state: false
        source: true
        volume: false
      icon: 'mdi:speaker-multiple'
      name: Deck Speakers
      type: 'custom:mini-media-player'  

This gives iframe and two custom:mini-media_player cards in a vertical stack. I left out the variable type: entities because there is nothing else in your code that goes with that. Good luck!

Hmmm thanks for the assumption that I don’t know Yaml and ignoring that maybe something happened to the formatting for half the code example.

Anyways, thanks for the catch on the - type: entities line. Is this a recent change? I’ve had this card setup pre 106 and I just noticed the warnings after my monumental jump from 106 to 116.