Modbus TCP, Pokeys57E and DS18B20

as described here

Sound like your Modbus config is cached.
I will gladly use @Dim here

@AndrewZ i get this in the log file:

12:26:19.185 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JS
12:26:19.187 [WARN ] [nding.modbus.internal.Transformation] - couldn't transform response because transformationService of type 'JS' is unavailable

Seems that the JS conversion isnt going right

Just to be sure. The value from modbus i.e temperature is right, just decimals are wrong?

Do you have JavaScript Transformation installed?PaperUI -> Add-ons -> Javascript transformation.
Where did you save the div100.js file?

Try to use the transformation like this. In channel config part:

Number temperature "Test [%.1f °C]" <temperature> (gTemperature) { modbus="<[slave1:0:transformation=JS(div100.js)]"}

Notice that format option “%.1f” gives you one decimal. E.g 21.5 °C.

Javascript wasn’t installed :sweat_smile::sweat_smile:

It is working now with “%.1f” instead of “%d” :slight_smile:

1 Like

Good to hear it’s working!

Did you mark your own post as solution? :slight_smile: