This is step by step process/flow chart on how PiHome Smart Heating control 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.

Raspberry Pi Smart Heating Flowchart

Raspberry Pi Smart Heating Flowchart