dubocr / homebridge-gpio-device

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

changing DigitalInput toggle to stateChange #127

Open brianhackel opened 1 year ago

brianhackel commented 1 year ago

i can't speak for anything other than the MotionSensor with OccupancySensor, but it looks like the second gpio.init() call should be stateChange rather than toggle callback in order to trigger the occupancy sensor update call. I believe this resolves #121