I am in the process of migrating from mqtt v1.0 plugins to 2.0 plugins, and I am running into an issue I cannot solve. I have searched high and low and cannot find an answer. Unfortunately I do not really understand the documentation either.
I am hoping someone can help me out.
In the documentation here: https://www.openhab.org/addons/bindings/mqtt.generic/ there is talk about “Format before Publish”
The issue I have is that I have some custom build devices that is expecting to receive a value from 1 to 100. (A percentage), but all I can get openhab2 to send is a float. 1.0 - 100.0. How can I get rid of the “.0” suffix?
I think the problem is that I do not understand the format I am supposed to write the transformations in.
Second problem is regarding the same functionality. I would like to have a “%”-sign after a value I receive from a device, but I cannot figure out how to escape the %-sign so that openhab will stop tripping over it.