Immersion heater thermostat replacement

UPDATE

Thanks to @HeyImAlex’ suggestion on a separate post about mixing DC and AC in one box, I’ve improved the setup to:

  1. Add a 6A MCB to protect the Sonoff Mini
  2. Move the “ELV” (extremely low voltage) DC component outside the case to comply with UK regulations on mixing ELV with LV (low voltage aka mains AC voltage).

I need to tidy up the DC elements now perched on top, but I’m happy with the safety of the mains components.