homebridge-gpio-lock-canc

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

Usage no npm install needed!

<script type="module">
  import homebridgeGpioLockCanc from 'https://cdn.skypack.dev/homebridge-gpio-lock-canc';
</script>

README

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.