1.0.0 • Published 6 years ago

homebridge-button v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Homebridge Button

Supports triggering General Purpose Input Output (GPIO) pins on the Raspberry Pi. Useful to control relay from button with Siri.

It use rpio library to achieve that.

Requirements

Installation

  1. Install Homebridge using npm install -g homebridge
  2. Install this plugin using: git clone https://github.com/Paulraita/homebridge-button.git && cd homebridge-button && sudo npm install
  3. Update your configuration file - see config-sample.json in this repo

Configuration

Example config.json

{
  "accessories": [
    {
      "accessory": "Button",
      "name": "ButtonTest",
      "pin": 12,
      "out": 11
    }
  ]
}

Pin Configuration

This couldn't have been more confusing. Raspberry Pi's physical pins are not laid out in any particular logical order. Most of them are given the names of the pins of the Broadcom chip it uses (BCM2835). There isn't even a logical relationship between the physical layout of the Raspberry Pi pin header and the Broadcom chip's pinout. The OS recognizes the names of the Broadcom chip and has nothing to do with the physical pin layout on the Pi. To add to the fun, the specs for the Broadcom chip are nearly impossible to get!