tuya/tuya-home-assistant

PIR Sensor

Open

#328 创建于 2021年8月9日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人) (206 fork)github user discovery
enhancementhelp wanted

仓库指标

Star
 (960 star)
PR 合并指标
 (PR 指标待抓取)

描述

Device normal info

  • Unknown
  • YPI21 (PIR Sensor)

More info: Battery seems to update when the integration is reloaded in HA Motion detection is not updating Tamper detection is not showing as an entity in HA

Device info (please complete the following information, which can be found in log): like this: { "active_time": 1628499334, "biz_type": 18, "category": "pir", "create_time": 1628499275, "icon": "smart/icon/ay1567583669199Igy1S/d380b248f70fb1e6554199dfb1f0d0f6.png", "id": "", "ip": "", "lat": "", "local_key": "", "lon": "", "model": "YPI21", "name": "PIR Sensor", "online": true, "owner_id": "7402121", "product_id": "ftuw9zlgix5dtseq", "product_name": "PIR Sensor", "status": [ { "code": "pir", "value": "pir" }, { "code": "battery_percentage", "value": 90 }, { "code": "temper_alarm", "value": false } ], "sub": false, "time_zone": "+10:00", "uid": "", "update_time": 1628500852, "uuid": "" },

Device specifications (please complete the following information, which can be found in log): Same device's id, like this: 2021-08-09 19:12:13 DEBUG (SyncWorker_6) [tuya iot] Response: { "result": { "category": "pir", "functions": [], "status": [ { "code": "pir", "type": "Enum", "values": "{"range":["pir"]}" }, { "code": "battery_percentage", "type": "Integer", "values": "{"unit":"%","min":0,"max":100,"scale":0,"step":1}" }, { "code": "temper_alarm", "type": "Boolean", "values": "{}" } ] }, "success": true, "t": 1628500333631 }

贡献者指南