tuya/tuya-home-assistant

Add support for Air Purifier

Open

#104 建立於 2021年7月7日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人) (206 fork)github user discovery
enhancementhelp wanted

倉庫指標

Star
 (960 star)
PR 合併指標
 (PR 指標待抓取)

描述

Please add support for this air purifier. Should also include controls of speed and indication of filter remining and air quality.

Device normal info

  • Brand: MEES Smart (according to amazon listing)
  • Model: HIMOX-H06

Device info (please complete the following information, which can be found in log): like this: { "active_time": 1623942759, "biz_type": 18, "category": "kj", "create_time": 1623942759, "icon": "smart/icon/ay1527558291729ltDmd/6a64c864651d1cb74cb8b635ebdeb32a.png", "id": "41684530cc50e3ff13a3", "ip": "", "lat": "", "local_key": "", "lon": "", "name": "HIMOX-H06", "online": true, "owner_id": "", "product_id": "sjzyyecfdqwdsofv", "product_name": "HIMOX-H06", "status": [ { "code": "switch", "value": true }, { "code": "fan_speed_enum", "value": "high" }, { "code": "filter", "value": 89 }, { "code": "light", "value": true }, { "code": "filter_reset", "value": false }, { "code": "countdown_left", "value": 0 }, { "code": "air_quality", "value": "medium" } ], "sub": false, "time_zone": "+00:00", "uid": "eu1563450773193otWIB", "update_time": 1625563828, "uuid": "41684530cc50e3ff13a3" },

Device specifications (please complete the following information, which can be found in log): Same device's id, like this: 2021-07-07 13:43:08 DEBUG (SyncWorker_4) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/41684530cc50e3ff13a3/specifications, params = None, body = None, headers = {'client_id': 'xxxxxxxx', 'sign': 'xxxxxxx', 'sign_method': 'HMAC-SHA256', 'access_token': 'xxxxxxxx', 't': '1625661788808', 'lang': 'en'} 2021-07-07 13:43:08 DEBUG (SyncWorker_4) [tuya iot] Response: { "result": { "category": "kj", "functions": [ { "code": "switch", "type": "Boolean", "values": "{}" }, { "code": "fan_speed_enum", "type": "Enum", "values": "{"range":["low","mid","high"]}" }, { "code": "light", "type": "Boolean", "values": "{}" }, { "code": "filter_reset", "type": "Boolean", "values": "{}" } ], "status": [ { "code": "switch", "type": "Boolean", "values": "{}" }, { "code": "fan_speed_enum", "type": "Enum", "values": "{"range":["low","mid","high"]}" }, { "code": "filter", "type": "Integer", "values": "{"unit":"%","min":0,"max":100,"scale":0,"step":1}" }, { "code": "light", "type": "Boolean", "values": "{}" }, { "code": "filter_reset", "type": "Boolean", "values": "{}" }, { "code": "countdown_left", "type": "Integer", "values": "{"unit":"min","min":0,"max":480,"scale":0,"step":1}" }, { "code": "air_quality", "type": "Enum", "values": "{"range":["great","medium","severe"]}" } ] }, "success": true, "t": 1625661788845 }

貢獻者指南