Cool!
Please also check out my work on profiles implementing something similar [Modbus] Testing needed: scaling values to Quantity-aware Numbers and writing individual bits
The benefit of profile is that it works also the other way, from commands to modbus data, taking care of inverse scale and unit transformations.