-
-
Notifications
You must be signed in to change notification settings - Fork 19
motion Device
A motion
device exposes a motion sensor connected to a GPIO pin.
homebridge-rpi configures the GPIO pin for input.
Currently, homebridge-rpi is hard-coded to configure a pull-up resister for the GPIO pin.
homebridge-rpi configures pigpiod
to send real-time notifications when the GPIO state changes.
homebridge-rpi debounces the input signal; currently this is hard-coded to 20 msec.
The device is exposed as a separate HomeKit accessory, with a Motion Sensor service. Through this service, you can monitor the motion sensor state in HomeKit, or even configure HomeKit push notifications. The accessory mimics an Eve Motion, exposing a History service, so Eve shows the history of the motion sensor state.
The motion
device uses the following config.json keys:
key | type | Description |
---|---|---|
name |
string | The name for the device in HomeKit. |
gpio |
integer | The GPIO pin. |
reversed |
boolean | The device state is reversed, i.e. report motion when the GPIO pin is high instead of on low. |