UNPKG

homebridge-gpio-on-switch

Version:
24 lines (16 loc) 549 B
# homebridge-gpio-on-switch [![Build and Lint](https://github.com/classLfz/homebridge-gpio-on-switch/actions/workflows/build.yml/badge.svg)](https://github.com/classLfz/homebridge-gpio-on-switch/actions/workflows/build.yml) A homebridge plugin for gpio on switch. ## install Make sure you had installed homebridge first, then run the following command to install `homebridge-gpio-on-switch`. ``` sudo npm install -g homebridge-gpio-on-switch ``` ## config ```json { "accessory": "HomebridgeGpioOnSwitch", "name": "switch", "pin": 18 } ```