AMoo-Miki / homebridge-tuya-lan

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

Discovery does not find my devices #234

Open pc-bastler opened 3 years ago

pc-bastler commented 3 years ago

I had a working environment including my Tuya-Devices (4 RGB-LED-Spots, 1 TW-Bulb all bei LSC).

Since a system update destroyed my Homebridge PI, I had to reinstall the Raspberry. Since I did that, TuyaLan does not find my devices anymore. I get a "Failed to discover ... in time but will keep looking" error, regardless if a start Homebridge "by hand" or if I start it as a service.

This is a clean installation on bare metal (Raspberry Pi 3B+) using the NOOBS 3.5-Distribution and installing a Raspbian Minimal. Other Plugins (like Sonoff-tasmota-http or weather) are working without any problems on the fresh installation, just the Tuya-devices having problems.

The devices are reachable by "ping" from the Homebridge-Machine. A "tuya-cli get ..." finds the devices an lists the properties, also a "node discover.js" (using your discover-tool, you provided in another problem thread here) finds all my devices. Since this was a docker installation I could not follow the instructions further.

Can you help please to get my lights working again?

marcopelegrini commented 3 years ago

I had the same problem as you... after a few hours troubleshooting - comparing the release code with discover.js I figured out the 1.4.0 version has some problems in the decription of the UDP packages (at least for me) and only listens on 6666 where my devices sends packages to 6667...

So I installed the 1.5.0-rc.12 and at least discovery started to work... the devices do not respond to any command but it's a progress... I hope this helps you

pc-bastler commented 3 years ago

Thank you that helped very much... I have to check my devices now, but at first I can report that all devices are found and ON/OFF-Switching is now possible. I have to try out if dimming and color change does work, too.