Support request: Tuya Recuperator AV-TTW5-W (Category: fs)

Hi everyone,
I integrated my AV-TTW5-W decentralised recuperator via the Tuya integration. Currently, it only shows the ON/OFF switch.

According to the Tuya API Explorer, the device is categorized as « fs » (Fan) and supports 3 speed levels via fan_speed_percent as well as a light switch.

Could you please add the mapping for this device type so the fan speed slider and light switch become available in Gladys?

Here is my JSON payload from the Tuya IoT Platform:

json

{
  "result": {
    "category": "fs",
    "functions": [
      {
        "code": "switch",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "fan_speed_percent",
        "type": "Integer",
        "values": "{\"unit\":\"\",\"min\":1,\"max\":3,\"scale\":0,\"step\":1}"
      },
      {
        "code": "light",
        "type": "Boolean",
        "values": "{}"
      }
    ],
    "status": [
      {
        "code": "switch",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "fan_speed_percent",
        "type": "Integer",
        "values": "{\"unit\":\"\",\"min\":1,\"max\":3,\"scale\":0,\"step\":1}"
      },
      {
        "code": "light",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "fault",
        "type": "Bitmap",
        "values": "{\"label\":[\"E1\",\"E2\",\"E3\",\"E4\",\"E5\"]}"
      }
    ]
  },
  "success": true
}

Thanks in advance for your amazing work on the Tuya integration!

That’s a job for @Terdious’s colleague :wink: