The idea is an ESP-01 in each light to control a relay to turn on and off. These will be controlled by 2 separate switch panels that I'm gonna build. Each switch panel will have 8 to 10 momentary push buttons and an LED for each. The switch panels will most likely operate with a NodeMcu as the brain so to speak. I believe it will have enough GPIO for each of the buttons and LEDs. (20 mebbe?)
Here is how I would like it to operate. Press a button on the switch panel and the corresponding light goes on. Also the LED next to the button lights up also on BOTH switch panels. I will also have a manual switch on the light itself. I would like the LEDs on the switch panels to light and go out also.
The relay I'm using in each light is like one these. http://www.ebay.com/itm/232014614354?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT
All this relay needs is a momentary contact to toggle on or off. It even remembers on or off after power loss. I think that it will take both GPIO's on the ESP-01 to make this work. One to toggle the relay and the other to sense the output of the relay. I'm thinking this is what can be used to update the switch panel LEDs.
I am fairly sure I have the hardware side of this figured out but the software side is pretty hazy.
How hard would the coding for something like this be? Can basic be used for this? I have beer n pizza $$ for anybody to help me with the code on this.