Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

homebridge-hc-sr501

1.0.0 • Public • Published

homebridge-hc-sr501

Homebridge plugin for the hc-sr501 motion sensor on a Raspberry Pi. However, it should also work with basically any other motion sensor that triggers a pin on the Raspberry Pi's GPIOs.

Installation of other plugins

Run the following command

npm install -g homebridge-hc-sr501

Chances are you are going to need sudo with that.

Configuration

This is an example configuration file

"accessories" : [
    {
        "accessory" : "HC-SR501",
        "name" : "Motion Sensor",
        "pinId" : 24
    }
]
Key Description
accessory Required. Has to be "HC-SR501"
name Required. The name of this accessory. This will appear in your homekit app
pinId Required. The pin you connected the motion sensor to.

install

npm i homebridge-hc-sr501

Downloadsweekly downloads

4

version

1.0.0

license

GPL-3.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability