AMoo-Miki / homebridge-tuya-lan

Homebridge plugin for IoT devices that use Tuya Smart's platform
MIT License
200 stars 51 forks source link

Tuya Breaker - Socket had a problem and will reconnect to X (ECONNRESET) #166

Open xatrix78 opened 4 years ago

xatrix78 commented 4 years ago

Hi, I bought a Tuya Breaker: https://www.amazon.de/gp/product/B07TWN151L/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1

Unfortunately I couldn't find the ID and the key with the Smart Life App and your tuya-lan-find. With the Ucomen Home app it worked then. Here is my Config: { "name": "Wohnzimmerlicht", "type": "SimpleLight", "manufacturer": "Luminea Home Control", "model": "Wifi Mini Smart Life Outlet", "id": "bfd782dxxxxn", "key": "fd60xxxxxxx" }, I also tried outlet. Here the log: Feb 19 08:13:20 hbridge2 homebridge[3130]: [2020-2-19 8:13:20 AM] [TuyaLan] Discovered Wohnzimmerlicht (bfd78xxxxxxxxxxx) Feb 19 08:13:20 hbridge2 homebridge[3130]: [2020-2-19 8:13:20 AM] [TuyaLan] Connected to Wohnzimmerlicht Feb 19 08:14:10 hbridge2 homebridge[3130]: [TuyaAccessory] Socket had a problem and will reconnect to Wohnzimmerlicht (Error: ERR_PING_TIMED_OUT) Feb 19 08:14:10 hbridge2 homebridge[3130]: [TuyaAccessory] Closed connection with Wohnzimmerlicht Feb 19 08:16:33 hbridge2 homebridge[3130]: [TuyaAccessory] Socket had a problem and will reconnect to Wohnzimmerlicht (EHOSTUNREACH) Feb 19 08:16:33 hbridge2 homebridge[3130]: [TuyaAccessory] Slowing down retry attempts; if you see this happening often, it could mean some sort of incompatibility.

Then I switch the Ucoming Home app I get this in the Log: [TuyaAccessory] Odd message from Wohnzimmerlicht with command 8: { cmd: 8, data: '\u0012 ëeõ\u001dïR\nË3\u001a<' } [TuyaAccessory] Odd message from Wohnzimmerlicht with command 8: { cmd: 8, data: 'ìÙ¬6QÆ#X)K$É+_²e' }

[TuyaAccessory] Odd message from Wohnzimmerlicht with command 8: { cmd: 8, data: ',\u000f\u000b)út?*\r\u0006ß)µûÜ' } [TuyaAccessory] Odd message from Wohnzimmerlicht with command 8: { cmd: 8, data: '\u0012mü::uU9bâÆ3 \n' }

[TuyaAccessory] Odd message from Wohnzimmerlicht with command 8: { cmd: 8, data: 'ºê+ÆÃVÔó䬢\r\u0017µ' } [TuyaAccessory] Odd message from Wohnzimmerlicht with command 8: { cmd: 8, data: 'ئJÁ\u001cV©\u001fÖO\f\'¶²;á\u0013èd' } [TuyaAccessory] Odd message from Wohnzimmerlicht with command 8: { cmd: 8, data: '!ƲiÐ}Ü\u0016ù/߶Z÷' }

I hope you can help me. My older Devices (Sockets and Lights) runs perfectly.

xatrix78 commented 4 years ago

Hi, I get the id and key with this instruction:

https://github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md

But it also doesn´t work with this plugin :-( . Is there anything else I can do?

[TuyaAccessory] Socket had a problem and will reconnect to Beamer (ECONNRESET) [TuyaAccessory] Closed connection with Beamer