1.0.0 • Published 4 years ago

homebridge-http-pir-motion-sensor v1.0.0

Weekly downloads
50
License
MIT
Repository
github
Last release
4 years ago

homebridge-http-motion-sensor

This is a plugin for homebridge which can monitor a motion sensor via a HTTP endpoint. The endpoint shall return a 0 or 1 value depending on the sensor state.

This project is heavily inspired by cyakimov's homebridge-http-contact-sensor

Install

Previous installation of Homebridge is required.

Then run the following command to install homebridge-http-motion-sensor

npm install -g homebridge-http-motion-sensor

Configuration

To add to your config.json file, under the accessories array :

{
    "accessory": "motion-sensor",
    "name": "Hallway",
    "pollInterval": 500,
    "statusUrl": "http://localhost/sensor"
}
ParameterTypeValue
accessoryStringMust be motion-sensor.
nameStringThe name that will be displayed in HomeKit for the accessory.
pollIntervalDoubleThe interval for requesting the status url.
statusUrlStringThe url that will returns the status of the motion sensor (0 or 1).

You can add as many accessories as needed.

Thanks

To cyakimov and the project homebridge-http-contact-sensor

Contribute

Pull requests are open ;)