Replace mechanical buttons with a TTP223 capacitive touch sensor working as a toggle with a relay module, with a safety note for mains-voltage loads.