lagunacomputer / homebridge-MotionSensor

HomeBridge HomeKit Plugin for arduino based PIR motion sensors
23 stars 15 forks source link

homebridge-MotionSensor

Creates a Motion Sensor Accessory for iOS Home app/Homekit via Homebridge. The state of the sensor can be periodically checked or only checked when homebridge requests the current value.

Installation

  1. Install homebridge using: npm install -g homebridge
  2. Install this plugin using: npm install -g homebridge-MotionSensor or sudo npm install -g git+https://github.com/lagunacomputer/homebridge-MotionSensor.git
  3. Update your configuration file. See sample-config.json in this repository for a sample.

Configuration

See the sample-config.file to see an example of working accessory. Following, all available options are explained:

The mandatory options are:

The other available options are:

Endpoint expectations

The enpoint can return 2 types of body responses: