Métricas do repositório
- Stars
- (960 stars)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
Device normal info
- Generic (Kogan)
- KAIRPRFR2SA
Device info (please complete the following information, which can be found in log): like this:
Could get log from HA so I got this from Tuya IOT Device Info { "result": { "active_time": 1634542241, "biz_type": 18, "category": "kj", "create_time": 1634542241, "icon": "smart/icon/ay15253387844269Sg99/55d100ab59a052b507c95f030786c06b.jpg", "id": "420838633c6105c8ec10", "ip": "xxxxxx", "lat": "xxxx", "local_key": "xxxxx", "lon": "xxxx", "model": "KAIRPRFR2SA", "name": "SmarterHome Smart Air Purifier 2S", "online": true, "owner_id": "xxxx", "product_id": "5cum0gfsx8rhpvvl", "product_name": "SmarterHome Smart Air Purifier 2S", "status": [ { "code": "switch", "value": false }, { "code": "speed", "value": "2" }, { "code": "filter", "value": 100 }, { "code": "filter_reset", "value": false }, { "code": "countdown_set", "value": "1" }, { "code": "countdown_left", "value": 0 } ], "sub": false, "time_zone": "+10:00", "uid": "xxxx", "update_time": 1634542325, "uuid": "xxxxxx" }, "success": true, "t": 1634543254786 }
Device specifications (please complete the following information, which can be found in log): Same device's id, like this: [2021-07-01 10:18:01,351] [tuya-openapi] Request: method = GET, url = https://openapi.tuyacn.com/v1.0/devices/aaaaaaaaaaa/specifications, params = None, body = None, headers = {'client_id': 'xxxxxxxxxxxx', 'sign': 'xxxxxxxxxxxx', 'sign_method': 'HMAC-SHA256', 'access_token': '213e2d4af5e8d217abc0b104462a9f72', 't': '1625105881351', 'lang': 'en'} 2021-07-01 10:18:01 DEBUG (SyncWorker_1) [tuya iot] Response: { "result": { "category": "cz", "functions": [ { "code": "countdown_1", "type": "Integer", "values": "{"unit":"s","min":0,"max":86400,"scale":0,"step":1}" }, { "code": "switch", "type": "Boolean", "values": "{}" } ], "status": [ { "code": "cur_voltage", "type": "Integer", "values": "{"unit":"V","min":0,"max":2500,"scale":0,"step":1}" }, { "code": "cur_current", "type": "Integer", "values": "{"unit":"mA","min":0,"max":30000,"scale":0,"step":1}" }, { "code": "switch", "type": "Boolean", "values": "{}" }, { "code": "cur_power", "type": "Integer", "values": "{"unit":"W","min":0,"max":50000,"scale":0,"step":1}" }, { "code": "countdown_1", "type": "Integer", "values": "{"unit":"s","min":0,"max":86400,"scale":0,"step":1}" } ] }, "success": true, "t": 1625105881348 }