-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cover states stays as Opening when issuing the open/up command #366
Comments
Does your device send attribute updates as the cover is opening? When it fully opens, ZHA should receive an attribute update like I believe this logic should handle it:
|
Yes, the device reports both current_position_lift (id: 0x0003, value: 0) and current_position_lift_percentage (id: 0x0008, value: 0) in the WindowCovering cluster (id: 0x102). These values have been verified in the administer Zigbee-unit GUI in Home Assistant when the cover is stuck in the Opening state after being fully opened. |
Can you upload a debug log of it opening and getting stuck? |
I've uploaded debug log from HA from triggering the up command in the HA UI. State at the end is stuck in Opening. |
Also seems similar to this issue: |
I'm making a Zigbee device to control my garage door. I can control the device fine, all commands work, and state in Home Assistant updates as expected, except that sometimes when I click the "Up/Open" button, it's stuck in "Opening", even when it's 100% open. Sometimes it works though... If I use the position slider and set it to 100% open, it always changes state to "Open" when it's done.
After some googling, I have found other users experiencing the same behavior with other Zigbee Window Coverings, like from IKEA. One post somewhere suggested that the problem is target_lift_position not being updated before the command is issued to the device. This seems to be the case for me as well. It's updated when I use the slider, but when using the Up or Down buttons, it remains unchanged. The stop button seems to update it to the current position.
I guess that self._target.lift_position needs to be updated here:
https://github.com/zigpy/zha/blob/dev/zha/application/platforms/cover/__init__.py#L279
https://github.com/zigpy/zha/blob/dev/zha/application/platforms/cover/__init__.py#L294
Like it's done here:
https://github.com/zigpy/zha/blob/dev/zha/application/platforms/cover/__init__.py#L311
The text was updated successfully, but these errors were encountered: