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
72.41k stars 30.3k forks source link

Tuya is not showing the status for covers/curtains. LocalTuya does! #126112

Open Beer17HWAM opened 3 weeks ago

Beer17HWAM commented 3 weeks ago

The problem

Tuya is not showing the status for covers. My status is always "Unknown". With LocalTuya I can see the status.

LocalTuya: State: Open raw_state: "3" friendly_name: Rolluik gang local supported_features: 11

Tuya: State: Unknown device_class: curtain friendly_name: Rolluik gang Curtain supported_features: 11

The Tuya integration thinks it's a"curtain" but the I guess it has to be a "cover". LocalTuya recognize it as a "cover".

Tuya: "home_assistant": { "name": "Rolluik gang", "name_by_user": null, "disabled": false, "disabled_by": null, "entities": [ { "disabled": false, "disabled_by": null, "entity_category": null, "device_class": null, "original_device_class": "curtain", "icon": null, "original_icon": null, "unit_of_measurement": null, "state": { "entity_id": "cover.rolluik_gang_curtain", "state": "unknown", "attributes": { "device_class": "curtain", "friendly_name": "Rolluik gang Curtain", "supported_features": 11 }, "last_changed": "2024-09-17T08:35:45.662470+00:00", "last_reported": "2024-09-17T08:35:45.662531+00:00", "last_updated": "2024-09-17T08:35:45.662470+00:00" } } ] },

LocalTuya: "data": { "device_config": { "host": "192.168.1.xx", "device_id": "xxxx", "local_key": "xxxx", "friendly_name": "Rolluik gang local", "protocol_version": "3.3", "entities": [ { "platform": "cover", "friendly_name": "Rolluik gang local", "id": 1, "commands_set": "1_2_3", "positioning_mode": "none", "span_time": 25.0, "position_inverted": false } ], "product_key": "AXnFs1bJQITWAPA4" } }

What version of Home Assistant Core has the issue?

2024.9.2

What was the last working version of Home Assistant Core?

Never

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tuya

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tuya

Diagnostics information

tuya-01J7ZHZ4A253582YBCY5MG9XMK-Rolluik gang-18e0d44c1d3e7f52bc2cc6ca8d0a9b33.json

Example YAML snippet

N/A

Anything in the logs that might be useful for us?

See also: https://github.com/home-assistant/core/issues/113145

Additional information

No response

home-assistant[bot] commented 3 weeks 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)

Beer17HWAM commented 3 weeks ago

See also: https://github.com/home-assistant/core/issues/113145