[SOLVED] Widget color logic

Hi There

I have a battery widget that shows the batt of a 3V coin cell. Im trying to set the color logic on the widget as follow

on select color logic it is set as follow:
range from 2900 green
range from 2500 red

Full range value in the widget is 2500 to 3100

the widget is green from 3100 to 2900 then turns red from 2900 down to 2500 which is correct. but then it turn green again. I would like to keep it red. I think im misinterpreting the range logic values


Is htere any documentation on this?

I would also like to know how to add “mV” after the reading, is that done in the HTML code or in my variable I send?

thanks so much

Hello @Melt777,

The first field refers to the “from” number and the second field to “to” number. Where the first number is inclusive of the range and the next number is non-inclusive of the previous range. Your configuration must be:

To add the unit of measurement you must edit it directly from the view of the variable, here you can find documentation of how to do it.

Cheers,
Maria H.