10000 Tuya cover reporting target (control) position instead of current position · Issue #71242 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Tuya cover reporting target (control) position instead of current position #71242
Closed
@Seramme

Description

@Seramme

The problem

Cover configured via Tuya integration seems to be using percent_control attribute instead of percent_state attribute when reporting current_position value. This means that if the cover is fully closed (position = 0) and the open command is issued but then stop command is issued halfway through opening process, current position will be reported as 100 instead of where it actually stopped.

This particular cover is actually a Zigbee cover motor (AM43 Zigbee Blinds Drive).

Locally, I edited tuya/cover.py to use current_position=DPCode.PERCENTAGE_STATE instead of current_position=(DPCode.PERCENT_CONTROL, DPCode.PERCENT_STATE) and it now works perfectly.

What version of Home Assistant Core has the issue?

2022.4.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Tuya

Link to integration documentation on our website

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

Diagnostics information

tuya-bc6e06c54e30851242723ffb15e59716-Kitchen Blinds-5ff2bc10b934cef959eb60b5cb17bac7.json (5).txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0