Built another one, this one fits into a slightly larger DIN rail enclosure and consists of 3x old power relays, a D1 board and a 12V SMPS power supply. Below the D1 board there is a 7805 regulator to get the 5V needed for the D1. I put Tasmota on the ESP8266 again, as with the last.