tuya/tuya-home-assistant

motion sensor entity is missing

Open

#501 aberto em 28 de set. de 2021

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees) (206 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (960 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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 }

Guia do colaborador