Closed RichardMawdsley closed 1 week ago
Error 901 is the device refusing to connect at all, likely due to another connection already keeping it occupied (if you used the cloud based setup, you must kill the mobile app or switch off WiFi before submitting the details on the next step).
Error 904 is usually due to an incorrect device id, local key or protocol version, as it is a decoding error after the device has accepted the initial connection.
As connection issues are mostly dependant on external factors, this cannot be considered a bug without firm evidence that there is one. See discussion #522 if you need more help in resolving the connection issue.
Description
I've previously configured the electriq_airflex15w_heatpump successfully back when it was first added. I've now setup a new HA server and setting everything up once more.
When I add the device, I receive the error: "Unable to connect to your device with those details. It could be an intermittent issue, or they may be incorrect.". I've tried this over the course of a week to ensure not intermittent, and I have added other devices absolutely fine.
Log's show 'Unable to Connect' followed by 'Unexpected Payload from Device'
The only thing I note is the complexity of the Local Key, in a format such as: uGWiodNW^[=A`:j*^
Whilst this worked previously to be added on my old system, I wonder if something has changed and those special characters (which my other local key's do not have) could be escaping something in the code / mishandling. Complete guess.
Steps to reproduce
Add ElectriQ 15W device.
Expected behaviour
Joins correctly
Additional context
HA Log:
This error originated from a custom integration.
Logger: custom_components.tuya_local.device Source: custom_components/tuya_local/device.py:464 integration: Tuya Local (documentation, issues) First occurred: 8:58:46 AM (15 occurrences) Last logged: 9:14:16 AM
Test protocol error 901: Network Error: Unable to Connect Test protocol error 904: Unexpected Payload from Device
Tuya Device Details:
{ "result": [ { "active_time": 1688652078, "bind_space_id": "12702944", "category": "kt", "create_time": 1688652078, "custom_name": "Cabin Air Conditioner", "icon": "smart/product_icon/kt.png", "id": "REDACTED", "ip": "REDACTED", "is_online": true, "lat": "REDACTED", "local_key": "REDACTED", "lon": "REDACTED", "model": "A011A.02.010.001", "name": "Portable air conditioner 2", "product_id": "4RUISW6Lmtz2u1l8", "product_name": "A011A宝士移动空调", "sub": false, "time_zone": "+00:00", "update_time": 1688654538, "uuid": "REDACTED" } ], "success": true, "t": 1731488672922, "tid": "4c4c11a6a19e11ef838d1e579e4aaca8" }
Confirmation
[X] I am sure this is a bug or improvement, that is well enough described that it can be implemented.
[X] If this is for a specific device, the device config is mentioned above, or diagnostics are included.
[X] Log messages or diagnostics relevant to the issue are included.
[X] This is not requesting addition of a new device.