Hide entity text on State-Badge in Picture element

How can you get the name of the enitity to not show on on the picture element.

Welcome Lyn,

You can use the color and style on your entity
Look at this from my config.

      - entity: sensor.xiaomi_temperature
        style:
          color: transparent
          font-size: 8px
          left: 64%
          top: 11.5%
          '--label-badge-background-color': white
          '--label-badge-text-color': black
        title: Xiaomi température
        type: state-badge

image

type: picture-elements
elements:
  - type: state-badge
    entity: sensor.solar_charge_mode
    color: transparent
    font-size: 8px
    style:
      top: 60%
      left: 40%
      title: Charge Mode

Still have name showing.

That’s because you did not apply the style shown in Olivier’s post.

Not in the right place, should be under style:

1 Like