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
882 stars 207 forks source link

New Device Support - NEO Motion sensor hfcudw5 #239

Open Dcashe opened 3 years ago

Dcashe commented 3 years ago

Device normal info

Device info : { "active_time": 1625523632, "biz_type": 0, "category": "pir", "create_time": 1625523417, "icon": "smart/icon/ay1503986080106Gppjy/680295bd927407b1cd2016b132780fda.jpg", "id": "bf18766968eeb54c78nci0", "ip": "", "lat": "43.6071924", "local_key": "", "lon": "", "name": " Motion Sensor test", "node_id": "", "online": true, "owner_id": "", "product_id": "7hfcudw5", "product_name": " Motion Sensor", "status": [], "sub": true, "time_zone": "+08:00", "uid": "", "update_time": 1627306198, "uuid": "" }, { "active_time": 1610616402, "biz_type": 0, "category": "wfcon", "create_time": 1601814797, "icon": "smart/icon/ay1534490862266NApJD/5b5a3700cf232e5965e9b2f42c2df74d.png", "id": "", "ip": "", "lat": "", "local_key": "", "lon": "", "name": "Zigbee Wireless Gateway", "online": true, "owner_id": "", "product_id": "jrlfbtvfebypwvd9", "product_name": "Zigbee Wireless Gateway", "status": [], "sub": false, "time_zone": "+03:00", "uid": "", "update_time": 1627306198, "uuid": "" } ], "success": true, "t": 1627309811007 } 2021-07-26 17:30:11 DEBUG (SyncWorker_6) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/bf18766968eeb54c78nci0/specifications, params = None, body = None, headers = {'client_id': '', 'sign': '7FE8A731EF6A8D354C85B831C63B52B8F7800AD600716DF5B394106F70EC998C', 'sign_method': 'HMAC-SHA256', 'access_token': 'e3fdcbf22f4a59a2ccfda3356250c880', 't': '1627309811054', 'lang': 'en'} 2021-07-26 17:30:11 DEBUG (SyncWorker_6) [tuya iot] Response: { "code": 2009, "msg": "not support this device", "success": false, "t": 1627309811137 } 2021-07-26 17:30:11 DEBUG (SyncWorker_6) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/bf0647da32be9cd9f12la9/specifications, params = None, body = None, headers = {'client_id': '', 'sign': 'D884CDCEB401BD3B7342D36AFD70A2C9631E743873B3F7EA5BF136E7B5B6E3EE', 'sign_method': 'HMAC-SHA256', 'access_token': 'e3fdcbf22f4a59a2ccfda3356250c880', 't': '1627309811182', 'lang': 'en'} 2021-07-26 17:30:11 DEBUG (Thread-122) [tuya iot] Response: { "result": { "client_id": "cloud_eef4672a9f64792c31f3fe46681aa670", "expire_time": 6296, "password": "", "sink_topic": { "device": "cloud/token/out/{device_id}" }, "sourcetopic": { "device": "cloud/token/in/ae9a27c088156eae6720679177d415fc" }, "url": "ssl://m1.tuyaeu.com:8883", "username": "cloud" }, "success": true, "t": 1627309811247 } 2021-07-26 17:30:11 DEBUG (Thread-122) [tuya iot] connecting ssl://m1.tuyaeu.com:8883 2021-07-26 17:30:11 DEBUG (SyncWorker_6) [tuya iot] Response: { "code": 2009, "msg": "not support this device", "success": false, "t": 1627309811269 }

tsutsuku commented 3 years ago

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.

And please remove your sensitive info like IP, clientId in your comment.