I need to extend and install home automation to another floor of my home (that is actually without electrical system)
I am thinking to:
-wiring each wall switch to the main eletrical cabinet
-wiring each light to the main eletrical cabinet
-install into the main eletrical cabinet an arduino mega and ethernet shield. the logic of the light management will be in the arduino firmware (ex: if switch1 is pressed, toggle light 1) and I will send the state of the light to home assistant by MQTT. And from home assistant (by MQTT) arduino will able to switch 0n/off the lights.
So everything will be inside the cabinet (arduino and the relay)...
I'm already using arduino to send by mqtt to HA some info but now, so I know how write the code (I hope)....
Actually I see only the problem of the digital input wires (max 20 meters)... I am thinking to use FTP cat6, but I think will need pullup resistor (maybe Photocoupler?)
What are your opinion about this project?