-
Notifications
You must be signed in to change notification settings - Fork 26
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
Compensate Drive latency #7
Comments
Hey. Yes, I saw that one for my drive, but I wasn't able to find anything useful in Sonesse motor specs. Although, when doing measurements it looked like it was not very deterministic, but it might be that tests I run were not accurate enough to show how it's behaving (methodology was doing repeated OPENs/Closes by Xms multiple times writing the distance travelled and then repeating for increased number of seconds). Looking at the proposal solution, it looks like it should work, but this is not just a tilt. Position also would be affected if for example, tilt is already 'CLOSED' and movement of blinds is set to |
I am not sure how to interpret the Somfy Data Sheet. My drive behaves like you described it: Sometimes it moves after ~150ms, sometimes not. Because it is not very deterministic, the time based calculation will always be off with these small changes in tilt/position. Maybe this is not fixable. As a workaround, a setting like |
It depends on the usecase and motor someone have :) And I think overachievement is bad from UI perspective, but it is better than your example when no change has been done. Would incrementing by 1% (which is ~100ms in your setup) 100 times cause no movement at all, or maybe the difference happens when fully Open/Closed or after a while or after change of the direction (if latter is it immediate change of direction or after let's say 1 second)? |
You are right, "it depends". For my hardware, I will have a look, if i can come up with a PR for |
I implemented and tested #11 with my setup. The "actuator_activation_duration" of "200ms" makes the whole setup more accurate. |
I am currently using the test-branch of this great custom component.
My hardware is:
The tilt-time of my blinds is ~1200ms (measured by me). The problem i got is, small changes in tilt do not work.
According to the Somfy J4 WT Data Sheet:
My guess is, a setting like "actuator-activation-time" would help in such cases.
So i could configure:
The time to change the tilt should then be calculated like this:
actuator-activation-time + (tilt_duration * tilt-difference)
What do you think? Have you seen such cases before?
The text was updated successfully, but these errors were encountered: