I am using the fan entity card on my dashboard for my TPLink KS240 fan/light combo switch.
I have the attribute set to percentage and it works as expected for all of the preset speed options. The issue is when the fan is off then the card shows as “Unknown” instead of 0.
The more-info popup works exactly as expected, showing Off when off and then each percentage as they’re selected.
I checked the states and when the fan is off the percentage attribute is null.
Can I configure the card to show 0 when the value is null?
type: entity
entity: fan.bedroom_fan
attribute: percentage
state_color: true
unit: "% speed"
name: Fan