Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

homebridge-gpio-sensors

archanglmr13GPL-3.00.0.1

Wire up your security systems sensors to a Raspberry Pi and use them in HomeKit

homebridge-plugin, carbon dioxide sensor, carbon monoxide sensor, contact sensor, leak sensor, motion sensor, occupancy sensor, smoke sensor

readme

Homebridge GPIO Sensors Plugin

How to install

sudo npm install -g homebridge-gpio-sensors

On your sensor hook one wire to the Pi ground and the other to the GPIO pin you want to use.

Warning: I've only tested this with push buttons on a breadboard. Maybe I need to switch it so you hook one wire to power and the other to the GPIO?

Example config.json:

Use the physical pin number on the Pi.

    "accessories": [
    {
      "accessory": "GPIOSensors",
      "name": "Detector",
      "sensors": [
        {
          "name": "Default Room Carbon Dioxide",
          "type": "CarbonDioxide",
          "pin": 21
        },
        {
          "name": "Default Room Carbon Monoxide",
          "type": "CarbonMonoxide",
          "pin": 22
        },
        {
          "name": "Default Room Contact",
          "type": "Contact",
          "pin": 23
        },
        {
          "name": "Default Room Leak",
          "type": "Leak",
          "pin": 24
        },
        {
          "name": "Default Room Motion",
          "type": "Motion",
          "pin": 26
        },
        {
          "name": "Default Room Occupancy",
          "type": "Occupancy",
          "pin": 27
        },
        {
          "name": "Default Room Smoke",
          "type": "Smoke",
          "pin": 28
        }
      ]
    }