tuya/tuya-home-assistant

PIR Sensor

Open

#328 aperta il 9 ago 2021

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari) (206 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (960 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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 }

Guida contributor