Hello to everyone,
i´ve successfully installed some Smoke Detectors, including battery status in volts.
The card shows the icon in red color because of 3.14 V value.
Is it possible to change the color to green if value is upon 3.0 volts?
yes I know, I use it myself.
device_class battery looks for a value between 0 and 100 %, not Volt.
when you provide it with a value of 3,14 it will see it as 3,14% = an almost drained battery.
best way to solve this is to take the ‘on’ or ‘off’ route.
< 3V being off , and > 3V being on.
icon style and color can than be changed accordingly by templating.