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
Devices not appearing in Home Assistant - not supported? #122
Describe the bug
My devices (two water leak/humidity sensors) are not appearing in Home Assistant. Log appears to indicate they are not supported but they are a supported catergory.
Expected behavior
My devices would appear in Home Assistant
Describe the bug My devices (two water leak/humidity sensors) are not appearing in Home Assistant. Log appears to indicate they are not supported but they are a supported catergory.
Expected behavior My devices would appear in Home Assistant
Home Assistant Version 2021.6.6
Device info (please complete the following information, which can be found in log): like this: "result": [ { "active_time": 1625749461, "biz_type": 0, "category": "sj", "create_time": 1625595369, "icon": "smart/program_category_icon/sj.png", "id": "40483801a4cf12cb3243", "ip": "REDACTED", "lat": "", "local_key": "306a04d76706571b", "lon": "", "name": "W sump pump", "online": true, "owner_id": "45231456", "product_id": "b2tpqu4yhawhiz2n", "product_name": "Water leak sensor", "status": [], "sub": false, "time_zone": "-05:00", "uid": "az16257491294291iFET", "update_time": 1625873363, "uuid": "40483801a4cf12cb3243" }, { "active_time": 1625760163, "biz_type": 0, "category": "sj", "create_time": 1625760163, "icon": "smart/program_category_icon/sj.png", "id": "40483801807d3a011760", "ip": "REDACTED", "lat": "REDACTED", "local_key": "4b1cc5a5ac896156", "lon": "REDACTED", "name": "Water leak sensor 3", "online": true, "owner_id": "45231456", "product_id": "b2tpqu4yhawhiz2n", "product_name": "Water leak sensor", "status": [], "sub": false, "time_zone": "-05:00", "uid": "az16257491294291iFET", "update_time": 1625870891, "uuid": "40483801807d3a011760" } ], "success": true, "t": 1625873464396
**Device specifications (please complete the following information, which can be found in [log]:
2021-07-09 19:31:04 DEBUG (SyncWorker_53) [tuya iot] Request: method = GET, url = https://openapi.tuyaus.com/v1.0/devices/40483801a4cf12cb3243/specifications, params = None, body = None, headers = {'client_id': 'mp5q9eguaqcfcddj1jke', 'sign': '62DFBC0A282BEC1621C4721ED7F6556B30210BA90E44D30BD59A925BB9826547', 'sign_method': 'HMAC-SHA256', 'access_token': '7db801d117c29afed5b3dc8e5ac35ede', 't': '1625873464428', 'lang': 'en'} 2021-07-09 19:31:04 DEBUG (SyncWorker_53) [tuya iot] Response: { "code": 2009, "msg": "not support this device", "success": false, "t": 1625873464555 } 2021-07-09 19:31:04 DEBUG (SyncWorker_53) [tuya iot] Request: method = GET, url = https://openapi.tuyaus.com/v1.0/devices/40483801807d3a011760/specifications, params = None, body = None, headers = {'client_id': 'mp5q9eguaqcfcddj1jke', 'sign': '9A2268E95BA4F8DD26F1B1934B8BD7BABA809EA13D6B12B33B936D64E345450E', 'sign_method': 'HMAC-SHA256', 'access_token': '7db801d117c29afed5b3dc8e5ac35ede', 't': '1625873464583', 'lang': 'en'} 2021-07-09 19:31:04 DEBUG (Thread-595) [tuya iot] Response: { "result": { "client_id": "cloud_428b1472e6d1db3dd805126de49df0d1", "expire_time": 5531, "password": "06dac47dd166e34f5ed92e01b41c5daa", "sink_topic": { "device": "cloud/token/out/{device_id}" }, "source_topic": { "device": "cloud/token/in/02781e29043cafb9c242153245ecce86" }, "url": "ssl://m1.tuyaus.com:8883", "username": "cloud_02781e29043cafb9c242153245ecce86" }, "success": true, "t": 1625873464579 } 2021-07-09 19:31:04 DEBUG (Thread-595) [tuya iot] connecting ssl://m1.tuyaus.com:8883 2021-07-09 19:31:04 DEBUG (SyncWorker_53) [tuya iot] Response: { "code": 2009, "msg": "not support this device", "success": false, "t": 1625873464667