-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Retries if blind position is not correct? #313
Comments
Some initial testing....
So I guess this is a 2 part FR. |
Hi @MRobi1, Should we first start by debugging why your blinds aren't reaching the calculated position?
This is actually already in the code. After a command is sent, it waits for a state event that confirms whether the blinds are in the correct position and reports that internally. However, the minimum time interval works a bit differently than you described. The code records the timestamp of the last state event and sets a virtual timer based on the user's x-minute setting. During this timer, it recalculates based on updates from the sun's position, but it doesn’t send a new command to the blinds. Once the timer ends, it waits for the next update from the sun's position before sending another command. So, the interval between commands is at least x minutes, but usually longer since the sun's updates come at different intervals depending on the time of day. To debug this, you should enable debug logging from the integrations menu and let it run for several minutes. It will track the steps the code goes through and report whether the blinds reached the desired position. Additionally, you can share the diagnostics, which show the settings you've configured in the integration options. |
Checklist
Is your feature request related to a problem? Please describe.
Not related to a problem
Describe the solution you'd like
Does the integration implement any sort of retry if the blind does not respond to the initial request?
Describe alternatives you've considered
None
Additional context
Initially I thought this issue was primarily due to manual override, but I've since disabled that completely.
I'm finding several times that I'll have sun very obviously coming in through the windows. I'll check the integration and it will say the blind level is set to something like 18%, but my row of 9 windows will all have the blinds open. I'm not entirely sure why because the blinds respond perfectly to manual controls and have responded perfectly to my manual automation I had running for approximately a year now.
Here's an example from as I'm writing this. Integration shows side door blind should be open to 99%.
But the blind state is currently closed in Zigbee2MQTT
Does the integration do any sort of logic to ensure the blinds have responded to the request? Maybe after X seconds to account for transition check the blind position vs the calculated position and re-send the command to reposition the blinds if it is not correct?
The text was updated successfully, but these errors were encountered: