tuya/tuya-home-assistant

motion sensor entity is missing

Open

#501 建立於 2021年9月28日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人) (206 fork)github user discovery
enhancementhelp wanted

倉庫指標

Star
 (960 star)
PR 合併指標
 (PR 指標待抓取)

描述

the motion sensor is just showing the battery status

  • motion sensor

Device info (please complete the following information, which can be found in log): like this: { "active_time": 1632592239, "biz_type": 18, "category": "pir", "create_time": 1632592239, "icon": "smart/icon/1551922632leum491v9v_0.jpg", "id": "bf3474fe9895cc0d30mpar", "ip": "", "lat": "", "local_key": "", "lon": "", "model": "MIR-IR100", "name": "Motion Detector first floor", "node_id": "847127fffe04c231", "online": true, "owner_id": "1152554", "product_id": "jytabjkb", "product_name": "PIR Motion Detector", "status": [ { "code": "pir_state", "value": "pir" }, { "code": "battery_percentage", "value": 100 } ], "sub": true, "time_zone": "+03:00", "uid": "***", "update_time": 1632814490, "uuid": "847127fffe04c231" }

Device specifications (please complete the following information, which can be found in log): Same device's id, like this: 2021-09-28 15:40:19 DEBUG (SyncWorker_6) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/bf3474fe9895cc0d30mpar/specifications, params = None, body = None, t = 1632832819498 2021-09-28 15:40:19 DEBUG (SyncWorker_6) [tuya iot] Response: { "result": { "category": "pir", "functions": [], "status": [ { "code": "pir_state", "type": "Enum", "values": "{"range":["pir","none"]}" }, { "code": "battery_percentage", "type": "Integer", "values": "{"unit":"","min":0,"max":100,"scale":0,"step":1}" } ] }, "success": true, "t": 1632832819594 }

貢獻者指南