14.01.2021, 11:14
I think you use the current room temperature instead of outside. In any case you need to gather some statistics on how long it usually takes for the temperature to reach the setpoint. When heating is enabled you can put current time and outside temperature into storage. Another script should be attached to the temperature sensor. When the value matches or exceeds the setpoint then you can log the time difference and clear the stored time. With enough data an approximate formula can be created for this task.