iRayanKhan / homebridge-tuya

A Homebridge plugin to control Tuya devices locally.
MIT License
393 stars 165 forks source link

New devices from Teckin not working #175

Open Cr4ck3r32 opened 3 years ago

Cr4ck3r32 commented 3 years ago

Good morning,

I'm going to explain my problem to see if someone can help me understand the use of the plugin and the things that happen to me. I will leave everything very well documented so that the failures can be understood.

I have the Homebridge installed on a Raspberry Pi 4 with 4Gb ram that has the latest Raspbian OS system. At home all the products I have are from the Teckin brand as an example:

Smart plug model: SP22 (measures watts, amps, etc)

Simple plug model: SP21 (only On / Off)

Led strips model: SL07 (RGB, On / Off, Brightness, etc)

I have managed through the video to get all the IDs and Keys of the devices, but at the moment that I adopt them in the Homebridge I cannot interact with them. I press the Homebridge button but the accessory does nothing.

I attach the configuration that I have in the Homebridge:

{ "platform": "TuyaLan", "name": "TuyaLan", "devices": [ { "name": "Enchufe Watt", "type": "Outlet", "manufacturer": "TECKIN", "model": "SP22", "id": "bf051c0516bd4ba7f30xxx", "key": "69262abe946edxxx", "ip": "192.168.0.13", "voltsId": 20, "ampsId": 18, "wattsId": 19 } ] }

With this configuration in the Homebridge terminal this appears:

[TuyaLan] Starting discovery... [TuyaDiscovery] Discovery started on port 6666. [TuyaDiscovery] Discovery started on port 6667.
[1/14/2021, 6:42:49 PM] Homebridge is running on port 51564. [1/14/2021, 6:42:50 PM] [TuyaLan] Discovered a device that has not been configured yet (bf51557fe924d09c2bjkkd@192.168.0.18). [1/14/2021, 6:42:51 PM] [TuyaLan] Discovered a device that has not been configured yet (bf90468666bbd51871loib@192.168.0.11). [1/14/2021, 6:42:52 PM] [TuyaLan] Discovered a device that has not been configured yet (bffe9a3019604754e2jy3r@192.168.0.39). [1/14/2021, 6:42:54 PM] [TuyaLan] Discovered a device that has not been configured yet (bfda5e6553f02c1f80fw0j@192.168.0.13). [1/14/2021, 6:42:58 PM] [TuyaLan] Discovered a device that has not been configured yet (bf08a130a876a55b6ejiog@192.168.0.21). [1/14/2021, 6:42:58 PM] [TuyaLan] Discovered a device that has not been configured yet (28201518d8bfc0d93051@192.168.0.30). [1/14/2021, 6:43:00 PM] [TuyaLan] Discovered a device that has not been configured yet (bf7d59b70f25376103rtqp@192.168.0.14). [1/14/2021, 6:43:49 PM] [TuyaLan] Failed to discover Enchufe Watt (bf051c0516bd4ba7f30dce) in time but will connect via 192.168.0.13. [1/14/2021, 6:43:49 PM] [TuyaLan] Connected to Enchufe Watt [TuyaAccessory] Sending first query to Enchufe Watt (3.1) [TuyaAccessory] Malformed update from Enchufe Watt with command 10: ��}=��l�[_����=�&���0a� [TuyaAccessory] Raw update from Enchufe Watt (3.1) with command 10: 000055aa000000000000000a0000002c00000001b31b1d2c5ffd7d153d99ed876c8a1a5b5ffbb2e9b5d23dcb1f26a9ade83061f521f335050000aa55

But in the list of Homebridge accessories I see a device that is my plug but pressing it turns the button on and off but does not transmit the command to the plug.

I would like to know what I am doing wrong and understand how I have to do it to make it work. The devices have been adopted in the Smart Life application but I have the App completely closed when I do the tests.

Can someone please tell me what is going on?

Thank you very much and a good day.

ElphaX commented 2 years ago

Were you able to get this working via a later update or by specifying the dpPower datapoint?

caseyroot97 commented 10 months ago

I'm getting the same logs when I try to connect to my Carro ceiling fan.

Config: "platform": "TuyaLan", "devices": [ { "type": "Fanlight", "name": "Ceiling Fan", "id": my correct id here, "key": my correct key here, "ip": "my correct ip here", "manufacturer": "Carro", "model": "Smart WiFi Fan Switch", "useBrightness": "True", "maxSpeed": 10 } ]

Logs: [11/29/2023, 11:08:49 AM] [TuyaLan] Failed to discover Ceiling Fan (my correct id here) in time but will connect via my correct ip here. [11/29/2023, 11:08:49 AM] [TuyaLan] Connected to Ceiling Fan [Tuya] Malformed update from Ceiling Fan with command 10: E5�s%#��r'���{�V���� A� [Tuya] Raw update from Ceiling Fan (3.1) with command 10: 000055aa000000000000000a0000002c000000014535901d1673251023059daf722702d202d102b47bd9561be1fbeed7f60941ce9a6783610000aa55