dubocr / homebridge-gpio-device

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

Enhancement request: please add postpone properties to GarageDoorOpener 🙏🙏🙏 #117

Open zany92 opened 3 years ago

zany92 commented 3 years ago

First of all, thank you for your fantastic plugin. I really like it. I use it for multiple purpose at home, from security to mailbox notification, this is really great.

I would like to know if you could add optional postpone properties between 2 state changes on openSensorPin and closeSensorPin to avoid bouncing. That would be awesome for my usage.

My garage door control unit(Nice MC824H) provides the following output for door status: slow blinking: door closing quick blinking: door opening fixed: opened off: closed

With postpone properties on closeSensorPin, I could easily skip the blinking message with a value greater than the blinking time. That would be awesome and probably very useful for others.

Many thanks to the team.

dubocr commented 3 years ago

Postpone was already existing but I just add a workaround to use it with your usecase. You can configure the debounce duration with config param unbouncing with a value in ms (500 by default).

Best