Lets Build

How to Build Smart Heating with Raspberry Pi


Raspberry Pi

IOT (Internet of things) is common notion these days but what really you can do with it? what first thing you want to connect? how you can make something smart if it isn’t smart?  i.e Smart Heating, what are the pros and cons?

You only have two options, one buy off-the-shelf commercially available product (there are tons and tons of comparison between all commercially available solution so i m not going to go through any of that), second you could spend less and have fun building things yourself.

Fancy second option? then Let Get Started!!!

This Project is based on credit card size single board computer called Raspberry Pi, whole systems is presented using Apache web server, all information is stored in MySQL database. Python script is used to log temperature sensor data using One wire DS1820 temperature sensor, most of the code is written in PHP.

Before we deep dive into this project something very important: PiHome comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. DO NOT MAKE ANY CHANGES TO YOUR HEATING SYSTEM UNTIL UNLESS YOU KNOW WHAT YOU ARE DOING, contents provided here are for information and education purpose only, I take no responsibility for any loss or damage to you or your property.”

Following posts aren’t in sequence, if you want to follow all step by step please check this link.

Roadmap/Feature for PiHome

  i have tons of email from lots of people requesting different features and upgrades so i thought to have post on site about roadmap/feature requests for PiHome so we can share ideas what we can do and what is needed and how community can help and contribute, right now everything is under one post but once we get things moving we can have one dedicate page for each upgrade. List of request/features Under Floor Heating with Higher Inertia E-mail…

Read More

Smart Heating Flow Chart

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)

Read More


PiHome Smart Heating controller required some task to be schedule on regular interval to function properly, add all following crontab jobs as root Database Cleanup: Delete Temperature records older then 3 days. Delete Node Battery status older then 3 months. Delete Gateway Logs data older then 3 days. if you want to keep all data comments following line.

Get CPU temperature and update database.

Update Weather from OpenWeather, Make sure you signup to openweather api and update api…

Read More

Buy PiHome Smart Heating – DIY Raspberry Pi Home Automation Kit for Smart Heating

Buy PiHome Smart Heating – DIY Raspberry Pi Home Automation Kit for Smart Heating:  PiHome – Smart Heating Control is central heating control systems that runs on Raspberry Pi. You can control your home heating from your smartphone, laptop or tablet. PiHome is a wireless boiler control which mean you don’t need to run cables from PiHome controller to your boiler or to your heating zone valve or to any temperature sensors in any heating zone. PiHome can manage nearly…

Read More

Smart Home Gateway from NRF24L01 to Ethernet/WiFi

All nodes i.e temperature sensors, boiler relay module, zone relay module etc. are scattered around the house that are responsible for controlling light, heating and other IOT devices serves very little purpose if we can not communicate with them or pass some instructions. Most of the time these devices are battery powered and even ones with main powered don’t communicate through home WiFi and for the battery powered nodes WiFi isn’t the option due to the fact how WiFi works…

Read More

Raspberry pi Heating Boiler Control System Relay

Raspberry pi Heating Boiler Control System Relay: Control gas boiler from raspberry pi gpio with relay by connecting it to room thermostat connection on gas boiler without passing any voltage to gas boiler or at least this is how i did it as my gas boiler had thermostat connector available, you need to check this with your boiler user/technical manual. You can control high voltage electronic devices using relays modules that are readily available in the market. I am using…

Read More

Build a Web Connected Raspberry pi Thermostat

Build a Web connected raspberry pi thermostat and control your heating from any smart devices, Pihome comes with following two options one Wired to GPIO and wireless with nRF24L01. Buy PiHome Smart Heating – DIY Raspberry Pi Home Automation Kit for Smart Heating eBay Store You can download User Manual for PiHome Connection Wired Heating System Connected to Raspberry Pi GPIO 1-Wire DS18b20 Temperature Sensor Multi Zone Heating Control System Relay Raspberry pi Heating Boiler Control System Relay nRF24L01 Wireless…

Read More

Raspberry pi Multi Zone Heating Control System Relay

Raspberry pi Multi Zone Heating Control System Relay: If your house have Multi Zone Heating then you can control each zone heating independently with raspberry pi and this will save you lot on your heating cost considering that you don’t have to heat all the house all the time. In this post i will show you how to build wired multi zone heating control system relay and control it from raspberry pi gpio so we can open and close zone…

Read More

OS (Raspbian Jessie) Installation and WiFi Configuration

This step by step how-to will help you to install OS (Raspbian Jessie) on your Raspberry Pi, i have selected Raspbian Jessie for this purpose. this how-to also include Wi-Fi settings without connecting display to raspberry pi. Installing Linux OS (Raspbian Jessie) on Raspberry Pi Easiest cross-platform way to install Linux on your Raspberry Pi is using the NOOBS installer, but we are installing Raspbian using diskimager utility. Go to the Raspberry Pi download page Download the Raspbian zip file.…

Read More

Install Apache, PHP and MySQL on a Raspberry Pi (LAMP)

LAMP is an acronym that stands for Linux Apache, MySQL and PHP, these are the components required to run and present web interface of PiHome Smart Heating Control. Note: if you are here for some troubleshoot Raspberry Pi LAMP (PHP and MySQL/MariaDB on a Raspberry Pi with phpMyAdmin) then check out troubleshooting post on Raspberry Pi LAMP Install (LAMP) Apache and MySQL server on Pi Lets just run update first by issuing following commands

Now Install Apache, PHP and…

Read More