hello
i have a sensor that gets values from internet site.
the values that it gets are 5
REDUZIDO
ALTO
etc
i wish to use the values as a gauge, for that i have to convert the value of the sensor, for example
if sensor.riscoincendio=REDUZIDO then gives value 1
if sensor.riscoincendio=ALTO then gives value 4
so that i can add the gauge with this values
after that the sensor can be refreshed for example each 4 hours.