Scale transformations not working at all?

Scale with ranges not working at all?

I am trying to get scale transformations to work. I have several use cases but one specific is for my personal weather station. This return a direction in degrees that I want to convert to a string like “N”, “E”, “S” or W".

compass.scale

[0..44]=N
[45..134]=E
[135..224]=S
[225..304]=W
[305..360]=N

I keep getting errors like these

2017-02-18 08:41:00.202 [WARN ] [rm.AbstractFileTransformationService] - Could not transform '315' with the file 'compas
s.scale' : Target value not found in map for '315'

To me it looks like as if the scale is not working at all.

Hi,
I face the same problem. Works well with single values (i.e 3=Full) but not with ranges (i.e. [2…3]=Full)
Did you manage to find a solution using SCALE/MAP ?

Documentation here seems inaccurate : http://docs.openhab.org/addons/transformations/scale/readme.html#example

Did you try it in the OH1 syntax [0,89] for 0 to 89?

It worked for me after restarting openhab…