21.03.2022, 13:53
It will work but you would still have separate control and status for all bits.
Use this instead. 2-bit values will be mapped to 1-byte objects where you can define custom values for the 0..3 range.
Use this instead. 2-bit values will be mapped to 1-byte objects where you can define custom values for the 0..3 range.
Code:
{ "name": "Heat Pump Mode", "address": 33, "bus_datatype": "uint8", "datatype": "uint16", "type": "register", "value_bitmask": 0x6, "write_bitmask": true, "writable": true },
{ "name": "Heat Pump Control", "address": 33, "bus_datatype": "bool", "datatype": "uint16", "type": "register", "value_bitmask": 0x100, "write_bitmask": true, "writable": true },
{ "name": "Heat Pump Inverter Mode", "address": 33, "bus_datatype": "uint8", "datatype": "uint16", "type": "register", "value_bitmask": 0x600, "write_bitmask": true, "writable": true },