binsentsu / am43-ctrl

Node Util for controlling an AM43 Blinds Drive Cover, either over MQTT or via a HTTP API
44 stars 25 forks source link

Lag Between Commands #8

Closed marc25v closed 4 years ago

marc25v commented 4 years ago

Hi,

I have successfully installed your node app. Works great, however there is excessive lag time when issuing commands.

For example, in Home Assistant if I press Down, it may take the blinds anywhere from 2-20 seconds to respond. As such, it is nearly impossible to press Stop and get the right Level. Is there something I can modify in the script that would remove this lag?

Thanks

binsentsu commented 4 years ago

Hi. Mostly this happens because of the fact that the range of BLE hardware inside the AM43 units is not that good. Don't know if your bluetooth adapter is far from your blinds. The retry mechanism in the script tries to make sure the command is received and processed by the blind. The moment I find some spare time, I will implement opening/closing based on position percentage. (see #6 ) This way the final position will not be dependent on pushing the stop button.

binsentsu commented 4 years ago

Hi, blind control based on position is implemented within branch feature-position. Will release it when running stable for some time at my place. Feel free to test it.

marc25v commented 4 years ago

Thanks for letting me know. I’ll test it for sure.

On Wed, Mar 25, 2020 at 7:30 PM binsentsu notifications@github.com wrote:

Hi, blind control based on position is implemented within branch feature-position. Will release it when running stable for some time at my place. Feel free to test it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/binsentsu/am43-ctrl/issues/8#issuecomment-604143018, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXBTM3VFCYXRV4LVUXGPZDRJKHX5ANCNFSM4LJTTHZA .

--

marc25v commented 4 years ago

I have been testing the new branch out for the last 24 hours and haven’t had any issues. The position is correctly being set and my automations are continuing to work through MQTT without a problem. Thanks for your great work.

binsentsu commented 4 years ago

Glad to hear. Thanks for testing!

marc25v commented 4 years ago

Hi,

Noticed you published v2.0 today -- Did anything change between v2.0 and the feature release I was testing?

Thanks!

binsentsu commented 4 years ago

Nope

binsentsu commented 4 years ago

workaround implemented by using position based blinds control