Write Temperature Setpoint to Modbus as float32

Hi!
openHAB 2.2.0 Release Build

I have a problem with the setpoint item an the modbus binding.

Modbus binding:
tcp.slave2.connection=192.168.178.12:502
tcp.slave2.id=1
tcp.slave2.start=12291
tcp.slave2.length=2
tcp.slave2.type=holding
tcp.slave2.valuetype=float32

Item:
Number Temperatur "Temperatur [%f °C]" (ALL) {modbus="slave2:2"}

Sitemap:
Setpoint item=Temperatur minValue=22 maxValue=30 step=0.2

If I adjust the setpoint (BasicUI or Android App), the modbus value is only updated, if there is change from intergers (e.g. 22°C to 23°C). The decimal changes are not write to the modbus slave. So I think, openHAB only write WORDS an not float32.

How can I force openHAB to write the setpoint as float32 to the modbus slave?

That is correct, for Modbus binding version 1.x. There is no way to write 32 bit floats.

You will have to move to binding version 2
You will have to change your modbus configuration a lot, adding new Things

1 Like

Thank you! I will give it a try.