Hive Heating Script/Automation

Hi everyone - just started out using Home Assistant, and looking at some automation with Hive heating. One thing that has always bugged me about Hive heating is that when the heating is on, the boiler will constantly remain on until the target temperature is reached. What my previous “dumb” thermostat did was let the boiler run for 20/30 mins so that the radiators are hot, and then switch off the boiler for 10 mins to use the ambient heat being generated from the radiators and then turn the boiler back on again and the cycle would continue. What this did is save on the amount of gas used, as the ambient temperature of the radiators is used to heat the house between boiler “pauses”.

I would like to create a script or an automation to do something similar, but not really sure how if or how this could be achieved. So for an hour boost script for example I would perhaps turn the heating on for 25 mins and then pause for 10 mins and then turn the heating on for 25 mins.

Any help or tips appreciated.