Open maxxxxpower opened 1 year ago
Followed a guide to run a dump for DPS and it found...nothing?
INFO:localtuya:localtuya version 1.0.0 INFO:localtuya:Python 3.8.10 (default, Nov 14 2022, 12:59:47) [GCC 9.4.0] on linux INFO:localtuya:Using pytuya version '10.0.0' INFO:localtuya:Detecting list of available DPS of device eb7ace5913379cf671i69j [192.168.10.237], protocol 3.3. DEBUG:localtuya.pytuya:[eb7...69j] Sending command 10 (device type: type_0a) DEBUG:localtuya.pytuya:[eb7...69j] Sending payload: b'{"gwId":"eb7ace5913379cf671i69j","devId":"eb7ace5913379cf671i69j","uid":"eb7ace5913379cf671i69j","t":"1678289255"}' DEBUG:localtuya.pytuya:[eb7...69j] Command 10 waiting for sequence number 1 DEBUG:localtuya.pytuya:[eb7...69j] Dispatching message CMD 10 TuyaMessage(seqno=1, cmd=10, retcode=1, payload=b'\xd2\x8d|\xb6\xee{\x14\\xa1\x00\xc2\xdcuX|\x06\x18Vz\xdfw\x9c\xcf\xf4\xba\xe1\xb2\xe5\x83jC\xfc', crc=1543893065, crc_good=True) DEBUG:localtuya.pytuya:[eb7...69j] 'data unvalid' error detected: switching to dev_type 'type_0d' DEBUG:localtuya.pytuya:[eb7...69j] Re-send 10 due to device type change (type_0a -> type_0d) DEBUG:localtuya.pytuya:[eb7...69j] Sending command 10 (device type: type_0d) DEBUG:localtuya.pytuya:[eb7...69j] Sending payload: b'{"devId":"eb7ace5913379cf671i69j","uid":"eb7ace5913379cf671i69j","t":"1678289255","dps":{"1":null,"2":null,"3":null,"4":null,"5":null,"6":null,"7":null,"8":null,"9":null,"10":null}}' DEBUG:localtuya.pytuya:[eb7...69j] Command 13 waiting for sequence number 2 DEBUG:localtuya.pytuya:[eb7...69j] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00f\xa3\x00\x00\x00\x01\xb3\r\xb0dJOo\nW\x02\xa1\xce\x17\x9eC,\xc7\x05\xea\x06\x0b\xceC\xac\x96\x9a.\x19\xe0s\xcb\xac', crc=1186777871, crc_good=True) DEBUG:localtuya.pytuya:[eb7...69j] Got status update DEBUG:localtuya.pytuya:[eb7...69j] Deciphered data = '{"dps":{},"type":"query","t":4}' DEBUG:localtuya.pytuya:[eb7...69j] Dispatching message CMD 13 TuyaMessage(seqno=2, cmd=13, retcode=0, payload=b'', crc=2380353348, crc_good=True) DEBUG:localtuya.pytuya:[eb7...69j] ACK received for command 13: ignoring it DEBUG:localtuya.pytuya:[eb7...69j] Sending command 10 (device type: type_0d) DEBUG:localtuya.pytuya:[eb7...69j] Sending payload: b'{"devId":"eb7ace5913379cf671i69j","uid":"eb7ace5913379cf671i69j","t":"1678289256","dps":{"1":null,"11":null,"12":null,"13":null,"14":null,"15":null,"16":null,"17":null,"18":null,"19":null,"20":null}}' DEBUG:localtuya.pytuya:[eb7...69j] Command 13 waiting for sequence number 3 DEBUG:localtuya.pytuya:[eb7...69j] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00f\xa4\x00\x00\x00\x01\xb3\r\xb0dJOo\nW\x02\xa1\xce\x17\x9eC,+\x17C\x7f\x8d\x96.,m\xa0l\\xb8\xfe\n\x97', crc=1982887590, crc_good=True) DEBUG:localtuya.pytuya:[eb7...69j] Got status update DEBUG:localtuya.pytuya:[eb7...69j] Deciphered data = '{"dps":{},"type":"query","t":5}' DEBUG:localtuya.pytuya:[eb7...69j] Dispatching message CMD 13 TuyaMessage(seqno=3, cmd=13, retcode=0, payload=b'', crc=1350014657, crc_good=True) DEBUG:localtuya.pytuya:[eb7...69j] ACK received for command 13: ignoring it DEBUG:localtuya.pytuya:[eb7...69j] Sending command 10 (device type: type_0d) DEBUG:localtuya.pytuya:[eb7...69j] Sending payload: b'{"devId":"eb7ace5913379cf671i69j","uid":"eb7ace5913379cf671i69j","t":"1678289256","dps":{"1":null,"21":null,"22":null,"23":null,"24":null,"25":null,"26":null,"27":null,"28":null,"29":null,"30":null}}' DEBUG:localtuya.pytuya:[eb7...69j] Command 13 waiting for sequence number 4 DEBUG:localtuya.pytuya:[eb7...69j] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00f\xa5\x00\x00\x00\x01\xb3\r\xb0dJOo\nW\x02\xa1\xce\x17\x9eC,+\x17C\x7f\x8d\x96.,m\xa0l\\xb8\xfe\n\x97', crc=4139803065, crc_good=True) DEBUG:localtuya.pytuya:[eb7...69j] Got status update DEBUG:localtuya.pytuya:[eb7...69j] Deciphered data = '{"dps":{},"type":"query","t":5}' DEBUG:localtuya.pytuya:[eb7...69j] Dispatching message CMD 13 TuyaMessage(seqno=4, cmd=13, retcode=0, payload=b'', crc=755273881, crc_good=True) DEBUG:localtuya.pytuya:[eb7...69j] ACK received for command 13: ignoring it DEBUG:localtuya.pytuya:[eb7...69j] Sending command 10 (device type: type_0d) DEBUG:localtuya.pytuya:[eb7...69j] Sending payload: b'{"devId":"eb7ace5913379cf671i69j","uid":"eb7ace5913379cf671i69j","t":"1678289256","dps":{"1":null,"100":null,"101":null,"102":null,"103":null,"104":null,"105":null,"106":null,"107":null,"108":null,"109":null,"110":null}}' DEBUG:localtuya.pytuya:[eb7...69j] Command 13 waiting for sequence number 5 DEBUG:localtuya.pytuya:[eb7...69j] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00f\xa6\x00\x00\x00\x01\xb3\r\xb0dJOo\nW\x02\xa1\xce\x17\x9eC,+\x17C\x7f\x8d\x96.,m\xa0l\\xb8\xfe\n\x97', crc=2896256729, crc_good=True) DEBUG:localtuya.pytuya:[eb7...69j] Got status update DEBUG:localtuya.pytuya:[eb7...69j] Deciphered data = '{"dps":{},"type":"query","t":5}' DEBUG:localtuya.pytuya:[eb7...69j] Dispatching message CMD 13 TuyaMessage(seqno=5, cmd=13, retcode=0, payload=b'', crc=4036118812, crc_good=True) DEBUG:localtuya.pytuya:[eb7...69j] ACK received for command 13: ignoring it DEBUG:localtuya.pytuya:[eb7...69j] Detected dps: {} AVAILABLE DPS ARE [{}] INFO:localtuya:COMPLETE response from device eb7ace5913379cf671i69j [192.168.10.237].
deviceInfo returned OK
TuyaDebug (Tuya DPs dump) [1.0.0]
Device XXXXX at 192.168.10.237 key XXXXXX protocol 3.3 dev_type type_0d:
Debug per guide, when clicking the Debug check:
Logger: custom_components.localtuya.pytuya Source: custom_components/localtuya/pytuya/init.py:863 Integration: LocalTuya (documentation, issues) First occurred: 10:13:25 AM (3 occurrences) Last logged: 11:05:47 AM
[eb7...69j] Command 13 timed out waiting for sequence number 4 [eb7...69j] Command 13 timed out waiting for sequence number 5
I have tried to add this device via localtuya to no avail. Adds fine to normal Tuya app and integrates into HA via the official app. I have about 10 other devices working with localtuya, so it is not the issue. I am hoping this device just has to be "added" to the localtuya code. Device debugging here, but can provide any further testing/info if needed:
Code | Type | Values -- | -- | -- va_temperature | Integer | { "unit": "℃", "min": -200, "max": 1000, "scale": 1, "step": 1 } va_humidity | Integer | { "unit": "%", "min": 0, "max": 1000, "scale": 1, "step": 1 } battery_percentage | Integer | { "unit": "%", "min": 0, "max": 100, "scale": 0, "step": 1 } maxtemp_set | Integer | { "unit": "℃", "min": -400, "max": 1000, "scale": 1, "step": 1 } minitemp_set | Integer | { "unit": "℃", "min": -400, "max": 1000, "scale": 1, "step": 1 } maxhum_set | Integer | { "unit": "%", "min": 0, "max": 1000, "scale": 1, "step": 1 } minihum_set | Integer | { "unit": "%", "min": 0, "max": 1000, "scale": 1, "step": 1 } temp_alarm | Enum | { "range": [ "loweralarm", "upperalarm", "cancel" ] } hum_alarm | Enum | { "range": [ "loweralarm", "upperalarm", "cancel" ] } temp_periodic_report | Integer | { "unit": "", "min": 0, "max": 5, "scale": 0, "step": 1 }