thomasloven / lovelace-state-switch

🔹Dynamically replace lovelace cards depending on occasion
MIT License
382 stars 27 forks source link

"No card type configured" HA 2024.1.3 #114

Open Ark9975 opened 5 months ago

Ark9975 commented 5 months ago

I am still pretty new to yaml and making custom dashboards with minimalist and thought this should work but nothing I have tried has worked so far. I have tried restarting numerous times but this error never changes: firefox_NBkPTP1mCn

This is my yaml for the view

title: "Bedroom"
path: "bedroom"
cards:
  - type: custom:state-switch
    entity: user
    states:
      Ali:
        - type: "custom:button-card"
          template: chip_back
          variables:
            ulm_chip_back_path: home

        - type: "custom:button-card"
          template: card_title
          name: Bedroom

        - type: custom:mini-media-player
          entity: media_player.ali_s_bathroom_speaker
          name: Bathroom Speaker
          icon: mdi:music
          artwork: cover
          shortcuts:
            columns: 1
            buttons:
              - name: Favourites
                type: service
                id: spotcast.start
                data:
                  device_name: "Ali's Bathroom Speaker"
                  uri: spotify:playlist:0bmtkxVk4AHAFolJxOlAw7
                  random_song: true
                  shuffle: true