05.03.2025, 08:21
(05.03.2025, 06:51)admin Wrote: You need to add "datatype":"float32" to all profile entries.Am I writing this right? Or am I missing something?
Do you have documentation for this meter? Data type might be integer not floating point.
{
"manufacturer": "Cảm biến đo điện",
"description": "04 input registers,kết nối 9600,E,8,1",
"mapping": [
{ "name": "Baud rate", "bus_datatype": "float32", "type": "register", "address": 0},
{ "name": "Check digit", "bus_datatype": "float32", "type": "register", "address": 2},
{ "name": "Address", "bus_datatype": "float32", "type": "register", "address": 8},
{ "name": "Điện áp V", "bus_datatype": "float32", "type": "inputregister", "address": 0, "units": "V" },
{ "name": "Dòng điện A", "bus_datatype": "float32", "type": "inputregister", "address": 8, "units": "A" },
{ "name": "Công suất Kwh", "bus_datatype": "float32", "type": "inputregister", "address": 18, "units": "W" },
{ "name": "Tần số Hz", "bus_datatype": "float32", "type": "inputregister", "address": 54, "units": "Hz" },
{ "name": "Tổng công suất Kwh", "bus_datatype": "float32", "type": "inputregister", "address": 256, "units": "Kwh" }
]
}