rsporny / homebridge-gpio-blinds

Homebridge plugin to control blinds via Raspberry Pi GPIO pins.
MIT License
13 stars 10 forks source link

Plugin takes the target position wrong #7

Closed erokoder closed 6 years ago

erokoder commented 6 years ago

Plugin takes target position wrong when I slow move slider. I moved slider from 0% to 50% slow, but plugin take some position in middle (for example 20%) But when I exit application HOME and after that turn on application. Show Position in correct 20%. After a few such steps, blinds never come to 100% because duration is wrong, blinds near open maybe 95% physical but in application 100%. Can you fix it. Maybe that plugin wait some time (3 s) and after that take Target Position.

Maybe with function: setTimeout();

Rade

rsporny commented 6 years ago

Yes, this is a known issue. To be honest, I get used to it and at first started to move the slider quickly, now I've got some automations and I don't open/close blinds manually at all. But as somebody else is using it, I'm definitely take a closer look to it.

erokoder commented 6 years ago

That would be great, I can help you if I succes change code in my environment. I'm currently working on my own plugin (https://github.com/radebebek/homebridge-sonoff-blinds) , which uses http requests. It's based on your code. But I'm working with the sonoff device which working on wirelles.

erokoder commented 6 years ago

Some progress?

rsporny commented 6 years ago

Hey, I've just published new version, looked at the code and got some ideas to push this ticket forward. Stay tuned ⏳

erokoder commented 6 years ago

@rsporny I will try new code.

rsporny commented 6 years ago

v1.1.1 resolves the bug. Please verify if you can.