Run mains wires to an enclosure with one of these:
https://www.olimex.com/Products/AVR/Development/AVR-IO-M16/
And controlled & powered (the mcu, not the relays) via this:
https://www.olimex.com/Products/IoT/ESP32/ESP32-POE-ISO/open...
Hence avoiding a separate esp board/mcu for every switch/device, and just using a single relay board for 4 at a time.
Still a bit of a pain to drag mains to one location, might be better if this was individual relay boards with equipment wire running to each..
Run mains wires to an enclosure with one of these:
https://www.olimex.com/Products/AVR/Development/AVR-IO-M16/
And controlled & powered (the mcu, not the relays) via this:
https://www.olimex.com/Products/IoT/ESP32/ESP32-POE-ISO/open...
Hence avoiding a separate esp board/mcu for every switch/device, and just using a single relay board for 4 at a time.
Still a bit of a pain to drag mains to one location, might be better if this was individual relay boards with equipment wire running to each..