WIP
Doing this with a MOSFET was a terrible idea. It's much simpler to use a dimmer like this https://www.communica.co.za/products/ble-dimmerbox-v2 with an ELV transformer like this https://www.builders.co.za/Electrical-and-Electronics/Cable-Organising/Saddles/Eurolux-Electronic-Transformer-20-60w-220-240v/p/000000000000464933 .