07.10.2024, 08:20
Use this. I've also fixed incorrect value_custom (should be "0" instead of "01").
Code:
{
"name": "Alarm Status - bit 0 - Error flow temperature",
"bus_datatype": "bool",
"datatype": "uint16",
"type": "register",
"address": 119,
"value_bitmask": 0x01,
"value_custom": {"0": "OK", "1": "Alarm"}
},
{
"name": "Alarm Status - bit 1 - Error return temperature",
"bus_datatype": "bool",
"datatype": "uint16",
"type": "register",
"address": 119,
"value_bitmask": 0x02,
"value_custom": {"0": "OK", "1": "Alarm"}
},