homebridge-gpio-lock-canc

0.0.7 • Public • Published

homebridge-gpio-lock-canc

Homebridge plugin to open locks canc via Raspberry Pi GPIO pins.

Installation

Install this plugin using:

sudo npm install -g homebridge-gpio-lock-canc

Configuration

You will need to add the following accessory configuration to the Homebridge config.json.

Configuration sample:

{
    "bridge": {
        "name": "Raspberry Pi 2",
        "username": "CC:22:3D:E3:CE:32",
        "port": 51826,
        "pin": "031-45-154"
    },

    "accessories": [
        {
                "accessory": "CancLino",
                "name": "Door",
                "pin": 12,
                "duration": 300
        }
    ],

    "platforms": []
}

Fields:

  • name - Can be anything (required).
  • pin - The physical GPIO pin number that controls the relay (required).
  • duratin - Number of milliseconds to trigger the relay. Defaults to 1000 millseconds (1 second) if not specified.

Package Sidebar

Install

npm i homebridge-gpio-lock-canc

Weekly Downloads

1

Version

0.0.7

License

MIT

Unpacked Size

4.12 kB

Total Files

3

Last publish

Collaborators

  • stefano-sg