rsporny / homebridge-gpio-blinds

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

Relay management #3

Closed kiondi closed 6 years ago

kiondi commented 7 years ago

Hello The plugin works fine with homebridge. How can I do to reverse the GPIO exit when it work? The plugin set the port HIGHas default, when the blind stop, and LOW when the blind work. Thanks

kiondi commented 7 years ago

I need trigger the relay by the HIGH level

rsporny commented 7 years ago

Hi, sure I will make the active gpio configurable in a couple of days.

hyperbart commented 6 years ago

Might be related to my issue to. Afaik we need a HIGH to start the blinds.

hyperbart commented 6 years ago

I saw you pushed, will look through code later on, super work, thanks!

Just out of curiosity: do you mind sharing which motor you have for your blinds and how you have wired them to your relay board (NO/NC?). Because both @martijndierckx and I were pretty surprised to see that you need an inverted open to control your motor?

rsporny commented 6 years ago

@hyperbart I've got relay module as in README here. All the wires from the roller blinds goes directly to garage where this whole setup is connected with raspberry. I don't have any switches near windows, all of this is controlled via iOS Home app only.

img_44592

rsporny commented 6 years ago

@kiondi sorry for taking it so long. Fixed in v1.0.1.

hyperbart commented 6 years ago

Works perfect!

You're gonna laugh a little bit but I found a new "enhancement" 😄 .

A dual-controlled blind (a blind with a fixed switch and the homebridge-gpio-blinds) does not report back a state, so you could get a mismatched object in HomeKit where it thinks it is closed or open while it's the opposite. The guys at homebridge-rasppi-gpio-garagedoor have solved this by including a reed-switch/magnet-switch which signals is the garagedoor is open or closed.