npm.io
0.0.1 • Published 5 years ago

homebridge-gpio-doorsensor

Licence
ISC
Version
0.0.1
Deps
2
Size
12 kB
Vulns
0
Weekly
0

homebridge-gpio-doorsensor

RPi GPIO based Door Sensor plugin for Homebridge

Installation

  1. Install homebridge using: npm install -g homebridge
  2. Install this plugin using: npm install -g homebridge-gpio-doorsensor
  3. Update your configuration file. See sample config.json snippet below.

Configuration

Configuration sample:

"accessories": [
	{
		"accessory": "GPIODoorSensor",
		"name": "Garage Door",
		"doorSensorPin": 24,
		"isNCSensor": false,
		"doorOpensInSeconds": 14
	}
]

Fields:

  • "accessory": Must always be "GPIODoorSensor" (required)
  • "name": Can be anything (required)
  • "doorSensorPin": GPIO pin that is used to detect if the state of the garage door (required)
  • "isNCSensor": Specifies whether the door sensor is a Normally Closed (NC) type or Normally Open (NO) type (optional, default false NO)
  • "doorOpensInSeconds": Number of seconds for the garage door to open completely (required)