Replacement for NEST thermostat 'intelligence'

Has anyone here cooked up their own heating intelligence/logic they’d be prepared to share? I was never that impressed with the Nest logic, found it often made very silly mistakes that led to us sweating in bed in the middle of the night or freezing at 9am on a cold morning.

many thanks

I was looking for the same; some more intelligence than a simple thermostat. This means HA should record how lomg it average takes to heat a certain room 1 degree warmer in relation to the outside temperature and then schedule the heating process. However, scheduling is not so flexible and easy in HA as I discovered…