Adjust Heata pump flow temperature offset based on few parameters-looking for automation ideas

Hi all, I’m writing this post because I can’t find something That works for me or I’m not smart enough to figure it out. In my house I do use an air source heat pump for heating (radiators+ fancoil). Right now the system is configured in weather compensation mode and the flow temperature changes based on the outisde temperatures. The system works pretty weel and the heatpump is integrated in Ha and I can adjust many parameters. I would like to create an automation that checks the internal temperature of a room every hour or so ( I have many sensors for that) and raise or lowers the flow temperature of x degrees until the set temp is reached. I would like also to set limits to the offset that can provide. An automation like this is pretty simpple but not very smart. I woould like to know if there is a way to make the system “learn” how long it takes to heat the room based on flow temp, outside temp etc so it can set the offset accordingly. I know that this is exactly what some smart thermostats do, and I would like to create something similar because most of the commercial solutions are targeted to normal boilers and not heat pump. another issue is that normally the flow temperature has over/under tolerances so if it’s set to 30C it can go up to 34C for example but this is less of a concern. Maybe a reiterating automation could work? I’m just trying to gather ideas, maybe somebody tried to do the same? Thanks