How to convert the fireplace switch into a thermostat switch

fireplacethermostat

I have a fireplace that's controlled by a regular on/off switch. How can I convert it into a thermostat switch so that the fireplace shuts off automatically whenever the room gets warm enough?

If it matters, I live in the US and it's a typical gas fireplace that I've seen in other condos.

Best Answer

@JonathanReez if you find out that your fireplace is millivolt controlled as @ThreePhaseEel says make sure that you purchase a thermostat rated for millivolt service. (it may make a difference).