rsporny / homebridge-gpio-blinds

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

Pin 4 not working with homebridge-gpio-blinds library #18

Open matickunaver opened 5 years ago

matickunaver commented 5 years ago

I am experiencing a strange issue. GPIO pin 4 won't work when using this plugin (other pins work). If I use python script, it works. The same setup, python works, Homebridge with GPIO04 not. All other pins are are working. Attached is my config file (other pins are working) and python file for moving pin 4 manually (also works). Any idea what might be wrong? Cannot wire it to another pin.

{ "bridge": { "name": "Homebridge", "username": "CC:22:3D:E3:CE:32", "port": 51826, "pin": "031-45-154" }, "description": "", "accessories": [ { "accessory": "Blinds", "name": "Bedroom", "pinUp": 22, "pinDown": 4, "durationUp": 18000, "durationDown": 17000, "durationOffset": 1000, "activeLow": false }, { "accessory": "Blinds", "name": "Work room", "pinUp": 6, "pinDown": 26, "durationUp": 18000, "durationDown": 17000, "durationOffset": 1000, "activeLow": false } ] }

This one works GPIO.setup(4, GPIO.OUT) GPIO.output(4, GPIO.HIGH) print 4, " on" time.sleep(10)

rsporny commented 5 years ago

Could you confirm that in both cases you're using the GPIOxx numbering (not physical pin numbering)? If that's not the case please provide rpio version you're using.