homebridge-gpio-switch-home

Supports (GPIO) pins on the Raspberry Pi. Useful to control relay switch from Siri.

Usage no npm install needed!

<script type="module">
  import homebridgeGpioSwitchHome from 'https://cdn.skypack.dev/homebridge-gpio-switch-home';
</script>

README

homebridge-gpio-switch-home

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

It use on/off library to achieve that.

Requirements

Installation

  1. Install Homebridge using npm install -g homebridge
  2. Install this plugin npm install -g homebridge-gpio-switch-home
  3. Update your configuration file - see sample-config.json in this repo

Configuration

Example config.json

{
  "accessories": [
    {
      "accessory": "switchome",
        "name": "my switch",
        "pin": 7
    }
  ]
}