Find the source code of this project here.
This project contains three parts:
On the Raspberry PI you must run Raspbian and connecting to your local network.
First step is to install Swift by adding the swift-arm repo:
curl -s "https://packagecloud.io/install/repositories/swift-arm/release/script.deb.sh>""| sudo bash
Followed by installing Swift itself.
sudo apt-get install swift5
For that just follow the official installation guide for Raspberry Pis.
You have to add a new accessory. Therefore, cop that part from the
homebridge-config of this repo.
I bought a cheap WS2812B LED strip on Aliexpress. It has three connectors.
GPIO18. This is needed because this is the pin which supports PWM.
Afterwards you should be able to control your lamp either via Homekit, including Siri and from the small iOS application
Raspberry PI LED Controller which is also part of this repo.
I am using a Raspberry Pi Zero. If you are using a different model, you need to change the
LED.swift file accordingly in the ‘LED Server’ part of the repo.
Source code can be found on Github.Written on December 5th, 2019 by Kevin Chromik