Is there a way to transform a whole range of numbers. Something like a map() function in arduino.
For example to transform the numbers from 234 to 833 into a range from 0 to 100.
I guess MAP will not work and I can’t find ANY documentation or examples of SCALE.
For example, here a simple rule to translate from Fahrenheit into Celsius:
You have to save this as a file in the transformation folder.
You may want to check out this: http://docs.openhab.org/addons/transformations/scale/readme.html
Documentation plus examples, kindly provided…
I found that, bu as I understand those examples it transforms a renge of numbers into a string… not into a nother range.
Unless it would work like this: ?