Open skylyn opened 1 year ago
I attempted to add the BLE gateway and pulled the debug logs, included below. Please let me know if there is anything else I can do to help get this device supported.
2023-12-07 17:33:00.865 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Sending command 10 (device type: type_0a)
2023-12-07 17:33:00.865 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Sending payload: b'{"gwId":"eb1a64633257d61ea0jaqw","devId":"eb1a64633257d61ea0jaqw","uid":"eb1a64633257d61ea0jaqw","t":"1701999180"}'
2023-12-07 17:33:00.878 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Command 10 waiting for seq. number 1
2023-12-07 17:33:00.953 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Dispatching message CMD 10 TuyaMessage(seqno=1, cmd=10, retcode=1, payload=b'\x10k\xecCpe\x89\xe4v\xee\xce\xff\xca\xc2\xdb7\x9d\xc67\xfa\xf5FI\xac!_\xf15\xd5\x85V"', crc=3266021632, crc_good=True)
2023-12-07 17:33:00.957 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] 'data unvalid' error detected: switching to dev_type 'type_0d'
2023-12-07 17:33:00.958 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Re-send 10 due to device type change (type_0a -> type_0d)
2023-12-07 17:33:00.958 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Sending command 10 (device type: type_0d)
2023-12-07 17:33:00.959 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Sending payload: b'{"devId":"eb1a64633257d61ea0jaqw","uid":"eb1a64633257d61ea0jaqw","t":"1701999180","dps":{"1":null,"2":null,"3":null,"4":null,"5":null,"6":null,"7":null,"8":null,"9":null,"10":null}}'
2023-12-07 17:33:00.963 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Command 13 waiting for seq. number 2
2023-12-07 17:33:00.989 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Dispatching message CMD 13 TuyaMessage(seqno=2, cmd=13, retcode=0, payload=b'', crc=2380353348, crc_good=True)
2023-12-07 17:33:00.990 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] ACK received for command 13: ignoring it
2023-12-07 17:33:00.990 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Sending command 10 (device type: type_0d)
2023-12-07 17:33:00.991 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Sending payload: b'{"devId":"eb1a64633257d61ea0jaqw","uid":"eb1a64633257d61ea0jaqw","t":"1701999180","dps":{"1":null,"11":null,"12":null,"13":null,"14":null,"15":null,"16":null,"17":null,"18":null,"19":null,"20":null}}'
2023-12-07 17:33:00.999 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Command 13 waiting for seq. number 3
2023-12-07 17:33:01.085 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Dispatching message CMD 13 TuyaMessage(seqno=3, cmd=13, retcode=0, payload=b'', crc=1350014657, crc_good=True)
2023-12-07 17:33:01.086 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] ACK received for command 13: ignoring it
2023-12-07 17:33:01.086 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Sending command 10 (device type: type_0d)
2023-12-07 17:33:01.087 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Sending payload: b'{"devId":"eb1a64633257d61ea0jaqw","uid":"eb1a64633257d61ea0jaqw","t":"1701999181","dps":{"1":null,"21":null,"22":null,"23":null,"24":null,"25":null,"26":null,"27":null,"28":null,"29":null,"30":null}}'
2023-12-07 17:33:01.093 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Command 13 waiting for seq. number 4
2023-12-07 17:33:01.184 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Dispatching message CMD 13 TuyaMessage(seqno=4, cmd=13, retcode=0, payload=b'', crc=755273881, crc_good=True)
2023-12-07 17:33:01.185 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] ACK received for command 13: ignoring it
2023-12-07 17:33:01.185 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Sending command 10 (device type: type_0d)
2023-12-07 17:33:01.186 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Sending payload: b'{"devId":"eb1a64633257d61ea0jaqw","uid":"eb1a64633257d61ea0jaqw","t":"1701999181","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}}'
2023-12-07 17:33:01.187 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Command 13 waiting for seq. number 5
2023-12-07 17:33:01.281 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Dispatching message CMD 13 TuyaMessage(seqno=5, cmd=13, retcode=0, payload=b'', crc=4036118812, crc_good=True)
2023-12-07 17:33:01.282 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] ACK received for command 13: ignoring it
2023-12-07 17:33:01.282 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Detected dps: {}
2023-12-07 17:33:01.283 DEBUG (MainThread) [custom_components.localtuya.config_flow] Detected DPS: {}
2023-12-07 17:33:01.283 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Closing connection
2023-12-07 17:33:01.293 DEBUG (MainThread) [custom_components.localtuya.pytuya] [eb1...aqw] Connection lost: None
There are several requests (example) on the Home Assistant forum to support the Atomi smart BLE gateway and BLE spot lights in this integration. These lights currently work in the Tuya official integration, but it would be great to have local control and not deal with Tuya's 6 month trial crap.