Adding two types in one card

Hi everyone, been playing around for a while and searching but not having much joy. I’m trying to add two bits of code to one card, but I keep getting the duplicate entry key error.

They both work fine in their individual cards, however would like to merge the two of them together.

Any idea how I would have both of these bits of code in one card?

type: entities
title: Media
  - entity: switch.chromecast
  - entity: switch.xboxone
  - entity: switch.playstation_2
  - entity: switch.xbox360


type: 'custom:mini-media-player'
volume_stateless: true
  power: true

Thanks in advace

Check out the vertical stack card. I think it’s exactly what you want.

1 Like

Thanks Steve, will have a play when home from work tomorrow.