Home Assistant integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, maintained by the Home Assistant Community and Tuya Developer Team.
Describe the bug
There is no slider or selector for fan speed for Atomberg Renesa fan.
Expected behavior
6 fan speeds should be available mapped to fan speed percentage slider.
Home Assistant Version
e.g. 2021.7.1
Device info (please complete the following information, which can be found in log):
like this:
2021-07-27 02:47:29 DEBUG (SyncWorker_6) [tuya iot] Response: {
"result": [
{
"active_time": 1615383369,
"biz_type": 18,
"category": "fs",
"create_time": 1615383369,
"icon": "smart/program_category_icon/fs.png",
"name": "Gorilla Fan",
"online": true,
"product_id": "vyi7ct3rfr8xv4iu",
"product_name": "Atomberg fan",
"status": [
{
"code": "switch",
"value": true
},
{
"code": "fan_speed",
"value": "2"
},
{
"code": "light",
"value": false
}
Describe the bug There is no slider or selector for fan speed for Atomberg Renesa fan. Expected behavior 6 fan speeds should be available mapped to fan speed percentage slider.
Home Assistant Version
Device info (please complete the following information, which can be found in log): like this: 2021-07-27 02:47:29 DEBUG (SyncWorker_6) [tuya iot] Response: { "result": [ { "active_time": 1615383369, "biz_type": 18, "category": "fs", "create_time": 1615383369, "icon": "smart/program_category_icon/fs.png", "name": "Gorilla Fan", "online": true, "product_id": "vyi7ct3rfr8xv4iu", "product_name": "Atomberg fan", "status": [ { "code": "switch", "value": true }, { "code": "fan_speed", "value": "2" }, { "code": "light", "value": false }
Device specifications (please complete the following information, which can be found in log): Same device's id, like this: [2021-07-01 10:18:01,351] [tuya-openapi] Request: method = GET, url = https://openapi.tuyacn.com/v1.0/devices/aaaaaaaaaaa/specifications, params = None, body = None, headers = {'client_id': 'xxxxxxxxxxxx', 'sign': 'xxxxxxxxxxxx', 'sign_method': 'HMAC-SHA256', 'access_token': 'xxxxxxxxxxxxxxxx', 't': '1625105881351', 'lang': 'en'} 2021-07-01 10:18:01 DEBUG (SyncWorker_1) [tuya iot] "result": { "category": "fs", "functions": [ { "code": "switch", "type": "Boolean", "values": "{}" }, { "code": "fan_speed", "type": "Enum", "values": "{\"range\":[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\"]}" }, { "code": "light", "type": "Boolean", "values": "{}" } ], "status": [ { "code": "switch", "type": "Boolean", "values": "{}" }, { "code": "fan_speed", "type": "Enum", "values": "{\"range\":[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\"]}" }, { "code": "light", "type": "Boolean", "values": "{}" } ] }, "success": true, "t": 1627334249734