Single-electron thermal devices coupled to a mesoscopic gate