Replies: 3 comments 3 replies
-
Does it make any difference if you turn of syslog and mqqtlog? |
Beta Was this translation helpful? Give feedback.
-
No. It will just add possible delays although they may be unnoticed too. I'll backoff. |
Beta Was this translation helpful? Give feedback.
-
The maximum time between shutterstop and the stop of the relay is 50ms. The average should be 25ms; assuming you set the shutterstop in the middle of the 25ms second interval. The only workaround could be to call the Calculation directly after setting the target to the real position. This is not a big deal and I will submit a change for it. |
Beta Was this translation helpful? Give feedback.
-
Hi @stefanbode,
the last commit fixed the delays / backward movements of shutterstop in lower positions.
The only thing that wonders me, now that we got the milliseconds ("Jammern auf hohem Niveau" / "Whining on a high level"):
Time 37 (.144) --> log says: act pos: 36000
at .218 --> shutterstop (what would be + 74 ms = act pos. 38000 (Time 39)
but it takes till .347 until the shutter logs the new stuff (Time 41) --> act pos: 40000 (.144 + 200ms = pos 36000 + 4000)
I don't know why it is not taking the time 39 or time 40 slot to process it ... (so that it reacts earlier)
There is also nothing in the log about time 38 - time 40...
So the position is of by 3000 ( = 150 ms)
If there is a cause for this (not checking / logging between Time 38 - 41) that can be optimized, the reaction to user inputs (e.g. push a button / remote button) would be a litte earlier (up to 150 ms)
Without understanding your code completely I right now think that might be because every 50ms only one shutter related code piece is executed. So it has to wait for the next slow until it will pickup the new stuff.
Could you get around it that way, that you trigger the position-check code right after you executed
Shutter[i].target_position = Shutter[i].real_position;
?This way it would be as responsive as the shutteropen/-close commands (that take 50 ms to switch on the relay)...
But still, the way it is now ist a trillion better than before... Thx for that!
shutterstop:
shutteropen/close:
Do you know what is causing these delays and how to get rid of it?
I would probably make the shutters as responsive as in the original Shelly integration.
Sebastian
Beta Was this translation helpful? Give feedback.
All reactions