Electromechanical or Semiconductor solutions to control chandeliers and homes stuff
Im a noob in electronics, but i think you can use a electromechanical relay and a transistor together

Principle of use is
1. Amplify your 5v signal using a transistor (idk maybe a enhancement mode mosfet, ask a pro. You need one that will output 12v? When your base is supplied with 5v (n-p-n maybe))


After your signal is amplified, feed it into the relay


Again, im a noob at electronics. But this should give you an idea

*electronechanical relay isolates the main line from your signal (i think)

*you will end up having a 12v line using this though