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
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