homebridge-gpio-contact

1.0.1 • Public • Published

homebridge-gpio-switch

Simple switch for homebridge using a single GPIO pin.

Sample config:

{
    "bridge":{
        "name":"My RPi Bridge",
        "username":"00:00:00:00:00:00",
        "pin":"000-00-000"
    },
    "accessories":[
        {
            "accessory":"GPIO-Switch",
            "name":"My switch",
            "pin": 5,
            "activeValue": false
            "initialState": false
        }
    ]
}
  • set the pin to use (GPIO number)
  • initialState set the switch on or off on load (as no state is kept inbetween reboots)
  • activeValue value to apply when switching on (true => HIGH, false => LOW)

Package Sidebar

Install

npm i homebridge-gpio-contact

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

14.2 kB

Total Files

13

Last publish

Collaborators

  • vejhe