Thermostat with boost mode

I am using a simple ESP32 board coupled with a relay as a thermostat to control my heater. The temperature is supplied by a bluetooth xiaomi thermometer. This setup works fine for, however I’d like to add a boost button for my setup, that would turn on the heating for a specified time (like an hour) regardless of the temperature reading.
I could probably do that with a home assistant integration, but i’d like to keep it local on the esphome board.

I have found this on the forum Best way to switch off a switch after 4 hours? - #4 by Moonbase59 but it does not seem to have a definitve answer.

Any ideas are welcome.