tuya/tuya-home-assistant

PIR Sensor

Open

#328 ouverte le 9 août 2021

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés) (206 forks)github user discovery
enhancementhelp wanted

Métriques du dépôt

Stars
 (960 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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 }

Guide contributeur