Skip to content

cyakimov/homebridge-http-contact-sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

homebridge-http-contact-sensor

This is a plugin for homebridge which can monitor Contact / Door sensor via a HTTP endpoint that returns 0 or 1 depending on the sensor state.

Install

Previous installation of Homebridge is required.

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

npm install -g homebridge-http-contact-sensor

Configuration

{
    "accessory": "ContactSensor",
    "name": "Front Door",
    "pollInterval": 500,
    "statusUrl": "http://localhost/sensor"
}

You can add as many accessories as needed.

Example homebridge configuration

{
    ...
    "accessories": [
        {
            "accessory": "ContactSensor",
            "name": "Front Door",
            "pollInterval": 500,
            "statusUrl": "http://192.168.0.20/sensor"
        }
    ],
    "platforms": [
        ...
    ]
}

About

HTTP contact sensor for homebridge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published