tuya / tuya-home-assistant

Home Assistant integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, maintained by the Home Assistant Community and Tuya Developer Team.
MIT License
871 stars 206 forks source link

Maxcio Smart Aroma Diffuser Only Supports On/Off #374

Open Kackerlacka opened 3 years ago

Kackerlacka commented 3 years ago

Describe the bug The Maxcio Smart Aroma Diffuser (Smart Life App) is only able to be controlled by turning the entire thing off and on. Two entities are created - a humidifier with 0 supported features (can only turn off and on), and a light entity that turns itself off immediately after turning on (does not control the light on the diffuser at all).

Expected behavior Home Assistant should be able to control the diffuser's mist mode (low, high, off) as well as the light (on/off, RGB colors, color mode).

Screenshots None

Home Assistant Version 2021.8.7

Device info (please complete the following information, which can be found in log): { "active_time": 1627023398, "biz_type": 18, "category": "jsq", "create_time": 1627023398, "icon": "smart/icon/ay1496289297888GkNKB/e37dc3d5bed7147b344e6eda5073f40e.jpg", "id": "eb5a649a9f92cdb9ec1pq6", "ip": "", "lat": "", "local_key": "", "lon": "", "name": "Smart Aroma Diffuser Two", "online": true, "owner_id": "11866790", "product_id": "yodwo2ujgwbgjaio", "product_name": "", "status": [ { "code": "switch", "value": true } ], "sub": false, "time_zone": "-07:00", "uid": "", "update_time": 1629260091, "uuid": "912153509b40b0b0" }, { "active_time": 1625883466, "biz_type": 18, "category": "cz", "create_time": 1625877313, "icon": "smart/icon/ay1519551146071pEnBd/2fae60091fd7cb600ea42b7f81c48d8f.png", "id": "177623502462ab3c8a02", "ip": "", "lat": "", "local_key": "", "lon": "", "name": "Hanging Light Two", "online": true, "owner_id": "11866790", "product_id": "AiHXxAyyn7eAkLQY", "product_name": "Mini Smart Plug", "status": [ { "code": "switch_1", "value": true }, { "code": "countdown_1", "value": 0 } ], "sub": false, "time_zone": "-08:00", "uid": "", "update_time": 1629259965, "uuid": "177623502462ab3c8a02" }

Device specifications (please complete the following information, which can be found in log): 2021-08-17 23:00:15 DEBUG (SyncWorker_0) [tuya iot] Request: method = GET, url = https://openapi.tuyaus.com/v1.0/devices/eb5a649a9f92cdb9ec1pq6/specifications, params = None, body = None, t = 1629266415798 2021-08-17 23:00:15 DEBUG (SyncWorker_0) [tuya iot] Response: { "result": { "category": "jsq", "functions": [ { "code": "switch", "type": "Boolean", "values": "{}" } ], "status": [ { "code": "switch", "type": "Boolean", "values": "{}" } ] }, "success": true, "t": 1629266415863 }

Additional context Device Log provided is for Maxcio Smart Aroma Diffuser.

Camatobe commented 2 years ago

With new Home Assistant Version 2021.10.1 only a light entity is created via the tuya integration.

in the tuya developer center / device debugger two switches are possible (fog & light)

Expected: