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
857 stars 206 forks source link

Dehumidifier support -no controls- #107

Open alkalinelito opened 2 years ago

alkalinelito commented 2 years ago

Dehumidifier show no controls on device page on home assistant, maybe the device is not supported:

image

I have the Dehumidifier on Smart Life, and I can see it in the cloud as follows: image

Smart Life screenshot:

image

Expected behavior Device page shows no controls

Home Assistant Version 2021.6.6

Device info:

2021-07-07 16:26:55 ERROR (Thread-3) [tuya iot] error while get mqtt config 2021-07-07 16:26:56 DEBUG (SyncWorker_1) [tuya iot] Response: { "result": [ { "active_time": 1625117664, "biz_type": 18, "category": "kt", "create_time": 1624916636, "icon": "smart/icon/1493368623_0.png", "id": "60556140d8bfc0de3c6c", "ip": "167.56.208.207", "lat": "", "local_key": "302e2e22e303a0cc", "lon": "", "name": "Dehumidifier", "online": true, "owner_id": "44687697", "product_id": "hPT9bBxYTh5xVZd8", "product_name": "Dehumidifier", "status": [ { "code": "temp_set", "value": 60 }, { "code": "windspeed", "value": "0" } ], "sub": false, "time_zone": "-03:00", "uid": "az1625116767839FaKfc", "update_time": 1625646046, "uuid": "60556140d8bfc0de3c6c" } ],

Device specifications

2021-07-07 16:26:56 DEBUG (SyncWorker_1) [tuya iot] Request: method = GET, url = https://openapi.tuyaus.com/v1.0/devices/60556140d8bfc0de3c6c/specifications, params = None, body = None, headers = {'client_id': 'ckkw73mmapx808h09dfp', 'sign': '5E5CC058397BBC85F472F0DD15AB15858FBBDCF09E7AB03B326A58427ED7F6E4', 'sign_method': 'HMAC-SHA256', 'access_token': 'd64d486560bb8f03f6f8de9008271824', 't': '1625686016434', 'lang': 'en'} 2021-07-07 16:26:56 DEBUG (SyncWorker_1) [tuya iot] Response: { "result": { "category": "kt", "functions": [ { "code": "temp_set", "type": "Integer", "values": "{\"unit\":\"%\",\"min\":15,\"max\":70,\"scale\":0,\"step\":5}" }, { "code": "windspeed", "type": "Enum", "values": "{\"range\":[\"0\",\"2\"]}" } ], "status": [ { "code": "temp_set", "type": "Integer", "values": "{\"unit\":\"%\",\"min\":15,\"max\":70,\"scale\":0,\"step\":5}" }, { "code": "windspeed", "type": "Enum", "values": "{\"range\":[\"0\",\"2\"]}" } ] }, "success": true, "t": 1625686016636 }

tsutsuku commented 2 years ago

@alkalinelito According to the cloud your device is a "Air conditioner", but in smart life screen, it a dehumidifier, so what's the real device it is?

alkalinelito commented 2 years ago

Hi, it's a dehumidifier

alkalinelito commented 2 years ago

This are the device pictures, no idea why tuya cloud classifies it as "Air conditioner"

image

alkalinelito commented 2 years ago

Hi @tsutsuku , Should 1.5.0 support this dehumidifier now? .