Raspberry Pi home automation tutorial using a mains relay HAT from Electronics-Salon to control three light bulbs, and potentially other mains or high power DC devices. Video includes Python 3 code for bulb sequencing and timer control.
WARNING: mains electricity is dangerous. Do not attempt what is shown in this video unless you have prior experience working with mains electricity and understand how to take appropriate safety measures. In particular, when working with mains electricity, ensure that your circuit is connected to an residual current device (RCD) or other form of circuit breaker.