Hi,
I am using the custom button-card for some entities so I can change color according to a state and it works well like this:
type: custom:button-card
state:
- value: 'on'
color: yellow
I am trying to do same thing with battery sensor, I want to set value over > 25% to turn battery sensor icon to red.
I couldn’t find how to achieve that. Value gives you only a set value and not range.
Any ideas if someone tried that before?
Thanks