Change the "label" of a card

Hey folks, I’m not a programmer but trying to improve in this. I’m currently using the UI Minimalist theme, it comes with a bunch of cards but I’m in need of some card that let me change the color of the card when an entity is off and on (like the image below) but I also need that return a sensor status when turned on like “On” or “Off” but not shown when sensor off.
Currently I’m using a “navigation card” that changes the color when turned on and off, it is working perfectly but I’m looking for a solution to show certain text below (like “3 devices turned on”).

- type: custom:button-card
  template: card_navigate
  entity: switch.piscina
  variables:
    ulm_card_navigate_path: "#pool"
    ulm_card_navigate_title: Piscina
    ulm_card_navigate_icon: mdi:pool
  hold_action:
    action: toggle
  state:
    - value: 'on'
      styles:
        card: 
          - background-color: '#FFF2CC'
        icon: 
          - color: '#ff9100'
        img_cell:
          - background-color: '#fedea3'
    - value: 'off'
      styles:
        card: 
          - background-color: '#7FC7D9'
        icon: 
          - color: 'gray'
        img_cell:
          - background-color: '#DCF2F1'

Whenever I try to use a sensor or generic card from the UI minimalist, I lost control of the card, like so:



My question is, is there any way possible to use a card that can show a label when certain entities are turned on (a sensor like, which I know how to create) but when a entity is turned off, it only show a tittle?

You should ask in the Minimalist thread.

1 Like