Tuya integration, smart rack towel seen as unsupported

Hi!
I have a smart towel rack, connected to the tuya envionment. It has several exposed actions/sensors (power on, timer, set and current temperature, etc). I want to automate it’s functions (for example turn it on when i’m producing more solar power that what i’m consuming, maybe increasing the target temperature).
This is the diagnostic log:

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.12.0",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.6",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Rome",
    "os_name": "Linux",
    "os_version": "6.1.58-haos-raspi",
    "supervisor": "2023.11.6",
    "host_os": "Home Assistant OS 11.2",
    "docker_version": "24.0.7",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "hacs": {
      "version": "1.33.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    }
  },
  "integration_manifest": {
    "domain": "tuya",
    "name": "Tuya",
    "codeowners": [
      "@Tuya",
      "@zlinoliver",
      "@frenck"
    ],
    "config_flow": true,
    "dependencies": [
      "ffmpeg"
    ],
    "dhcp": [
      {
        "macaddress": "xxxx*"
      },
      {
        "macaddress": "xxxx*"
      },
      {
        "macaddress": "xxxx*"
      },
      {
        "macaddress": "xxxx*"
      },
      {
        "macaddress": "xxxx*"
      },
      {
        "macaddress": "xxxx*"
      },
      {
        "macaddress": "xxxx*"
      },
      {
        "macaddress": "xxxx*"
      },
      {
        "macaddress": "xxxx*"
      },
      {
        "macaddress": "xxxx*"
      },
      {
        "macaddress": "xxxx*"
      }
    ],
    "documentation": "https://www.home-assistant.io/integrations/tuya",
    "integration_type": "hub",
    "iot_class": "cloud_push",
    "loggers": [
      "tuya_iot"
    ],
    "requirements": [
      "tuya-iot-py-sdk==0.6.6"
    ],
    "is_built_in": true
  },
  "data": {
    "endpoint": "https://openapi.tuyaeu.com",
    "auth_type": 0,
    "country_code": "39",
    "app_type": "tuyaSmart",
    "mqtt_connected": true,
    "disabled_by": null,
    "disabled_polling": false,
    "name": "Portasciugamani intelligente",
    "model": "119",
    "category": "mjj",
    "product_id": "yghsoyzoicezv8sy",
    "product_name": "Smart Towel Rack",
    "online": true,
    "sub": false,
    "time_zone": "+01:00",
    "active_time": "2023-12-07T19:10:50+00:00",
    "create_time": "2023-12-07T19:10:50+00:00",
    "update_time": "2023-12-07T19:10:53+00:00",
    "function": {
      "switch": {
        "type": "Boolean",
        "value": {}
      },
      "temp_set": {
        "type": "Integer",
        "value": {
          "unit": "\u2103",
          "min": 30,
          "max": 70,
          "scale": 0,
          "step": 5
        }
      },
      "countdown_set": {
        "type": "Enum",
        "value": {
          "range": [
            "cancel",
            "1h",
            "2h",
            "3h",
            "4h",
            "5h",
            "6h"
          ]
        }
      }
    },
    "status_range": {
      "switch": {
        "type": "Boolean",
        "value": {}
      },
      "temp_set": {
        "type": "Integer",
        "value": {
          "unit": "\u2103",
          "min": 30,
          "max": 70,
          "scale": 0,
          "step": 5
        }
      },
      "temp_current": {
        "type": "Integer",
        "value": {
          "unit": "\u2103",
          "min": 0,
          "max": 90,
          "scale": 0,
          "step": 1
        }
      },
      "countdown_set": {
        "type": "Enum",
        "value": {
          "range": [
            "cancel",
            "1h",
            "2h",
            "3h",
            "4h",
            "5h",
            "6h"
          ]
        }
      },
      "countdown_left": {
        "type": "Integer",
        "value": {
          "unit": "min",
          "min": 0,
          "max": 1440,
          "scale": 0,
          "step": 1
        }
      },
      "work_state": {
        "type": "Enum",
        "value": {
          "range": [
            "heating",
            "standby"
          ]
        }
      }
    },
    "status": {
      "switch": true,
      "temp_set": 55,
      "temp_current": 54,
      "countdown_set": "cancel",
      "countdown_left": 22,
      "work_state": "standby"
    },
    "home_assistant": {
      "name": "Portasciugamani intelligente",
      "name_by_user": null,
      "disabled": false,
      "disabled_by": null,
      "entities": []
    }
  }
}

As can be seen at the end of the diagnostic log, all the functions are exposed.
How i can “implement” this function in home assistant?

Thanks!

Hello

I am new to HA, and also got the towel rack. did you manage to connect it to HA?

as i am getting “unsupported” as well (Tuya is connected through the cloud).

I hope its solved or someone would assist :slight_smile:

Thank
FJanahi

Hi!
I’ve modified an old version of the tuya ha platform (now is included in ha).
You can find my version here: