home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.07k stars 29.73k forks source link

Tuya Fan Controller showing zero entities #120054

Open dekesone opened 2 months ago

dekesone commented 2 months ago

The problem

Tuya integration works properly for other devices, but for one specific device there are no entities showing. The device is a Fan Controller and has multiple capabilities that should map to entities. The device works properly in the Tuya Smart app. Pasted below is the diagnostic output from the Tuya integration.

Interestingly, the diagnostic json below shows that the device is reporting Status properly (temperature, humidity and switch state), but none of those show up as entities. (Full diagnostic json attached to this issue)

  {
    "id": "eb3e0941425297a915akcg",
    "name": "Fan Controller",
    "category": "xfj",
    "product_id": "hqldzgqpsyr1pw8c",
    "product_name": "Fan Controller",
    "online": true,
    "sub": false,
    "time_zone": "-04:00",
    "active_time": "2024-06-20T22:41:25+00:00",
    "create_time": "2024-06-20T22:41:25+00:00",
    "update_time": "2024-06-20T22:41:25+00:00",
    "function": {
      "switch": {
        "type": "Boolean",
        "value": {}
      }
    },
    "status_range": {
      "switch": {
        "type": "Boolean",
        "value": {}
      },
      "humidity_indoor": {
        "type": "Integer",
        "value": {
          "unit": "%",
          "min": 0,
          "max": 255,
          "scale": 0,
          "step": 1
        }
      },
      "temp_indoor": {
        "type": "Integer",
        "value": {
          "unit": "\u00b0F",
          "min": -40,
          "max": 255,
          "scale": 0,
          "step": 1
        }
      }
    },
    "status": {
      "switch": true,
      "humidity_indoor": 59,
      "temp_indoor": 64
    },
    "home_assistant": {
      "name": "Fan Controller",
      "name_by_user": "Duct Fan Controller",
      "disabled": false,
      "disabled_by": null,
      "entities": []
    },
    "set_up": false,
    "support_local": true
  },

What version of Home Assistant Core has the issue?

core-2024.6.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tuya

Link to integration documentation on our website

No response

Diagnostics information

config_entry-tuya-b9ecd9666717bde26321545423a5f621.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @tuya, @zlinoliver, @frenck, mind taking a look at this issue as it has been labeled with an integration (tuya) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `tuya` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign tuya` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tuya documentation tuya source (message by IssueLinks)