22.06.2022, 08:07
Also writable value should be true without quotes otherwise newer firmware won't accept the profile. Addressing starts with 0 and for mode/speed registers you can use 1 byte (uint8) data type.
Code:
{
"manufacturer": "YORK",
"description": "HA-MA164AD",
"mapping": [
{
"name": "Indoor Unit Setpoint Temperature",
"address": 0,
"bus_datatype": "uint16",
"datatype": "uint16",
"type": "register",
"writable": true
},
{
"name": "Indoor Unit Mode Selection",
"address": 1,
"bus_datatype": "uint8",
"datatype": "uint16",
"type": "register",
"writable": true
},
{
"name": "Indoor Unit Fan Speed",
"address": 2,
"bus_datatype": "uint8",
"datatype": "uint16",
"type": "register",
"writable": true
},
{
"name": "Indoor Unit Control Mode",
"address": 3,
"bus_datatype": "uint8",
"datatype": "uint16",
"type": "register",
"writable": true
},
{
"name": "Indoor Unit On/Off",
"address": 0,
"bus_datatype": "bool",
"type": "coil",
"writable": true
}
]
}