homebridge-hc-sr501
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • 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.

Dependents (0)

Package Sidebar

Install

npm i homebridge-hc-sr501

Weekly Downloads

1

Version

1.0.7

License

GPL-3.0

Unpacked Size

39.9 kB

Total Files

7

Last publish

Collaborators

  • lucabecker