I have following code but for some reason wrong icon color is shown as seen in image … Ytterdörr (sw) and Sovrum (Smart Button) should be green not yellow
type: custom:battery-state-card
title: Batterikapacitet - HUE
sort:
by: state
desc: false
color_thresholds:
- color: red
value: 10
- color: light red
value: 20
- color: yellow
value: 40
- color: green
value: 100
entities:
- entity: sensor.switch_ytterdorren_battery_level
name: Ytterdörr (sw)
- entity: sensor.switch_entre_battery_level
name: Entré (sw)
- entity: sensor.hue_smart_button_1_batteri
name: Entré (Smart Button)
- entity: sensor.hue_dimmer_switch_2_batteri
name: Kök (sw)
- entity: sensor.switch_diskbank_battery_level
name: Diskbänk (sw)
- entity: sensor.switch_hall_arbetsrum_battery_level
name: Hall Arbetsrum (sw)
- entity: sensor.hue_dimmer_switch_1_batteri
name: Badrum (sw)
- entity: sensor.hue_motion_sensor_1_batteri
name: Nattbelysning (ms)
icon: mdi:motion-sensor
- entity: sensor.sovrum_sensor_anne_battery
name: Sovrum Säng Anne (ms)
icon: mdi:motion-sensor
- entity: sensor.sovrum_sensor_raivo_battery
name: Sovrum Säng Raivo (ms)
icon: mdi:motion-sensor
- entity: sensor.hue_smart_button_2_batteri
name: Sovrum (Smart Button)
secondary_info: last_updated
