MQTT Binding and Units of Measurement

This has bugged me for a while, and has been logged a couple of times on GitHub 6751 and 10338, and those issues have links to related posts in this community. I logged a pull request to resolve it here. Unfortunately other underlying code has changed substantially since I logged the pull request. I made a brief unsuccessful attempt to update it a few weeks ago and haven’t had time to look at it subsequently, I will see if I can have another crack at it. I think the comments in the second issue explain the behaviour you are seeing (initial correct conversion for system UoM to item UoM, subsequent misapplication of UoM applying item UoM directly to value).

2 Likes