boiler switch transistor
I would use a relay for this.  A relay provides electrical isolation between the controlling circuit and the controlled circuit.  You would not need to know anything about the controlled circuit: whether either side is grounded, polarity, voltage, AC/DC, etc., as long as the relay contacts are rated for the voltage and current they will need to handle.