dubocr / homebridge-gpio-device

Homebridge GPIO device expose several HomeKit accessories interacting with GPIO
Apache License 2.0
66 stars 20 forks source link

pulseDuration: 0 never turns off the pin #119

Open philhar88 opened 3 years ago

philhar88 commented 3 years ago

I have a motorized roof covering that requires a remote control button to be pressed the entire duration of the up/down operation. I have wired the buttons to a relay connected to my rPi3.

This is my configuration

        {
            "accessory": "GPIODevice",
            "name": "Balcony Roof",
            "type": "WindowCovering",
            "pins": [
                22,
                4
            ],
            "shiftDuration": 15,
            "pulseDuration": 0
        }

I was expecting the relay to be turned off after the shiftDuration. Instead it never turns off. If I set the pulseDuration to 15000 it creates strange results with the accessory is not responding etc.

Should the relay turn off after the shiftDuration is complete?