Should this Work?
Code:
{
"name": "On Off",
"address": 0,
"value_custom": {
"1": "Off",
"2": "On"
},
"bus_datatype": "uint8",
"datatype": "uint16",
"type": "register",
"value_bitmask": 0xC000,
"writable": true,
"write_bitmask": true
}
Best Regards,