Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/que20/homebridge-http-motion-sensor
A Homebridge plugin for motion sensors over http
https://github.com/que20/homebridge-http-motion-sensor
Last synced: about 2 months ago
JSON representation
A Homebridge plugin for motion sensors over http
- Host: GitHub
- URL: https://github.com/que20/homebridge-http-motion-sensor
- Owner: Que20
- License: mit
- Created: 2020-01-20T13:33:13.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-07T12:59:31.000Z (about 4 years ago)
- Last Synced: 2024-10-31T17:42:55.694Z (2 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/cyakimov/homebridge-http-contact-sensor)
## Install
Previous installation of [Homebridge](https://github.com/nfarina/homebridge) is required.
Then run the following command to install `homebridge-http-motion-sensor`
```
npm install -g npm install -g homebridge-http-pir-motion-sensor
```## Configuration
To add to your `config.json` file, under the `accessories` array :
```json
{
"accessory": "motion-sensor",
"name": "Hallway",
"pollInterval": 500,
"statusUrl": "http://localhost/sensor"
}
```| Parameter | Type | Value |
| ------------- |--------|------------------------------------------------------------------------|
| accessory | String | Must be `motion-sensor`. |
| name | String | The name that will be displayed in HomeKit for the accessory. |
| pollInterval | Double | The interval for requesting the status url. |
| statusUrl | String | The url that will returns the status of the motion sensor (0 or 1). |You can add as many accessories as needed.
## Thanks
To [cyakimov](https://github.com/cyakimov/) and the project [homebridge-http-contact-sensor](https://github.com/cyakimov/homebridge-http-contact-sensor)
## Contribute
Pull requests are open ;)