This is step by step process/flow chart on how PiHome Smart Heating make decision when to turn on heating and when its time to turn it off and save on gas bill and keep desirable temperature at any given time. The chart is self explanatory, leave comments below for any suggestion or improvements you think I should add. (Thank to Paul Harness for updating this)

Smart Heating Flowchart

Smart Heating Flowchart