-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request support for WDYK 3 Phase 4 pole 400V circuit breaker with Energy Monitoring #550
Comments
Hey Mate, I have a device which I believe has the same datapoints. How do I force the integration to use this setup on my device? |
If the datapoints seem to match based on the iot.tuya.com documentation, but it is not detected as this device, then most likely some datapoints are missing from what the device is actually reporting, and need to be made optional in the config. |
@make-all Can you help me with that? It is also a 3-phase monitor of energy. Here's the error: 2023-10-08 12:56:29.392 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches simple_switch_timerv2 with quality of 25%. DPS: {"updated_at": 1696751788.3610804, "1": false, "9": 0, "26": 0, "38": "2", "40": false, "104": 0, "105": 42, "107": 0, "114": 141, "115": "400100000022 ", "117": false, "118": 0} These are the datapoints from the tuya API { |
Sensors seem to be missing from the data, assume these need to be force polled, and mark them as optional so the config matches. Identified the unknown dps, though meaning of RKWH unclear (reverse energy?) Issue #550
It seems the current, voltage and power readings are not being included in the local data. |
Does that mean that it won't report the voltage, current, and power readings? I could using the datapoints manually extract 1 of the voltages/amps and power but was unsure how I could get that from the other phases. Also, how can I test that committ? Thank you so much for your help & fast response! |
If you use HACS, you can test the commit by going into HACS and opening the tuya-local details, then from the top right menu select "Redownload". This should give you a menu where you can select the version to download, and if you select "main", it will download the latest from git. You seem to need to wait until that select box becomes active again after selecting an option before pressing the Download button, otherwise it downloads the default (latest release) instead. |
@make-all Works a charm! Appreciate it buddy! I had an issue with starting the config flow. It gave me an error. When I closed and tried to add the integration again it worked though, not sure if that's related. |
If you have not since restarted Home Assistant, "an error" should be in the log. |
2023-10-08 13:44:39.856 ERROR (SyncWorker_3) [homeassistant.util.json] Could not parse JSON content: /config/custom_components/tuya_local/translations/en.json |
Thanks, this was due to a recent change, an extra comma in the file. |
Hi,
It would be greatly appreciated if you can please please pleaseadd device support for WDYK 3 phase 4 pole Circuit breaker with Energy Monitoring:
All Tuya DPs
Name DP_ID
Switch 1 1
Voltage 101
Relay Status 38
Current 102
Active Power 103
Child Lock 40
Leakage Current 106
Countdown 1 9
Temperature 105
Remaining Energty 107
Recharge Energy 108
Cost Parameters 109
Leakage Parameters 110
Voltage Threshold 111
Current Threshold 112
Temperature Threshold 113
Active Energy 114
Equipment Number 115
Clear Energy 116
Locking 117
????? 118 kWh
Historical Voltage 119
Historical Current 120
Fault 26
Tuya IOT Device Stats:
{
"result": {
"category": "cz",
"functions": [
{
"code": "switch_1",
"dp_id": 1,
"type": "Boolean",
"values": "{}"
},
{
"code": "countdown_1",
"dp_id": 9,
"type": "Integer",
"values": "{"unit":"s","min":0,"max":86400,"scale":0,"step":1}"
},
{
"code": "relay_status",
"dp_id": 38,
"type": "Enum",
"values": "{"range":["power_off","power_on","last"]}"
},
{
"code": "child_lock",
"dp_id": 40,
"type": "Boolean",
"values": "{}"
}
],
"status": [
{
"code": "switch_1",
"dp_id": 1,
"type": "Boolean",
"values": "{}"
},
{
"code": "countdown_1",
"dp_id": 9,
"type": "Integer",
"values": "{"unit":"s","min":0,"max":86400,"scale":0,"step":1}"
},
{
"code": "relay_status",
"dp_id": 38,
"type": "Enum",
"values": "{"range":["power_off","power_on","last"]}"
},
{
"code": "child_lock",
"dp_id": 40,
"type": "Boolean",
"values": "{}"
}
]
},
"success": true,
"t": 1679086586001,
"tid": "2e88838bc50611edacf08ac5d669b858"
HomeAssistant Device Logs:
"custom_components": {
"localtuya": {
"version": "5.0.0",
"requirements": []
},
"tuya_local": {
"version": "2022.3.0",
"requirements": [
"pycryptodome~=3.17",
"tinytuya==1.11.0"
]
},
"hacs": {
"version": "1.31.0",
"requirements": [
"aiogithubapi>=22.10.1"
]
}
},
"integration_manifest": {
"domain": "tuya_local",
"name": "Tuya Local",
"codeowners": [
"@make-all"
],
"config_flow": true,
"dependencies": [],
"documentation": "https://github.com/make-all/tuya-local",
"integration_type": "device",
"iot_class": "local_push",
"issue_tracker": "https://github.com/make-all/tuya-local/issues",
"requirements": [
"pycryptodome~=3.17",
"tinytuya==1.11.0"
],
"version": "2022.3.0",
"is_built_in": false
},
"data": {
"name": "Main",
"type": "simple_switch_timerv2",
"device_id": "REDACTED",
"local_key": "REDACTED",
"host": "REDACTED",
"protocol_version": 3.3,
"api_version_set": 3.3,
"api_version_used": 3.3,
"api_working": true,
"status": {},
"cached_state": {
"updated_at": 1679087025.450826,
"1": true,
"9": 0,
"26": 0,
"38": "2",
"40": false,
"104": 7,
"105": 38,
"107": 0,
"114": 876221,
"115": "400100000001 ",
"117": false,
"118": 0,
"101": "CQEJBglW",
"102": "AAAAAAr5AAjO",
"103": "ACWyAAAAABfOAA3j",
"119": "CQwJGQks",
"120": "AAAAAAsjAAo9"
},
"pending_state": {},
"connected": true,
"force_dps": [],
"home_assistant": {
"name": "Main",
"name_by_user": null,
"disabled": false,
"disabled_by": null,
"entities": [
{
"disabled": false,
"disabled_by": null,
"entity_category": "config",
"device_class": null,
"original_device_class": null,
"icon": null,
"unit_of_measurement": null,
"state": {
"entity_id": "select.main_power_on_state",
"state": "unknown",
"attributes": {
"options": [
"On",
"Last state",
"Off"
],
"icon": "mdi:toggle-switch",
"friendly_name": "Main Power on state"
},
"last_changed": "2023-03-17T20:33:32.959496+00:00",
"last_updated": "2023-03-17T20:33:32.959496+00:00"
}
},
{
"disabled": false,
"disabled_by": null,
"entity_category": null,
"device_class": null,
"original_device_class": "outlet",
"icon": null,
"unit_of_measurement": null,
"state": {
"entity_id": "switch.main",
"state": "on",
"attributes": {
"device_class": "outlet",
"friendly_name": "Main"
},
"last_changed": "2023-03-17T21:03:17.820338+00:00",
"last_updated": "2023-03-17T21:03:17.820338+00:00"
}
},
{
"disabled": false,
"disabled_by": null,
"entity_category": "config",
"device_class": null,
"original_device_class": null,
"icon": null,
"unit_of_measurement": "min",
"state": {
"entity_id": "number.main_timer",
"state": "0.0",
"attributes": {
"min": 0.0,
"max": 1440.0,
"step": 1.0,
"mode": "auto",
"unit_of_measurement": "min",
"icon": "mdi:timer",
"friendly_name": "Main Timer"
},
"last_changed": "2023-03-17T20:33:32.959916+00:00",
"last_updated": "2023-03-17T20:33:32.959916+00:00"
}
}
]
}
}
}
Many thanks in advance!
The text was updated successfully, but these errors were encountered: