This article shows how to manage the heat pump and ventilation system (HVAC) with Domoticz open-source software installed on a Raspberry PI (but any other hardware should be OK), to use the most energy from renewable sources, photovoltaic system in this case.
Also, the goal is to overheat the building, during winter, when there is an extra power available from photovoltaic (if setpoint is 21°C but there is extra power, setpoint can be raised to 21.5 or 22°C for example), consuming power when it's available from renewable sources!
Domoticz supports several scripting languages, and LUA script has been chosen in this case because very easy to learn, use and customize.
The heat pump used in this example is a EMMETI Mirai SMI EH1018 (but many other heat pumps can be used as well), connected to a DomBus device using 4 relay outputs (connected to Domoticz controlled by a RS485 bus) which controls the following heat pump inputs:
- Heat pump ON / OFF (normally connected to a thermostat)
- Heat pump Full power / Half power
- Heat pump Fancoil / Radiant fluid temperature
- Heat pump Cooling / Heating
Using another kind of heat pump, it should be verify that it has a way to control the power and fluid temperature, by analog or digital inputs or by bus/network.
Also, two DS18B20 sensors are used to measure the temperature of fluid from heat pump to the radiant system, and from the radiant system back to the heat pump: some algorithms regulate the heat pump to:
- limit the max/min fluid temperature to the system;
- use the best fluid temperature related to the difference between room setpoints and real temperatures, power availability, external temperature.
Also, a ventilation system is installed in the building to renew the air (through a heat recovery system), dehumidify (by a chiller) and heat/cool air by a coil supplied by the heat pump.
Finally, an energy meter Eastron SDM230 is used to measure the power exchanged with the grid, so when the measured power is negative, photovoltaic is producing more than what building is using. Power is measured every 2 seconds: more information about connecting and managing energy meter is available in this page.
With less than 200€ of hardware you're able to fully control your heating/cooling system, and get cooling system that works only with energy produced by the sun (photovoltaic) as like as heating system that use as much as possible energy from the sun.
Also, please note that Domoticz is suitable to make much much more: in the same Domoticz home automation system you can integrate the light management, garden watering, burglar alarm system (connecting all magnetic contact sensors, PIRs, sirens to the raspberry), and these features are fully monitorable and controllable by the smartphone and web browser!
Check the video showing Domoticz managing heating/cooling, burglar alarm system, short video on smartphone when an external alarm sensor has been activated, indoor and outdoor lights, water tank level and garden watering, picture sent to the smartphone when someone ring the bell, and more... the web interface is not really beautiful, but can be customized to get roomplan, floorplan or other kind of layout.
Prerequisites: some feeling with computers and electric systems!
If you have not a domoticz controller installed, you can valuate the possibility to purchase a Raspberry KIT , or burn a SD with a Raspbian + Domoticz image, or install Domoticz in your existing Raspberry hardware with Raspbian OS already installed. It's possible to use Domoticz on other types of hardware, but Raspberry is recommended in most cases due to its low power consumption (less than 10W).
From a working Raspberry with Raspbian + Domoticz already installed, enter the shell (through a SSH connection) and:
#become root sudo su - #install/upgrade curl, a command to fetch files from the web apt install curl lua-dkjson # go to domoticz directory cd /home/pi/domoticz/scripts/lua # fetch the script curl -o script_time_heatpump.lua https://raw.githubusercontent.com/CreasolTech/domoticz_lua_scripts/master/script_time_heatpump.lua curl -o heatpump_conf.lua https://raw.githubusercontent.com/CreasolTech/domoticz_lua_scripts/master/heatpump_conf.lua
# now, edit the configuration file nano heatpump_conf.lua
and define all constants and device names for your system.
We've tested the script for more than 1 year and we can say to have saved lot of energy using this heat pump management.
We know that the heat pump manufacturer can provide a system to automatically regulate the heat pump power based on photovoltaic power production and grid power mesurements, but we're sure that that system is not customizable and versatile as a script where it's possible to easily change algorithm as needed. Also, the controller provided by the heat pump supplier has a cost that is more than double than a system with Raspberry + Domoticz + DomBus1 + Energy meter + DomESP1.
For any support, don't hesitate to contact us! We're happy to help you and improve the script.