homebridge-gpio-motion-sensor

0.0.3 • Public • Published

homebridge-contact-sensor

This Homebridge plugin enables you to control a infrared motion sensor switch.

Setup

  1. Wire a infrared motion senor to your Raspberry Pi.
  1. Install this plugin
npm i -g homebridge-gpio-motion-sensor
  1. Rename the sample-config.json to config.json and integrate your sensor in the accessories array. The pins of the Raspberry Pi require root rights to control them. Therefore you have to save your config file not in your users directory. Put it under /root/.homebridge/config.json. If you are already running homekit with other apps integrate the accessories into your config.json and move your config file to the path above.

Accessory JSON config looks like:

{
    "accessory""MotionSensor",
    "name""MotionSensor1",
    "pin": 2
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    3
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i homebridge-gpio-motion-sensor

Weekly Downloads

3

Version

0.0.3

License

ISC

Last publish

Collaborators

  • killerameise