Open Leon0983X opened 2 years ago
Same. Can control the basic on/off, cannot get the device DPs with tuyadebug, same error 104, connection reset by peer
I am also having the same issue, I moved all my Tuya entities across to Tuya Local and none of my bulbs have a color control option.
I can play around and get a color picker to pop-up, but it doesn't work. I am having no luck with anything other than basic on and off.
I am not sure how to run debugging - pretty new to all this. It makes my head hurt!
Same here with "120V A19 9W SMART BULB" https://www.amazon.com/gp/product/B08THDWFBL/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&th=1
If I leave config default (with empty values) the bulb will connect and allow on and off control, without color options. If I set config options, in an attempt to get color controls the bulb becomes unavailable.
The problem
I just installed LocalTuya and added my ceiling light to Home Assistant. My device is not on the supprted/not-supported devices list, so I used tuyadebug to show me all the DPs and I configured them accordingly. Now the device is added to my Home Assistant, and I can turn it on and off, control the brightness and warmth of the white light. However, when I try to change the light's color in my HA interface, nothing happens. The light stays white. Another problem I encounter is that since connecting my device to HA, it won't respond to tuyadebug anymore. So I can't read the DPs anymore. I have tried changing the color using the tuya app, and this works. When I change the colors there, the new color is even displayed in HA.
Here is a screenshot of my HA config:
Now when using tuyadebug I just get this (I swapped the IDs with 'xxx', because I don't know how sensitive this information is): INFO:localtuya:localtuya version 1.0.0 INFO:localtuya:Python 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] on linux INFO:localtuya:Using pytuya version '8.1.0' INFO:localtuya:Detecting list of available DPS of device xxx [192.168.1.22], protocol 3.3. DEBUG:localtuya.pytuya:Sending command status (device type: type_0a) DEBUG:localtuya.pytuya:paylod=b'{"gwId":"xxx","devId":"xxx"}' DEBUG:localtuya.pytuya:Failed to connect to 192.168.1.22. Raising Exception. WARNING:localtuya.pytuya:Failed to get status: [Errno 104] Connection reset by peer INFO:localtuya:Detecting list of available DPS of device xxx [192.168.1.22], protocol 3.3. DEBUG:localtuya.pytuya:Sending command status (device type: type_0a) DEBUG:localtuya.pytuya:paylod=b'{"gwId":"xxx","devId":"xxx"}' DEBUG:localtuya.pytuya:Failed to connect to 192.168.1.22. Raising Exception. WARNING:localtuya.pytuya:Failed to get status: [Errno 104] Connection reset by peer INFO:localtuya:Detecting list of available DPS of device 51570403dc4f22b600e4 [192.168.1.22], protocol 3.3. DEBUG:localtuya.pytuya:Sending command status (device type: type_0a) DEBUG:localtuya.pytuya:paylod=b'{"gwId":"xxx","devId":"xxx"}' DEBUG:localtuya.pytuya:Failed to connect to 192.168.1.22. Raising Exception. WARNING:localtuya.pytuya:Failed to get status: [Errno 104] Connection reset by peer INFO:localtuya:TIMEOUT: No response from device xxx [192.168.1.22] after 2 attempts.
Environment
DP dump
This is a DP extract, which I got before connecting to HA: DPS [1] VALUE [True] DPS [2] VALUE [white] DPS [3] VALUE [255] DPS [4] VALUE [130] DPS [5] VALUE [000000] DPS [6] VALUE [000000] DPS [7] VALUE [000000] DPS [8] VALUE [000000] DPS [9] VALUE [000000] DPS [10] VALUE [000000]
And with a color selected: DPS [1] VALUE [True] DPS [2] VALUE [colour] DPS [3] VALUE [255] DPS [4] VALUE [255] DPS [5] VALUE [001a0b0091ff19] -> Color value DPS [6] VALUE [000000] DPS [7] VALUE [000000] DPS [8] VALUE [000000] DPS [9] VALUE [000000] DPS [10] VALUE [000000]
Provide Home Assistant taceback/logs
Nothing relevant.