dubocr / homebridge-gpio-device

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

Issue: Occupancy Sensor not updating when Motion triggered #121

Open Ryan1524 opened 2 years ago

Ryan1524 commented 2 years ago

I've setup Motion Sensor on GPIO5 (oddly still accepting the wPI value, instead of BCM). The Sensor triggers, but Occupancy does not update. Wondering if it's something to do with the inverted:true that I'm using.

Thanks for in advance for your thoughts. Any suggestions would be appreciated.

Config

   {
        "accessory": "GPIODevice",
        "type": "MotionSensor",
        "name": "Office Motion",
        "pin": 5,
        "inverted": true,
        "occupancy": {
            "name": "Home Occupancy",
            "timeout": 3600
        }
    }

Screen Shot 2021-09-08 at 18 30 17 Screen Shot 2021-09-08 at 18 30 07