Hi there, this may not be new but I wasn't successful to find a safe and holistic solution yet.
I'm planning to automat all light fixtures, Shutters and exhaust fans. Ready made Shelly's, Sonoff 's and the like are mind blowing expensive.
Since it's a new home, I got a qualified electrician to wire all loads to a central control box, also all 68 wall switches are routed back to the same box.
All wires are rated for 220VAC. Passes to load fixtures are physically separate from passes to wall switches to prevent interference.
I think that I should power the 68 switches with 5VDC SMPS, and read them back with an Arduino solution, then Arduino should control 68 icecube 5V relays to finally control the 220VAC loads. I will use cheap Chinese relay modules as industrial relays price's tripled the past 8 months.
As far as I understand:
1- There might be a problem switching 5VDC using standard 220VAC rated wall switches, that may lead to premature failure of the switch contacts.
2- The 5v signal may get lost due to resistance, the average wire length per switch is about 20 meters back and forth.
3- An RC snubber circuit is needed between the relay and the load to deal with the bacK EMF.
Also how should I read the 68 inputs and control the relay modules in an appropriate way.
Any advice should help.
The bottom terminal block hosts 220vac coming from the distribution box (top) and 220vac going to wall switches (down).
The top terminal block hosts 220vac outputs of wall switches (down) and inputs going to 220vac loads (top).
This setup allow the system to run on 220vac without automation.
The inputs and outputs of the wall switches will be hooked to an Arduino solution using 5v logic.