homebridge-apa102-rgb
v1.0.1
Published
Homebridge plugin for RGB APA102 LED strip
Downloads
15
Maintainers
Readme
Homebridge plugin for RGB APA102 LED strip
Homebridge pluging for RGB APA102 Led strip on Raspberry Pi.
Installation
Before installing this plugin, you should install Homebridge using the official instructions.
Install via Homebridge Config UI X
- Search for
APA102 RGB
on the Plugins tab of Config UI X. - Install the
Homebridge APA102 RGB
plugin.
Manual Installation
- Install this plugin using:
npm install -g --unsafe-perm homebridge-apa102-rgb
. - Edit
config.json
manually to add your apa102.
Note: depending on your platform you might need to run npm install -g
with root privileges.
See the Homebridge documentation for more information.
Wiring
Configuration
Update your Homebridge config.json
file. See config-sample.json for a complete example.
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"description": "An example configuration of RGB APA102 LED strip with Raspberry PI",
"accessories": [
{
"accessory": "APA102-RGB",
"name": "APA102 Led strip",
"ledCount": 8,
"dataPin": 23,
"clockPin": 24,
"manufacturer": "APA102-RBG",
"model": "APA102-RGB",
"serial": "15822776-AB07-4DF8-9E0A-D17EE5ED0DA1"
}
],
"platforms": []
}
Name | Value | Required | Notes ----------- | ------- | -------------- | -------------- accessory | APA102-RGB | yes | Must be set to "APA102-RGB" name | (custom) | yes | Name of accessory that will appear in HomeKit app ledCount | (custom) | yes | Number of leds on your strip dataPin | (custom) | yes | GPIO number of your data clockPin | (custom) | yes | GPIO number of your clock manufacturer | (custom) | optional | The text of manufacturer model | (custom) | optional | The text of model serial | (custom) | optional | The text of serial