tuya/tuya-home-assistant

Add support for Ped Feeder device category cwwsq

Open

#581 aperta il 15 ott 2021

Vedi su GitHub
 (6 commenti) (2 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

  • Petlibro
  • PLAF101

Device info: 2021-10-15 11:14:31 DEBUG (SyncWorker_1) [tuya iot] Response: { "result": [ { "active_time": 1634256116, "biz_type": 0, "category": "cwwsq", "create_time": 1634172057, "icon": "smart/icon/ay1541472742486ZYDmd/dcb839f4a543a7bd03f8353bc3d96c91.jpg", "id": "xxxxd29xx96", "ip": "", "lat": "", "local_key": "", "lon": "", "model": "", "name": "WiFi Feeder", "online": true, "owner_id": "52314000", "product_id": "4gz4aqezetbmevao", "product_name": "WiFi Feeder", "status": [ { "code": "meal_plan", "value": "fwYACAF/EAAIAQ==" }, { "code": "manual_feed", "value": 4 }, { "code": "feed_state", "value": "standby" }, { "code": "factory_reset", "value": false }, { "code": "feed_report", "value": 8 } ], "sub": false, "time_zone": "-07:00", "uid": "***", "update_time": 1634294135, "uuid": "11f8b7e7661148cd" } ], "success": true, "t": 1634321671510 }

Device specifications : 2021-10-15 11:14:31 DEBUG (SyncWorker_1) [tuya iot] Request: method = GET, url = https://openapi.tuyaus.com/v1.0/devices/xxxx29xx96/specifications, params = None, body = None, t = 1634321671534 2021-10-15 11:14:31 DEBUG (Thread-20) [tuya iot] _on_log: Sending CONNECT (u1, p1, wr0, wq0, wf0, c1, k60) client_id=b'cloud_xxxx8345b2f8' 2021-10-15 11:14:31 DEBUG (SyncWorker_1) [tuya iot] Response: { "result": { "category": "cwwsq", "functions": [ { "code": "meal_plan", "type": "Raw", "values": "{}" }, { "code": "manual_feed", "type": "Integer", "values": "{"min":1,"max":12,"scale":0,"step":1}" }, { "code": "factory_reset", "type": "Boolean", "values": "{}" } ], "status": [ { "code": "meal_plan", "type": "Raw", "values": "{}" }, { "code": "manual_feed", "type": "Integer", "values": "{"min":1,"max":12,"scale":0,"step":1}" }, { "code": "feed_state", "type": "Enum", "values": "{"range":["standby","feeding"]}" }, { "code": "factory_reset", "type": "Boolean", "values": "{}" }, { "code": "feed_report", "type": "Integer", "values": "{"min":0,"max":12,"scale":0,"step":1}" } ] }, "success": true, "t": 1634321671640 }

Guida contributor