Built this small Tasmota based switching unit, it contains two SSR switches (TRIACs) and a relay and is designed to fit into a 4TE DIN rail case.
It runs off mains voltage through a small integrated AC/DC SMPS power supply, this is then further stepped down for the D1 microcontroller using a 7805. The TRIACs (BT137) are switched using MOC3063 optocouplers with zero-level detector. The D1 runs Tasmota with a custom/generic configuration.

