Hi, I just installed in my home the Hiking DDS238-2 wifi two-way power meter (actually it’s a clone made by OXT model T322S - I think it’s only available in Poland) and I got it working with local tuya, I can read the total power, import power and my export to the grid - which is great and that is what I bought it for
But in my Tuya app I can see the values for current, current consumption and voltage - but I can’t get these values in local tuya (or the tuya cloud integration). I’ve tried using dp_id of 18, 19 and 20 like in a tuya smart plug but these do not work. Can anybody get me in the right direction with solving this?
This is the data from tuya iot device specification:
"result": {
"category": "dlq",
"functions": [
{
"code": "switch_prepayment",
"dp_id": 11,
"type": "Boolean",
"values": "{}"
},
{
"code": "energy_reset",
"dp_id": 12,
"type": "Enum",
"values": "{\"range\":[\"empty\"]}"
},
{
"code": "charge_energy",
"dp_id": 14,
"type": "Integer",
"values": "{\"unit\":\"kW·h\",\"min\":0,\"max\":999999,\"scale\":0,\"step\":1}"
},
{
"code": "switch",
"dp_id": 16,
"type": "Boolean",
"values": "{}"
},
{
"code": "alarm_set_1",
"dp_id": 17,
"type": "Raw",
"values": "{}"
},
{
"code": "alarm_set_2",
"dp_id": 18,
"type": "Raw",
"values": "{}"
}
],
"status": [
{
"code": "total_forward_energy",
"dp_id": 1,
"type": "Integer",
"values": "{\"unit\":\"kW·h\",\"min\":0,\"max\":99999999,\"scale\":2,\"step\":1}"
},
{
"code": "phase_a",
"dp_id": 6,
"type": "Raw",
"values": "{}"
},
{
"code": "phase_b",
"dp_id": 7,
"type": "Raw",
"values": "{}"
},
{
"code": "phase_c",
"dp_id": 8,
"type": "Raw",
"values": "{}"
},
{
"code": "fault",
"dp_id": 9,
"type": "Bitmap",
"values": "{\"label\":[\"short_circuit_alarm\",\"surge_alarm\",\"overload_alarm\",\"leakagecurr_alarm\",\"temp_dif_fault\",\"fire_alarm\",\"high_power_alarm\",\"self_test_alarm\",\"ov_cr\",\"unbalance_alarm\",\"ov_vol\",\"undervoltage_alarm\",\"miss_phase_alarm\",\"outage_alarm\",\"magnetism_alarm\",\"credit_alarm\",\"no_balance_alarm\"]}"
},
{
"code": "switch_prepayment",
"dp_id": 11,
"type": "Boolean",
"values": "{}"
},
{
"code": "energy_reset",
"dp_id": 12,
"type": "Enum",
"values": "{\"range\":[\"empty\"]}"
},
{
"code": "balance_energy",
"dp_id": 13,
"type": "Integer",
"values": "{\"unit\":\"kW·h\",\"min\":-999999999,\"max\":99999999,\"scale\":2,\"step\":1}"
},
{
"code": "charge_energy",
"dp_id": 14,
"type": "Integer",
"values": "{\"unit\":\"kW·h\",\"min\":0,\"max\":999999,\"scale\":0,\"step\":1}"
},
{
"code": "leakage_current",
"dp_id": 15,
"type": "Integer",
"values": "{\"unit\":\"mA\",\"min\":0,\"max\":1000000,\"scale\":1,\"step\":1}"
},
{
"code": "switch",
"dp_id": 16,
"type": "Boolean",
"values": "{}"
},
{
"code": "alarm_set_1",
"dp_id": 17,
"type": "Raw",
"values": "{}"
},
{
"code": "alarm_set_2",
"dp_id": 18,
"type": "Raw",
"values": "{}"
}
]
},
"success": true,
"t": 1676070737064,
"tid": "5c7e52b2a99811eda120e66c285aff6b"
}```