AMoo-Miki / homebridge-tuya-lan

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

Problems adding Garage Door #209

Open MexicanSkywalker opened 3 years ago

MexicanSkywalker commented 3 years ago

Howdy!

I have been trying to add this garage door opener to HomeBridge, I was able to extract the ID and key.

My config looks like this:

{ "platform": "TuyaLan", "devices": [ { "name": "Garage Door ", "type": "GarageDoor", "manufacturer": "SMGarage", "model": "Smart Garage Door", "id": "xxxxxxxxxxxxxxxxxxxx", "key": "xxxxxxxxxxxxxxxx" } ] }

I get: [TuyaLan] Failed to discover Garage Door (xxxxxxxxxxxxxxxxxxxx) in time but will keep looking.

I also attempted to add ip line, shows up on Home app shows with "No Response"and I get this on log: [TuyaLan] Failed to discover Garage Door (xxxxxxxxxxxxxxxxxxxx) in time but will connect via xx.xx.xxx.x. [TuyaAccessory] Socket had a problem and will reconnect to Garage Door (ECONNREFUSED) [TuyaAccessory] Closed connection with Garage Door [TuyaAccessory] Socket had a problem and will reconnect to Garage Door (Error: ERR_CONNECTION_TIMED_OUT) [TuyaAccessory] Slowing down retry attempts; if you see this happening often, it could mean some sort of incompatibility.

Smart Life app is closed when trying to add this devices

What can I do to fix it?

verisgit commented 3 years ago

Having a similar issue after moving the device to a different subnet. It was previously on 192.168.1.x it's now on 192.168.3.x and stopped working as a result. I have no idea why this would cause it to stop functioning as it's been working fine for over a year until this point.

In the logs I see the following when I operate the door from the app: [TuyaAccessory] Socket had a problem and will reconnect to GarageDoor (ECONNRESET) [TuyaAccessory] Sending first query to GarageDoor (3.1) [TuyaAccessory] Socket had a problem and will reconnect to GarageDoor (ECONNRESET) [TuyaAccessory] Sending first query to GarageDoor (3.1) [TuyaAccessory] Socket had a problem and will reconnect to GarageDoor (ECONNRESET) [TuyaAccessory] Sending first query to GarageDoor (3.1) [TuyaAccessory] Socket had a problem and will reconnect to GarageDoor (ECONNRESET) [TuyaAccessory] Sending first query to GarageDoor (3.1) [TuyaAccessory] Odd message from GarageDoor with command 8: �8)�N!}.................D��y!��ԋ�5����kv���#� [TuyaAccessory] Raw message from GarageDoor (3.1) with command 8: 000055aa00....................................................0aa55 PuTTY[TuyaAccessory] Socket had a problem and will reconnect to GarageDoor (ECONNRESET) [TuyaAccessory] Sending first query to GarageDoor (3.1) [TuyaAccessory] Odd message from GarageDoor with command 8: �8)�N!}...........n=�cw�j�Vj���p y�@ [TuyaAccessory] Raw message from GarageDoor (3.1) with command 8: 000055aa000..................00aa55 [TuyaAccessory] Odd message from GarageDoor with command 8: �8)�N!}��...............................���#� [TuyaAccessory] Raw message from GarageDoor (3.1) with command 8: 000055aa0000.............................3bd420000aa55 [TuyaAccessory] Socket had a problem and will reconnect to GarageDoor (ECONNRESET) [TuyaAccessory] Sending first query to GarageDoor (3.1)

@AMoo-Miki are you still working on this project?