-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
[Bug] TargetPosition
of WindowCovering
shouldn't update while in motion
#852
Comments
Previously I added this so that but actually showed that something was happening. Perhaps they changed the Home.app since the initial implementation though. Do you have an "official" HomeKit window covering so we can peek at when they update their states? |
Sure! Here are some examples:
Both only seem to update their current position once stopped. They also don't support
This one is interesting. It supports However, I now know what's actually going on here. Give me a second to verify... ⚙️ Edit: Below are all
|
@itavero Ok, here's what's going on: We're continually updating I can confirm that all of the aforementioned accessories behave in exactly this manner, that is, writing |
CurrentPosition
of WindowCovering
shouldn't update while in motionTargetPosition
of WindowCovering
shouldn't update while in motion
@itavero Did some further testing, and logged HAP commands coming from a Bosch Shutter Control Gen. I when using the in-wall switch directly. a.
And fully open from HomeKit: b.
|
This comment was marked as outdated.
This comment was marked as outdated.
Thanks for looking into this. I did not have time to process all your information, but I can see indeed some opportunities for improvements. I'm not sure when I'll have time to dive into this myself as well, but I'm open to accepting a PR to improve this behavior. |
No worries, it's indeed a lot. Let me quickly summarize my key findings for you:
I'm happy to provide a PR, but probably will need a little bit of support, because I'm not yet super familiar with the codebase. 😊 |
This comment was marked as outdated.
This comment was marked as outdated.
@itavero I did some more in depth analysis of the plugin's current behavior with the Bosch BCMT-SLZ, and here's what I've found:
|
Looks to be the case. 😬 The sooner we can get Also, what's the deal with that |
@itavero I have an update for you. 😎 The Good: I have a 99% HAP-compliant The Bad: It requires There's unfortunately no way around it. We need some kind of "direction of movement" indicator from the device itself , otherwise we're just guessing based on By default, your original code is used for all devices, unless |
I hope I'll have some time in the next week or so to review it. Thanks! |
Yey! Thanks for merging! 🥳 |
Is there an existing issue for this?
Describe the bug
As far as I understand the HAP specification, we shouldn't update the
TargetPosition
ofWindowCovering
accessory while it's still moving. This is especially true when a open/close command came directly from Home.app via user input.Otherwise, the UX is kind awful and UI elements are quickly jumping around.
All certified accessories I've seen so far, update their
TargetPosition
only once before they're starting to move.I suggest we follow their example and adjust the current implementation accordingly.
Related devices
Related Devices
No response
Steps To Reproduce
A)
WindowCovering
service in Home.app to fully open (or close) a coveringB)
WindowCovering
service in Home.app to reveal controlsExpected behavior
A)
WindowCovering
service in Home.app to e.g. fully open a coveringB)
WindowCovering
service in Home.app to reveal controlsDevice entry
Status update
Messages from this plugin
No response
This plugin
1.11.0-beta.3
Homebridge
1.7.0
Zigbee2MQTT
1.36.1-dev
Homebridge Config UI X (if applicable)
No response
The text was updated successfully, but these errors were encountered: