I'm thinking through what it would take to create a device which can switch a relay to turn on battery powered lighting, and activate when a 120v wall switch is turned on.
As an example ... in our laundry room, I'd like to put some battery powered lighting under a coupe of cabinets, and have them switch on when the ceiling light fixture is turned on with the wall switch.
I'm comfortable with the overall premise, meaning the code and switching hardware needed for each side (like sensing the 120v on the switch, as well as activating a relay on the battery powered light, etc) ...
What I need some help with is choosing a suitable wireless module for each side. I need something small enough to fit inside a single gang switch box, which can communicate wireless to the receiver(s) on the battery light(s).
I've been using ESP8266 ESP-01 modules for other projects, and thought this may be a good choice .. but the pin breakout on them is really limited and may cause a challenge.
Is there a small bluetooth module with an integrated microcontroller (like the ESP-01 for WiFi) which would work well here?
