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
880 stars 207 forks source link

Garage Door Opener is showing as cover instead of switch and missing binary sensor #666

Open reesion opened 3 years ago

reesion commented 3 years ago

Describe the bug Garage Door Opener is showing as cover instead of switch and missing binary sensor

Expected behavior Garage Door Open is meant to have a switch and binary sensor

Screenshots image image

Home Assistant Version

cralwalker commented 3 years ago

Same as #659?

Xwandroid commented 3 years ago

I experience this same issue, my Lomota Garage Door Opener (Smart WiFi Garage Door Opener; product category ckmkzq) is showed as cover and no binary sensor. It opens (down arrow) but doesn't close (up arrow) :( (Core 2021.11.0 but also on 2021.11.1)

Jldouglas84 commented 3 years ago

I experience this same issue, my Lomota Garage Door Opener (Smart WiFi Garage Door Opener) is showed as cover and no binary sensor. It opens (down arrow) but doesn't close (up arrow) :( (Core 2021.11.0 but also on 2021.11.1)

I too have the same behaviour as @Xwandroid

bradfree63 commented 3 years ago

Same exact issue as above. Wofea garage door controller

cralwalker commented 3 years ago

@sambarlick raised a feature request. Go vote: https://community.home-assistant.io/t/tuya-garage-door-opener-kogan-smart-wireless-garage-door-opener/355905

faster777 commented 2 years ago

I can confirm that this is still an issue with HA 2022.3.8 for Smart Garage Door Opener using Tuya category=ckmkzq. According to Supported Tuya Device Category that category is supported by Tuya integration (through Tuya IoT Platform). The symptom for me is slightly different in that the device is detected in HA but no entities are created.

HAdevice

  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.3.8",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.9.9",
    "docker": true,
    "arch": "x86_64",
    "timezone": "America/Chicago",
    "os_name": "Linux",
    "os_version": "5.10.108",
    "supervisor": "2022.03.5",
    "host_os": "Home Assistant OS 7.6",
    "docker_version": "20.10.9",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {},
  "integration_manifest": {
    "domain": "tuya",
    "name": "Tuya",
    "documentation": "https://www.home-assistant.io/integrations/tuya",
    "requirements": [
      "tuya-iot-py-sdk==0.6.6"
    ],
...
  "data": {
    "endpoint": "https://openapi.tuyaus.com",
    "auth_type": 0,
    "country_code": "1",
    "app_type": "smartlife",
    "mqtt_connected": true,
    "disabled_by": null,
    "disabled_polling": false,
    "name": "Main Garage Door",
    "model": "GD801",
    "category": "ckmkzq",
    "product_id": "vPxZSdMT8rtymUjf",
    "product_name": "Smart Wi-Fi Garage Door Opener",
    "online": true,
    "sub": false,
    "time_zone": "-06:00",
    "active_time": "2022-03-26T19:08:46+00:00",
    "create_time": "2022-03-26T19:08:46+00:00",
    "update_time": "2022-03-26T19:09:44+00:00",
    "function": {},
    "status_range": {},
    "status": {},
    "home_assistant": {
      "name": "Main Garage Door",
      "name_by_user": null,
      "disabled": false,
      "disabled_by": null,
      "entities": []
    }
  }

Side note for @cralwalker : the feature request linked above is for Tuya product category "mc" which is clearly NOT listed on Supported Tuya Device Category, so IMO that feature request is not relevant to this bug because this bug is for supported category "ckmkzq"