I am desperately looking for a way to assess a temperature reading. So 0-15°C = 0 points 15-20°C is then one point.
I have realized this by using an if structure. But now I need the function several times. I tried a SCALE transformation but I always get strings back but I want to continue to calculate with it.
It may well be that I have not yet arrived at the OpenHAB universurm and still think too much in C.
Thanks for your help.
Thanks a lot. I have implemented the solution of rossko57 and it works fine.
The solution using IF queries I had so far but when I use it on more than two places I get the wish to do it in a sub-function. Especially because the values are not fixed yet.