OpenTherm weather dependent heating control

For heating/cooling related questions in Domoticz

Moderator: leecollings

Post Reply
akamming
Posts: 337
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

OpenTherm weather dependent heating control

Post by akamming »

My current boiler is end of life and i needed a new one. My current thermostate is already Weather Dependent, but cannot take advantage of the modulation features of a new boiler and i didn't like the limitations of all the commercial propositions of a smart weather dependent thermostate. So i decided to create one myself with full domoticz integration, so i could have the following advantages:
  • Lower cost for the same functionality as my old thermostat: 30 EUR of material against 300 EUR for a commercial system (and then i'm ignoring the fact that after initial price, some also need subscriptions)
  • fully opentherm compatible, with all advantages of a modern modulating system (many commercial weather dependent systems only support on/off protocol)
  • no private data (e.g. wheter or not i am at home) in a public cloud
  • Full control of the boiler if set to manual
  • All boiler sensors available in domoticz and the ability to send notification (e.g. on low water pressure)
  • Domoticz timers have much more options than the ones on commerical thermostats
  • No need for an expensive (also 100+ EUR) outside temperature connected to the boiler (any temperature device in domoticz can be used, e.g. buienradar)
  • Full domoticz integration, so heating be part of scenes, scripts and other events
I used the hardware of which installation and build instructions can be found here: http://ihormelnyk.com/opentherm_thermostat, but wanted different software for 2 reasons
1. Instead of a "normal" thermostat, i wanted a weather dependent system ("weersafhankelijk regeling" for the dutch among us)
2. I wanted full domoticz integration

and the good news is: I succeeded by creating a combination of changed firmware and a domoticz plugin. And since i like sharing, i put it on github: https://github.com/akamming/Domoticz_Thermostate_Plugin. Feel free to reuse what i built. To help, i created installation instructions, which can be found in the Readme.md file on github.

it is now working OK for a few days, but might still be buggy. if you encounter anything, just let me know ...
akamming
Posts: 337
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: OpenTherm weather dependent heating control

Post by akamming »

I've added a major feature: The plugin now also can act as a regular OpenTherm modulating thermostat!

A button ("Fireplace/Weather dependent mode") makes plugin switch between weather dependant mode or modulating thermostat mode

In the Netherlands the temperature is currently too high (my house already reaches 22 Celcius without heating switched on) to do testing on the mechanism, so i am looking for someone who can test this feature..
renerene
Posts: 316
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: OpenTherm weather dependent heating control

Post by renerene »

Can you give an update? Is the thermostat working?

Stumbled upon this post while looking for a replacement of my domoticz on/off control system. My old heater will be replaced by a modulating Intergas Kombi Kompakt HRE36/30. Currently I'm using a zwave relais and Smart_Virtual_Thermostat for thermostat function.

This could be a nice, simple wireless thermostat. The weekly program, temperature sensors and dashticz interface all can remain the same as my current setup.
mikew
Posts: 1
Joined: Friday 09 September 2022 14:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: OpenTherm weather dependent heating control

Post by mikew »

Hi renerene and akamming,

In search for an OpenTherm gateway which I could connect to Home Assistant I came across this and the other post (viewtopic.php?t=36137) of yours.

Does any of you know a solution to connect OpenTherm and Home Assistant either as a pure gateway or master for full automation?
I also found https://www.nodo-shop.nl/en/48-opentherm- but that only offers LAN or Wifi connection. Ideally I'd like to use the zigbee mesh network. Doubt there is a suitable and cost effective z-wave solution but please prove me wrong about my assumption.

Many thanks in advance
Mike
stevedh
Posts: 8
Joined: Friday 18 November 2022 17:53
Target OS: Linux
Domoticz version:
Contact:

Re: OpenTherm weather dependent heating control

Post by stevedh »

I'd look at investigating a raspberry pi z-wave shield and try using that with an opentherm shield, .. may or may not give you what you want.
seal
Posts: 2
Joined: Thursday 12 January 2017 21:31
Target OS: Linux
Domoticz version:
Contact:

Re: OpenTherm weather dependent heating control

Post by seal »

@akamming: i tried to compile your handler from git but i'm getting erros:

Code: Select all


Compilation error: 'class OpenTherm' has no member named 'getOutsideTemperature';

Im using all libraries as was in your readme
jusik
Posts: 1
Joined: Monday 23 January 2023 14:29
Target OS: Linux
Domoticz version:
Contact:

Re: OpenTherm weather dependent heating control

Post by jusik »

Wrong library opentherm,
'class OpenTherm' has no member named 'getOutsideTemperature'
Attachments
OpenTherm_Library.7z
(7.43 KiB) Downloaded 59 times
kniazio
Posts: 198
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: OpenTherm weather dependent heating control

Post by kniazio »

I have been using your plugin for a few days and I am delighted with it.
Everything works as it should. There's only one detail that worries me. When the boiler burner (modulation) goes down to 0, -125 values begin to appear. Everything still works. Where can these values come from?
Attachments
Screenshot 2023-01-25 at 06-53-56 Domoticz.png
Screenshot 2023-01-25 at 06-53-56 Domoticz.png (41.19 KiB) Viewed 2617 times
akamming
Posts: 337
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: OpenTherm weather dependent heating control

Post by akamming »

seal wrote: Tuesday 20 December 2022 13:51 @akamming: i tried to compile your handler from git but i'm getting erros:

Code: Select all


Compilation error: 'class OpenTherm' has no member named 'getOutsideTemperature';

Im using all libraries as was in your readme
sorry for late reaction. this is fixed in a later version. Should work now...
akamming
Posts: 337
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: OpenTherm weather dependent heating control

Post by akamming »

kniazio wrote: Wednesday 25 January 2023 6:55 I have been using your plugin for a few days and I am delighted with it.
Everything works as it should. There's only one detail that worries me. When the boiler burner (modulation) goes down to 0, -125 values begin to appear. Everything still works. Where can these values come from?
i wouldn't be worried. The firmware just reports the raw data it gets from the sensors. The OT protocol (as i understand, but only have one boiler to test, also a hobbyist...) is nog 100% standarized.

The thermostat part in which you can tell the boiler to which temperature to heat or cool the system is mandatory, so every thermostat would really act as a thermostat. But on a lot of other commands brand specific implementations are allowed.

e.g. my previous boiler did report pressure. My new one just reports zero on that sensor.

The same way this -125 on modulation can have some meaning for your brand, which would probably be recognized if you have a thermostat from the same brand. My firmware/plugin just reports the raw data from the sensors.
kolb
Posts: 1
Joined: Friday 01 March 2024 13:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: OpenTherm weather dependent heating control

Post by kolb »

I also used the opentherm adapter and library found here: http://ihormelnyk.com/opentherm_thermostat.
I connected both boiler and iSense room thermostat to the adapter and hoped to be able to control my boiler by iSense thermostat as well as by domoticz. However, with both connected, the iSense gives a F203 communication error and the OT commands result in response time-outs. When I disconnect the iSense the OT commands seem to function properly.
My question is how can I connect and operate the OT-adapter and still keep the iSense thermostat functioning (for the rest of the family).
akamming
Posts: 337
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: OpenTherm weather dependent heating control

Post by akamming »

For whoever is using this plugin to control their heating/cooling with the opentherm adapter from Ihor Melnyk:

I moved the functionality of the plugin to the custom firmware (https://github.com/akamming/esp_domotic ... rm_handler).

So if you update you firmware of the ESP8266, you will no longer need this plugin. I therefor stop maintaining this plugin, since this is a much better solution (and is more generic. The thermostat is now automatically available on any home automation system which supports the mqtt autodiscovery protocol)
Maciek90
Posts: 19
Joined: Friday 05 March 2021 23:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: OpenTherm weather dependent heating control

Post by Maciek90 »

Is there any way to update my esp8266 via OTA, or do i have to update via arduinoide by connecting usb cable?
akamming
Posts: 337
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: OpenTherm weather dependent heating control

Post by akamming »

If you are regering to the firmware I described above: that one support ota upgrades.

But since you also need to upload the data files with littlefs, then ota upgrade is Only supported of you use the Legacy version of the arduino ide (can be found on the software page on the arduino site)
Maciek90
Posts: 19
Joined: Friday 05 March 2021 23:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: OpenTherm weather dependent heating control

Post by Maciek90 »

One more question. Can I install this firmware on WT32-ETH01? I would prefer to have a LAN connection to my boiler instead of wifi
akamming
Posts: 337
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: OpenTherm weather dependent heating control

Post by akamming »

Probably Will work, but only after some code changes

The code Will now look for a wifi config first so that has to be changed for this device

I also only tested On esp8266 platform. I never compiled on esp32. So this might also trigger Some code changes

If you have Some coding skills, you can make the changes and create a pull request
Maciek90
Posts: 19
Joined: Friday 05 March 2021 23:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: OpenTherm weather dependent heating control

Post by Maciek90 »

Unfortunately my coding skills are very poor. Maybe you are planning to create such a modification? ;)
akamming
Posts: 337
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: OpenTherm weather dependent heating control

Post by akamming »

Maciek90 wrote: Sunday 03 November 2024 18:22 Unfortunately my coding skills are very poor. Maybe you are planning to create such a modification? ;)
Sorry… no plans and no reason to do so… works 100% stable using wifi…
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests