How to write an automation to control my fireplace between a temp range?

Here is I handle my hearth products thermostat control with ha
Thermostat schedule with schedy