I have been using the “WLED” project running on an ESP8266 to power a strip of individually controlled LEDs in my house. It works pretty well, except I don’t like have to use the web interface to turn it on and off. So I am currently working on a “remote control” which will use a second ESP8266 to send commands to the controller over Wifi and HTTP.
These “commands” look like this:
T=0 | POWER OFF |
T=1 | POWER ON |
T=2 | TOGGLE POWER |
PL=1 | Use Preset #1 |
M=1 | Use Macro #1 |
A list of full commands can be found here:
https://github.com/Aircoookie/WLED/wiki/HTTP-request-API
These commands can be sent over the HTTP like this:
http://1.2.3.4/win&T=2
Or entered into a pre-defined Macro box:
In this example, they have saved the command “T=1” into Macro Slot #1.
These macros (and subsequent command) can be called via the HTTP API like this:
http://1.2.3.4/win&M=1
My current idea is to create a program running on a ESP8266 with three push buttons attached that will send the command to use Preset 1, Preset 2, or turn off based on the pressing of one of the three buttons.