A quick dirty guide for getting Homebridge with the LIFX plugin running on your Raspberry Pi. Tested with a Raspberry Pi 3.
SSH into your Raspberry Pi and run this script:
curl https://raw.githubusercontent.com/tatey/lifx-homekit-raspberry-pi/master/install.sh | sh
Add the Bridge to HomeKit using a compatible app. I recommend Home by Matthias Hochgatterer.
Assuming you're on a Mac with an SD card reader:
Download the latest version of Raspbian Lite.
curl -OL https://downloads.raspberrypi.org/raspbian_lite_latest
Plug in your MicroSD card (You'll need the adapter) and use diskutil
to work
out its identifier.
diskutil list
Unmount the disk.
diskutil unmountDisk /dev/disk<N>
Copy the image.
sudo dd bs=1m if=raspbian_lite_latest of=/dev/rdisk<N>
Plug the MicroSD card back into the Raspberry Pi, connect the the ethernet cable, power cable, and power on.
Use nmap
to find the IP address of your Raspberry Pi (Probably the highest
number).
nmap -sn 10.0.0.0/24
Shell into your Raspberry Pi and run the install script.
ssh pi@10.0.0.167
curl https://raw.githubusercontent.com/tatey/lifx-homekit-raspberry-pi/master/install.sh | sh
If you get stuck refer to the original guides for more detail:
- https://www.raspberrypi.org/documentation/installation/installing-images/mac.md
- https://www.raspberrypi.org/documentation/remote-access/ssh/unix.md
This is made possible thanks to these open source projects: