Custom:banner-card No button for a switch entity?

I am trying to use the custom:banner-card to clean up some of my Lovelace pages.
As I read the docs, the following code should give me a button, but it doesn’t.
What am I missing?

type: custom:banner-card
background: '#eDf7B0'
heading:
  - mdi:desk
  - Office
entities:
  - entity: switch.kim_desklight
    name: Kim's desk light
    action:
      - service: switch.toggle
        service_data:
          entity_id: switch.kim_desklight
    map_state:
      'on':
        color: yellow
        value: mdi:desk-lamp-on
      'off':
        color: lightblue
        value: mdi:desk-lamp-off

this works


  - entity: light.driver_hallway
    name: test
    value: mdi:book-open-page-variant
    action:
      service: light.toggle

PS: even with switch …

type: custom:banner-card
theme: noctis-grey
heading: false
row_size: 1
card_mod:
  style: |
    ha-card div.overlay-strip{
      box-shadow: none;
      font-size: 10px;
      margin: -10px 0px 0px 0px;
      background: rgba(0,0,0,0.0);
    }
entities:
  - entity: switch.dplug_1
    name: Air Temp
    value: mdi:book-open-page-variant
    action:
      service: switch.toggle
    map_state:
      'on':
        color: yellow
        value: mdi:desk-lamp-on
      'off':
        color: lightblue
        value: mdi:desk-lamp-off

What am I missing? My entities: section looks almost exactly like yours and I can’t toggle the switch.

type: custom:banner-card
background: '#eDf7B0'
heading:
  - mdi:desk
  - Office
entities:
  - entity: switch.kim_desklight
    name: Kim's desk light
    action:
      service: switch.toggle
    map_state:
      'on':
        color: yellow
        value: mdi:desk-lamp-on
      'off':
        color: lightblue
        value: mdi:desk-lamp-off


type: custom:banner-card
background: '#eDf7B0'
heading:
  - mdi:desk
  - Office
entities:
  - entity: switch.dplug_1
    name: Kim's desk light
    action:
      service: switch.toggle
    map_state:
      'on':
        color: yellow
        value: mdi:desk-lamp-on
      'off':
        color: lightblue
        value: mdi:desk-lamp-off

I just CP’d yours and change entity … works …

Strange- and you get a button?

Don’t know what you will call it, it’s the icon(s) , but yes “on hold” i get the “info-popup” of the Switch/button … <<< Edit, on click on text , and when “hoover over” the icon , the mouse-pointer doesn’t change (from arrow to hand) , but click works … so it’s a pretty weird behavior

06.03.2023_10.53.10_REC

This repo fixes the issue

Banner-card

i know, been using that repo for more than half a year … however it also seems abandoned ( or atleast no changes/updates for 2 years

So i finally decided to ditch this card ( few weeks ago ), nothing wrong with it, just im re-designing ( ones again :laughing: ) … moving towards less variations of custom cards, and more native ( where suitable )

There are 2 repos, 1 works (showing buttons) and one doesn’t. The reply is for stevemann who’s isn’t showing buttons.