is a good approach and i will like to use it in my automation but i need more info on the usage of the code.
i.e in example provided the is a syntax like:
register = HoldingRegisters.BMSBatteryCapacity
BMSBatteryCapacity is an example but where we can find the rest?
similar for WritableRegisters :)