Instead of doing the extra and quite dangerous work consider an option that s already designed for baseboard heating.
Adding thermostat to baseboard heater.
Take the cover off the thermostat and remove the screws that attach it to the junction box.
Make the connections at the thermostat.
How to install a wall mounted thermostat to a baseboard heater 1.
A new line voltage thermostat will need to be connected as part of the installation of the new baseboard heater.
Installing a compatible smart thermostat is quick and easy.
You can install a thermostat on the baseboard heater itself.
Pull a cable from the thermostat location to the heater.
Many heaters come with a kit that allows you to install the thermostat at one end of the heater body.
Using a wire connector connect the hot supply wire to the thermostat wires.
The thermostat can be mounted directly on the heater itself or it can be mounted on the wall so that the circuit wiring passes through the thermostat first on the way to the baseboard heater.
Without touching any of the wires.
Typically this is marked l1 or line step 8.
How to do it.
Slide the wall mounted thermostat from its mounting plate on the wall.
Some thermostat models require you to.
Connect the remaining thermostat wire typically marked t1 or load to the same color supply wire feeding the baseboard heater.
Label and disconnect wires.
Connect the new cable to the heater.
But installing a smart thermostat that is not designed for compatibility with baseboard heating requires added hardware a relay in this case.