Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dxing97/lazylights
Bringing together a dumb LED strip and Siri via Arduino, REST, and Homebridge
https://github.com/dxing97/lazylights
arduino homebridge homebridge-http rest
Last synced: about 2 months ago
JSON representation
Bringing together a dumb LED strip and Siri via Arduino, REST, and Homebridge
- Host: GitHub
- URL: https://github.com/dxing97/lazylights
- Owner: dxing97
- Created: 2018-02-26T18:43:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-08T16:26:30.000Z (over 6 years ago)
- Last Synced: 2024-05-15T14:32:32.146Z (8 months ago)
- Topics: arduino, homebridge, homebridge-http, rest
- Language: C++
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lazylights: IoT Lights for the Lazy and Cheap
Rough diagram:
``HomeKit <-> Homebridge <-> Homebridge-http <- REST API on Local Network -> Arduino Ethernet Module <-> Arduino``Requirements:
* Arduino (tested with Arduino Nano)
* Arduino Ethernet Module (tested with ENC28J60 module)
* Device capable of running Homebridge (tested with Raspberry Pi 3, W, Intel Xeon server running Debian)
* The light you want to control, along with hardware to allow your Arduino to control it. (LED strip, 12V power supply, and high power NMOS or BJT)Steps:
* Setup Homebridge
* Make sure HomeKit apps can talk to Homebridge
* Setup Arduino
* Make sure you can make REST requests to the Arduino and that the Arduino can respond to them
* Configure Arduino and Homebridge to talk together
* Tell Homebridge what routes to use and how to use them
* Tell Arduino what routes to respond to and how to act on them## Possible Improvements:
* Obtain a IP address using DHCP
* Learn node.js, fork Homebridge-http and add support for more devices on Homebridge-http and on the Arduino
* Using Ethercard or other ethernet libraries to get a smaller memory footprint (less of a problem on the Arduino Mega, big problem on the Uno and Nano)## Acknowledgements
Homebridge-http config is a slightly tweaked example config provided by homebridge-httpThe arduino code for implementing a basic REST server is a heavily modified version of the code found [here, under UIPEthernet.](https://www.tweaking4all.com/hardware/arduino/arduino-enc28j60-ethernet/) Great article, highly recommended read if you want to use a ENC28J60-based ethernet devices.