{
"result": {
"category": "cz",
"functions": [
{
"code": "voltage_coef",
"dp_id": 116,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "current_a_calibration",
"dp_id": 117,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "power_a_calibration",
"dp_id": 118,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "energy_a_calibration_fwd",
"dp_id": 119,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "coef_a_reset",
"dp_id": 120,
"type": "Boolean",
"values": "{}"
},
{
"code": "freq_calibration",
"dp_id": 122,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "current_b_calibration",
"dp_id": 123,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "power_b_calibration",
"dp_id": 124,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "energy_b_calibration_fwd",
"dp_id": 125,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "coef_b_reset",
"dp_id": 126,
"type": "Boolean",
"values": "{}"
},
{
"code": "energy_a_calibration_rev",
"dp_id": 127,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "energy_b_calibration_rev",
"dp_id": 128,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "report_rate_control",
"dp_id": 129,
"type": "Integer",
"values": "{\"unit\":\"s\",\"min\":3,\"max\":60,\"scale\":0,\"step\":1}"
}
],
"lang_config": {},
"status": [
{
"code": "power_a",
"dp_id": 101,
"type": "Integer",
"values": "{\"unit\":\"W\",\"min\":0,\"max\":600000,\"scale\":1,\"step\":1}"
},
{
"code": "direction_a",
"dp_id": 102,
"type": "Enum",
"values": "{\"range\":[\"FORWARD\",\"REVERSE\"]}"
},
{
"code": "tbd",
"dp_id": 103,
"type": "Boolean",
"values": "{}"
},
{
"code": "direction_b",
"dp_id": 104,
"type": "Enum",
"values": "{\"range\":[\"FORWARD\",\"REVERSE\"]}"
},
{
"code": "power_b",
"dp_id": 105,
"type": "Integer",
"values": "{\"unit\":\"W\",\"min\":0,\"max\":600000,\"scale\":1,\"step\":1}"
},
{
"code": "energy_forword_a",
"dp_id": 106,
"type": "Integer",
"values": "{\"unit\":\"KWH\",\"min\":0,\"max\":99999999,\"scale\":2,\"step\":1}"
},
{
"code": "energy_reverse_a",
"dp_id": 107,
"type": "Integer",
"values": "{\"unit\":\"KWH\",\"min\":0,\"max\":99999999,\"scale\":2,\"step\":1}"
},
{
"code": "energy_forword_b",
"dp_id": 108,
"type": "Integer",
"values": "{\"unit\":\"KWH\",\"min\":0,\"max\":99999999,\"scale\":2,\"step\":1}"
},
{
"code": "energy_reserse_b",
"dp_id": 109,
"type": "Integer",
"values": "{\"unit\":\"KWH\",\"min\":0,\"max\":99999999,\"scale\":2,\"step\":1}"
},
{
"code": "power_factor",
"dp_id": 110,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":0,\"max\":100,\"scale\":2,\"step\":1}"
},
{
"code": "freq",
"dp_id": 111,
"type": "Integer",
"values": "{\"unit\":\"Hz\",\"min\":0,\"max\":10000,\"scale\":2,\"step\":1}"
},
{
"code": "voltage_a",
"dp_id": 112,
"type": "Integer",
"values": "{\"unit\":\"V\",\"min\":0,\"max\":28000,\"scale\":1,\"step\":1}"
},
{
"code": "current_a",
"dp_id": 113,
"type": "Integer",
"values": "{\"unit\":\"mA\",\"min\":0,\"max\":1000000,\"scale\":0,\"step\":1}"
},
{
"code": "current_b",
"dp_id": 114,
"type": "Integer",
"values": "{\"unit\":\"mA\",\"min\":0,\"max\":1000000,\"scale\":0,\"step\":1}"
},
{
"code": "total_power",
"dp_id": 115,
"type": "Integer",
"values": "{\"unit\":\"W\",\"min\":-99999999,\"max\":99999999,\"scale\":1,\"step\":1}"
},
{
"code": "voltage_coef",
"dp_id": 116,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "current_a_calibration",
"dp_id": 117,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "power_a_calibration",
"dp_id": 118,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "energy_a_calibration_fwd",
"dp_id": 119,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "power_factor_b",
"dp_id": 121,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":0,\"max\":100,\"scale\":2,\"step\":1}"
},
{
"code": "freq_calibration",
"dp_id": 122,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "current_b_calibration",
"dp_id": 123,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "power_b_calibration",
"dp_id": 124,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "energy_b_calibration_fwd",
"dp_id": 125,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "energy_a_calibration_rev",
"dp_id": 127,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "energy_b_calibration_rev",
"dp_id": 128,
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":800,\"max\":1200,\"scale\":3,\"step\":1}"
},
{
"code": "report_rate_control",
"dp_id": 129,
"type": "Integer",
"values": "{\"unit\":\"s\",\"min\":3,\"max\":60,\"scale\":0,\"step\":1}"
},
{
"code": "forward_energy_total",
"dp_id": 130,
"type": "Integer",
"values": "{\"unit\":\"KWH\",\"min\":0,\"max\":99999999,\"scale\":2,\"step\":1}"
},
{
"code": "reverse_energy_total",
"dp_id": 131,
"type": "Integer",
"values": "{\"unit\":\"KWH\",\"min\":0,\"max\":99999999,\"scale\":2,\"step\":1}"
}
]
},
"success": true,
"t": 1737943744392,
"tid": "aeb96039dc5311ef9e609e9247cde4aa"
}
Description
Instalation Type:
Home Assistant v2025.1.4
Docker
Device Id: bfd48240bb75dc18d9aa5b
Product Id: bbcg1hrkrj5rifsd
Product: https://www.aliexpress.com/item/1005005873738695.html
Expected Matching File: custom_components/tuya_local/devices/matsee_2way_energymeter.yaml
Expected Behavior:
When adding the device, Tuya Local manages to properly detect the device.
Actual Behavior:
Shows a list of devices that doesn't match an energy meter, and in the logs has the following line:
2025-01-27 01:29:52.043 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches None with quality of 0%. DPS: {"updated_at": 1737941390.245925}Any idea on what could be the root cause?
More information regarding the device below:
Device Data Points
Steps to reproduce
No response
Expected behaviour
No response
Additional context
No response
Confirmation
I am sure this is a bug or improvement, that is well enough described that it can be implemented.
If this is for a specific device, the device config is mentioned above, or diagnostics are included.
Log messages or diagnostics relevant to the issue are included.
This is not requesting addition of a new device.