I have been looking around and so far I am not been able to find this. so I hope that someone can help.
I would like the percentage values to change colour depending on the charge of the battery.
example from 100 to 70% to be green,
from 70 to 30% to be yellow
from 30 to 0 to be red
I have start it this off, but I am not sure on my next step
type: horizontal-stack
cards:
- type: entity
entity: sensor.givtcp_be2132g059_battery_soc
name: 8.2 khw Battery - type: entity
entity: sensor.givtcp_ce2142g147_soc
name: '5.2 khw Battery ’