Skip to content

How to change border color of picture-elements / state-badge? #22188

Discussion options

You must be logged in to vote

Try these vars:

type: picture-elements
elements:
  - type: state-badge
    entity: binary_sensor.service_on_value
    style:
      top: 32%
      left: 40%
      '--label-badge-text-color': magenta
      '--label-badge-blue': cyan
      '--label-badge-background-color': yellow
      '--ha-label-badge-size': 75px
  - type: state-badge
    entity: sensor.xiaomi_cg_1_co2
    style:
      top: 66%
      left: 77%
      color: orange
      '--label-badge-text-color': magenta
      '--label-badge-red': green
      '--label-badge-background-color': yellow
      '--ha-label-badge-label-color': blue
      '--ha-label-badge-size': 75px
      '--ha-label-badge-title-width': 150px
      '--ha-label-b…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bugarovic
Comment options

Answer selected by bugarovic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants