I saw a lot of questions about how to change the color of a badge. I have the opposite problem: for some reason one of my badges is displayed with another color and I do not know why:
I will use the Cuisine
badge (the weird colored one) and Parents
to show the configuration (they are identical):
- platform: mqtt
name: "cuisine_battery"
state_topic: "zigbee2mqtt/0x00158d00023d55e4"
unit_of_measurement: '%'
value_template: "{{ value_json.battery }}"
availability_topic: "zigbee2mqtt/bridge/state"
device_class: "battery"
- platform: mqtt
name: "parents_battery"
state_topic: "zigbee2mqtt/0x00158d000249a87f"
unit_of_measurement: '%'
value_template: "{{ value_json.battery }}"
availability_topic: "zigbee2mqtt/bridge/state"
device_class: "battery"
They both have their friendly name customized (again, the same way)
sensor.cuisine_battery:
friendly_name: "Cuisine"
sensor.parents_battery:
friendly_name: "Parents"
They are not defined / customized elsewhere.
Is there a built-in mechanism which will set the color of a badged based on some value of its state?