tuya / tuya-home-assistant

Home Assistant integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, maintained by the Home Assistant Community and Tuya Developer Team.
MIT License
875 stars 206 forks source link

Support for KaBuM! Smart Open Sensor #545

Open clyra opened 2 years ago

clyra commented 2 years ago

Device normal info

Device info { "active_time": 1633645372, "biz_type": 0, "category": "qt", "create_time": 1633642016, "icon": "smart/icon/15318135469lzeqin2vrq_0.jpg", "id": "0407052068c63aed98b8", "ip": "**", "lat": "", "local_key": "", "lon": "", "model": "HKWL-DWS02W", "name": "Kabum open 1", "online": true, "owner_id": "51741202", "product_id": "iiqfjnl5rgjbupjs", "product_name": "Door Sensor", "status": [], "sub": false, "time_zone": "-03:00", "uid": "***", "update_time": 1633809110, "uuid": "0407052068c63aed98b8" } ], "success": true, "t": 1633809145453 }

Device specifications (please complete the following information, which can be found in log):

2021-10-09 16:52:25 DEBUG (SyncWorker_7) [tuya iot] Request: method = GET, url = https://openapi.tuyaus.com/v1.0/devices/0407052068c63aed98b8/specifications, params = None, body = None, t = 1633809145550 2021-10-09 16:52:25 DEBUG (Thread-19) [tuya iot] _on_log: Sending CONNECT (u1, p1, wr0, wq0, wf0, c1, k60) client_id=b'cloud_f79fd02fd9eb3ff30d54a6ac96eae44a' 2021-10-09 16:52:25 DEBUG (Thread-20) [tuya iot] _on_log: Received CONNACK (0, 0) 2021-10-09 16:52:25 DEBUG (Thread-20) [tuya iot] connect flags->{'session present': 0}, rc->0 2021-10-09 16:52:25 DEBUG (Thread-20) [tuya iot] _on_log: Sending SUBSCRIBE (d0, m1) [(b'cloud/token/in/f814bfa8f76da82be91864f8945db542', 0)] 2021-10-09 16:52:25 DEBUG (SyncWorker_7) [tuya iot] Response: { "code": 2009, "msg": "not support this device", "success": false, "t": 1633809145665 }

cvroque commented 2 years ago

"msg": "not support this device",

When your device returns that message, it means that the device doesn't have any standard response that this integration can use, so it needs to be standardized.

You can create a ticket in the Tuya service console with your device specifications. https://service.console.tuya.com/8/2/create?step=3&id=01030503&source=content_feedback.

(Em resumo, a culpa é da Kabum! e tem que abrir ticket pra ver se é possível padronizar.)