20.02.2019, 07:34
Start by reading raw register data by using int16 datatype (2 byte signed integer). Keep in mind that you need to delete device entry and create new one after uploading updated profile.
If values are correct (temperature values will be x100) then profile can be modified to add value conversion using float data type. In any case do not change datatype fields, only bus_datatype.
If values are correct (temperature values will be x100) then profile can be modified to add value conversion using float data type. In any case do not change datatype fields, only bus_datatype.
Code:
{
"manufacturer": "Trox",
"description": "Test",
"mapping": [
{
"name": "Ertemp Zone 1",
"bus_datatype": "int16",
"type": "register",
"address": 1009,
"datatype": "int16",
"writable": false
},
{
"name": "CO2",
"bus_datatype": "int16",
"type": "register",
"address": 1012,
"datatype": "int16",
"writable": false
},
{
"name": "Setpoint",
"bus_datatype": "int16",
"type": "register",
"address": 1014,
"datatype": "int16",
"writable": true
}
]
}