Scripts for use with ESP8266 for controlling various home automation peripherals. Customized for my purposes but feel free to edit to your liking.
Two versions in different languages:
- C++ for Arduino on ESP8266, install using Arduino
- (old) Python for MicroPython on ESP8266, to install copy main.py to the ESP8266 (e.g. using webrepl_cli.py) running MicroPython and reboot. Deprecated due to ENOMEM errors (memory leaks).
A web server should now be running on the ESP8266, port 80, offering access to the connected hardware. Edit the script to change the settings as needed. Can be used by itself but meant for use with Homebridge running on another system (I use a Raspberry Pi), integrates well with the following Homebridge plugins:
- homebridge-http: for turning GPIO outputs on/off, via given URLs
- homebridge-udp-contactsensor: for receiving datagrams when GPIO inputs change
- homebridge-udp-lightsensor: for receiving datagrams when ADC input changes significantly
MIT