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

Small Home Appliances (lyj) unsupported device: "This device has no entities" #829

Open cozywil opened 2 years ago

cozywil commented 2 years ago

Small Home Appliances (lyj)

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2022.7.7", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.10.5", "docker": true, "arch": "aarch64",

"os_name": "Linux",
"os_version": "5.15.32-v8",
"supervisor": "2022.07.0",
"host_os": "Home Assistant OS 8.4",
"docker_version": "20.10.14",
"chassis": "embedded",
"run_as_root": true

"name": "Solar",
"model": "Solar",
"category": "lyj",
"product_id": "z8cdwcirki1ethwc",
"product_name": "",
"online": true,
"sub": false,

"function": {
  "control": {
    "type": "Enum",
    "value": {
      "range": [
        "stop",
        "up",
        "down"
      ]
    }
  },
  "light": {
    "type": "Boolean",
    "value": {}
  },
  "disinfection": {
    "type": "Boolean",
    "value": {}
  },
  "wind_dry": {
    "type": "Boolean",
    "value": {}
  },
  "hot_dry": {
    "type": "Boolean",
    "value": {}
  },
  "hot_dry_set": {
    "type": "Enum",
    "value": {
      "range": [
        "1h",
        "2h",
        "3h"
      ]
    }
  },
  "wind_dry_set": {
    "type": "Enum",
    "value": {
      "range": [
        "1h",
        "2h",
        "3h"
      ]
    }
  }
},
"status_range": {
  "control": {
    "type": "Enum",
    "value": {
      "range": [
        "stop",
        "up",
        "down"
      ]
    }
  },
  "light": {
    "type": "Boolean",
    "value": {}
  },
  "disinfection": {
    "type": "Boolean",
    "value": {}
  },
  "wind_dry": {
    "type": "Boolean",
    "value": {}
  },
  "hot_dry": {
    "type": "Boolean",
    "value": {}
  },
  "work_state": {
    "type": "Enum",
    "value": {
      "range": [
        "stop",
        "up",
        "down"
      ]
    }
  },
  "hot_dry_set": {
    "type": "Enum",
    "value": {
      "range": [
        "1h",
        "2h",
        "3h"
      ]
    }
  },
  "wind_dry_set": {
    "type": "Enum",
    "value": {
      "range": [
        "1h",
        "2h",
        "3h"
      ]
    }
  },
  "hot_left": {
    "type": "Integer",
    "value": {
      "unit": "min",
      "min": 0,
      "max": 180,
      "scale": 0,
      "step": 1
    }
  },
  "wind_left": {
    "type": "Integer",
    "value": {
      "unit": "min",
      "min": 0,
      "max": 180,
      "scale": 0,
      "step": 1
    }
  },
  "disinfect_left": {
    "type": "Integer",
    "value": {
      "unit": "min",
      "min": 0,
      "max": 30,
      "scale": 0,
      "step": 1
    }
  }
},
"status": {
  "control": "stop",
  "light": false,
  "disinfection": false,
  "wind_dry": false,
  "hot_dry": false,
  "work_state": "stop",
  "hot_dry_set": "1h",
  "wind_dry_set": "1h",
  "hot_left": 60,
  "wind_left": 60,
  "disinfect_left": 0
},
"home_assistant": {
  "name": "Solar",
  "name_by_user": null,
  "disabled": false,
  "disabled_by": null,
  "entities": []
}

} }

honcheng commented 11 months ago

I submitted a PR to HA repo to add drying rack support to Tuya Integration.

https://github.com/home-assistant/core/pull/100745