homebridge-i2cledstrips
v1.1.0
Published
Accessory plugin to manage led strips via the I2C bus
Downloads
4
Maintainers
Readme
Homebridge-i2cledstrips
Homebridge accessory plugin for LED strips that are connected to an I2C capable device.
Features
- Control the Brightness and Color of an RGB LED Strip
- Setup automations with the HomeKit UI
- Ask Siri to control your devices
Setup / Installation
- Install Homebridge
npm install homebridge-i2cledstrips
- Edit
config.json
and configure accessory. See Configuration section. - Start Homebridge
- Star the repository ;)
Configuration
To configure the plugin add the following to the accessories section in config.json
.
The i2cAddresses must be in Hex Format, preceded by 0x
. The individual colors (RGB)
are the registers the plugin reads from/writes to, to set the colors.
{
"accessory": "I2CLedStrip",
"name": "My LED Strip",
"i2cAddress": "0x2c",
"i2cDevice": "/dev/i2c-1",
"colors": {
"red": "0x12",
"green": "0x13",
"blue": "0x14"
}
}
An example for the Arduino code that works with this plugin can be found here.
Help
If you have any questions or help please open an issue on the GitHub project page.
Contributing
Pull requests are always welcome. If you have a device that is not supported yet please open an issue or open a pull request with your modifications.
License
The project is subject to the MIT license unless otherwise noted. A copy can be found in the root directory of the project LICENSE.