rsporny / homebridge-gpio-blinds

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

Blinds with external switches - keep it synced without any sensors #8

Open morphix9 opened 6 years ago

morphix9 commented 6 years ago

Hey, your plugin is great, I tried it out and it works great.

But I also have external (physical) switches to move each blind up/down. This is causing an off-sync with the state remembered by the homebridge. How hard do you think would it be to assign each blind also two input pins that would move them up/down via homebridge. Then the state could be in sync without any position sensors. Would that be possible?

rsporny commented 6 years ago

Hi, it's possible, however it would require from me more research about it. Given my JS skills and lack of free time I cannot say when I'll do it. Let's leave this ticket open and rename title. Maybe someone else would like to help with this.

morphix9 commented 6 years ago

Cool, no worries. Do you think it's even possible to do this with the 'rpio' library? 'onoff' library seams better, as it has interrupt detection and rpio not, or am I wrong?

rsporny commented 6 years ago

thanks, I'll take a closer look into it.

EDIT rpio.poll seems to be the same, but first I need to create some prototype of this setup to test the solution

erokoder commented 6 years ago

@morphix9 You can do this with MQTT Message.

morphix9 commented 6 years ago

@rsporny any chance to test rpio.poll for input pins (as triggers for up/down)?

EnriqueSubias commented 5 years ago

Why don’t you install switchs that control the blind via HomeKit, like the Philips ones. Or maybe even via ssh. (Although it won’t update in HomeKit)?

morphix9 commented 5 years ago

Why don’t you install switchs that control the blind via HomeKit, like the Philips ones. Or maybe even via ssh. (Although it won’t update in HomeKit)?

Yes, that's the point to have it synced with HomeKit.

chrisremie commented 3 years ago

I would also like this feature.

And thanks for making this plugin!