homebridge-gpio-rgbw-ledstrip
RPi GPIO based LED Strip plugin for Homebridge
Installation
- Install Homebridge using the official instructions.
- Install pi-blaster using these instructions.
- Update pi-blaster DAEMON_OPTS to contain the pins your LED strip is connected to (instructions).
- Install this plugin using
sudo npm install -g homebridge-gpio-rgbw-ledstrip
. - Update your configuration file. See sample config.json snippet below.
Configuration
Configuration sample:
"accessories": [
{
"accessory": "SmartLedStrip",
"name": "Basement LED Strip",
"rPin": 26,
"gPin": 19,
"bPin": 16,
"wPin": 20
}
]
Fields
- "accessory": Must always be "SmartLedStrip" (required)
- "name": Can be anything (required)
- "rPin": GPIO pin that is used to set red value (required)
- "gPin": GPIO pin that is used to set green value (required)
- "bPin": GPIO pin that is used to set blue value (required)
- "wPin": GPIO pin that is used to set white value (required)
Connecting LED Strips
You'll need to wire up a circuit to connect an LED strip to your Raspberry Pi. A decent guide on doing that is available here.