Trying to calculate amount time a temperature probe is above set value

I’m trying to calculate the amount of time a temperature sensor is above a particulate temperature. I want to use this to calculate how long a propane heater is on.

Create a binary template sensor that is on when above your specified temperature.

Use the history stats integration to time how long it is on.

Thank you SOLVED