Open TimpP-Spb opened 2 years ago
curl --request GET "https://openapi.tuyaeu.com/v1.0/devices/88746041a4e57c9ba48b" --header "sign_method: HMAC-SHA256" --header "client_id: pp7t3jsybid5dkeijyny" --header "t: 1650036973718" --header "mode: cors" --header "Content-Type: application/json" --header "sign: C58EB369842E508EFC8E996630B74A50D4927D944AFCA0187A1E703A7D0848C8" --header "access_token: 2bf5bc7b7f2567f0747db88b134ca0e1" { "result": { "active_time": 1650034863, "biz_type": 0, "category": "ms", "create_time": 1650033899, "icon": "smart/icon/ay1555944322208i6Pfh/253252bb2e2821611a8e7b5031bb9587.png", "id": "88746041a4e57c9ba48b", "ip": "", "lat": "", "local_key": "", "lon": "", "model": "SLock", "name": "Smart_Lock", "online": true, "owner_id": "", "product_id": "bljvjx2nsv02dhao", "product_name": "Smart_Lock", "status": [ { "code": "unlock_fingerprint", "value": 0 }, { "code": "unlock_password", "value": 0 }, { "code": "unlock_temporary", "value": 0 }, { "code": "unlock_dynamic", "value": 800 }, { "code": "unlock_card", "value": 0 }, { "code": "alarm_lock", "value": "wrong_finger" }, { "code": "unlock_request", "value": 0 }, { "code": "battery_state", "value": "high" }, { "code": "unlock_app", "value": 0 }, { "code": "hijack", "value": false }, { "code": "doorbell", "value": false } ], "sub": false, "time_zone": "+02:00", "uid": "eu1650032745452tKuNt", "update_time": 1650034863, "uuid": "88746041a4e57c9ba48b" }, "success": true, "t": 1650036973831, "tid": "c860c95fbcd111ec833a9ab42efd9e19" }
Any luck on this?
Dear Everyone,
today i tried to integrate smart lock insidae home assistant, and foubd that device unsuported. how i can add it in home assistant??
Door locker
{ "result": { "active_time": 1640452357, "category": "ms", "category_name": "Residential Lock", "create_time": 1640452357, "gateway_id": "", "icon": "smart/icon/ay1555944322208i6Pfh/253252bb2e2821611a8e7b5031bb9587.png", "id": "****", "ip": "**", "lat": "59.9493", "local_key": "***", "lon": "30.4744", "model": "SLock", "name": "Smart_Lock", "online": true, "owner_id": "15888644", "product_id": "bljvjx2nsv02dhao", "product_name": "Smart_Lock", "sub": false, "time_zone": "+03:00", "update_time": 1640452359, "uuid": "75303208a4e57c0fd4b9" }, "success": true, "t": 1640459034481 }
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 }