Laxilef / OTGateway

OpenTherm gateway for HomeAssistant
GNU General Public License v3.0
175 stars 22 forks source link

Communication Error Opentherm Gateway to OEM Thermostat #86

Open maxmilan opened 1 month ago

maxmilan commented 1 month ago

Hi there,

first of all (you heared it too many times but hey thats it) congrats and very big thank you for this far sophisticated software for Opentherm! I suppose you help a lot of people outside there to safe energy and safe the planet.

I have a Broetje Boiler BOK (Oil) central heater which communicates to a Opentherm Thermostat "OT RGI" which is basically "Siemens QAA73.210". I bought a Opentherm Gateway from diyless to reach the boiler, I complete it with an ESP S2 and connect it via WLAN to Homeassistant. So far i can reach it and can read out most values. (at least what the boiler can - it is a bit of a low cost boiler... I didnt bought it, i have to take it...)

My problem is now that the Room Thermostat (OT RGI) shows Error 88E what is regarding to manual is a communication failure. I belive it has to do with the Master Member ID. I tried out around different IDs (0-25, 50-60, 110,-115, even over 300...) but nothing changes. DUring the procedure the boiler runs amok due and "boil" everything and everybody. You mention to "bruteforce" it, but also that there is a flash file available to bruteforce it via the ESP. I think the ID has to be inside 0-255? am I right?

or could be there another failure that the gateway didnt passthrough the communication to the thermostat? I would appreciate you help very much, since i really like to use you code to check the personal life of my boiler.

best regards Max

PS: I just found out that this particular Heater is a Remeha/De Dietrich or at least it answers as one. So maybe it works fine with master member ID "0" but still i have this fault code (and only there) on the Thermostat. Can I make any other adjustments especially for the thermostat?

grafik
Laxilef commented 1 month ago

Hi,

Thanks! Did I understand correctly that you want to use opentherm thermostat and esp together? If yes, then it is not supported by firmware. The problem is that the OpenTherm protocol only requires one master thermostat on bus. That is, you can use either the ESP thermostat or the "OT RGI" thermostat, but not both. The only possible option is to connect the ESP in the gap, that is, the ESP must emulate the slave and retransmit commands to the boiler. However, this will break the project logic, because we cannot control the boiler from the home assistant. Same issue: https://github.com/Laxilef/OTGateway/issues/28

maxmilan commented 1 month ago

Okay I just saw you answered as well on GitHub to my question. In a nutshell: I want between my heater and thermostat the ot gateway like the I understood from pictures of diyless.com. I want continuously using my thermostat and also, if necessary alter the value, FX temperatures for roo or domestic hot water via HA. Isn't it that what a gateway do? Sitting between master and slave, monitore and alter the values? BR Max

Am 20. Okt. 2024, 21:30, um 21:30, Yurii @.***> schrieb:

Hi,

Thanks! Did I understand correctly that you want to use opentherm thermostat and esp together? If yes, then it is not supported by firmware. The problem is that the OpenTherm protocol only requires one master thermostat on bus. That is, you can use either the ESP thermostat or the "OT RGI" thermostat, but not both. The only possible option is to connect the ESP in the gap, that is, the ESP must emulate the slave and transmit commands to the boiler. Same issue: https://github.com/Laxilef/OTGateway/issues/28

-- Reply to this email directly or view it on GitHub: https://github.com/Laxilef/OTGateway/issues/86#issuecomment-2425187939 You are receiving this because you authored the thread.

Message ID: @.***>

maxmilan commented 1 month ago

Hi Laxilef,

soo thank you for your explanation. I think you are right and it seems beside all what I read before in advance I missed that what I was aiming for is not possible so far. Pity but thats life - next time i read the documentation even deeper and from the beginning. Thank you I learned a lot about heaters from your project and how thing work out.

Sorry about the confusion I bring up but thank you for answering fast and precisely to all of you! Big up again for the project and I will stare now into the fire and invent a new solution for my problem (like we and ancestors homo sapiens did last 20k years...)

all the best and maybe with my next heater and or habitat I will use this repo here. Beside if I find a solution to my problem I give you a hint here, but so far you can close this issue here. thx BR Max

Laxilef commented 1 month ago

Sitting between master and slave, monitore and alter the values?

If we change any value in the home assistant and transmit it to the boiler, then your thermostat (Siemens) will overwrite it with its own. For example, if you set the heating temperature to 60 degrees via the home assistant, we cannot tell the master "now the heating temperature is 60 degrees", because he is the master. In other words, when installing the ESP in the gap between the boiler and the thermostat (Siemens), the ESP will be the master for the boiler, and the master for the ESP will be your thermostat (Siemens).

This project and home assistant can do the same thing as your thermostat and can be controlled with an HMI panel or android tablet on the wall and automation in a home assistant will help to maintain the climate in the house more flexibly. If you are interested, I can take a photo of how it was done in my case.

maxmilan commented 1 month ago

okay then I understood the Opentherm from the beginning wrong, or at least what wikipedia tells about Opentherm 3.0 I thought I can work on it Multi Point-to-point and can accept more than one master. I figured also out how this is meant: There is an additional shield (board) for my heater with what I can extent the system in terms of more heating circuits, sensors, pumps, valves etc. and there are also additional connectors for OT (at least plus 3 I suppose). So it seems if Id like to use your solution i have to add this board or remove the siemens thermostat, which I want to use as a backup in case that ESP or Homeassistant fails in the middle of the winter....

I would be very interested in the project you told with the android tablet or the HMI panel (? I dont know what it is; a human interface?) at least as long as it did not make you any trouble, so i could get some ideas from it how it could look like also instead of using the OT RGI Siemens...

Even if i choose another way I can confirm it works with my Brötje BOK24 Oil Heater which is more or less the same as a handful of other Heaters since Thermea is the big holding behind. So I suppose that Remeha, DeDietrich and others who share the new R-Bus technology should work (I did not try this! But the my Mainboard is valid for a bunch of heaters). When I find time I connect it to enhance to compatibility list.

Laxilef commented 1 month ago

I would be very interested in the project you told with the android tablet or the HMI panel (? I dont know what it is; a human interface?) at least as long as it did not make you any trouble, so i could get some ideas from it how it could look like also instead of using the OT RGI Siemens...

I use a wall-mounted tablet yc-sm10p, you can buy it on aliexpress. I installed the Fully Kiosk Browser app on tablet, which always displays the home assistant dashboard in full-screen mode. The tablet dashboard displays thermostats for temperature control. Everything else is done by automation in the home assistant without my participation.

Screenshot of the dashboard for tablet: hmi_screen2

I'll add a photo on the weekend.

JoyceKimberly commented 3 weeks ago

okay then I understood the Opentherm from the beginning wrong, or at least what wikipedia tells about Opentherm 3.0 I thought I can work on it Multi Point-to-point and can accept more than one master. I figured also out how this is meant: There is an additional shield (board) for my heater with what I can extent the system in terms of more heating circuits, sensors, pumps, valves etc. and there are also additional connectors for OT (at least plus 3 I suppose). So it seems if Id like to use your solution i have to add this board or remove the siemens thermostat, which I want to use as a backup in case that ESP or Homeassistant fails in the middle of the winter....

I also understood this to be the way a "gateway" is supposed to work. The basic code examples from both Diyless and Ihormelnyk also show this to be possible.

To be fair, as great as this project is, it is a thermostat replacement, not a gateway, and really shouldn't be called a gateway to prevent confusion.

Other than that this really is a great project 👍

@maxmilan Keep an eye out for this project https://github.com/olegtarasov/esphome-opentherm/issues/8#issuecomment-2360930336 where it's stated that gateway support is being planned for.

Laxilef commented 3 weeks ago

Hi @JoyceKimberly I wrote above why this will not work correctly. The slave (ESP) cannot override the values ​​on the master (existing thermostat). Ihor Melnyk examples use transparent/proxy communication from the master (thermostat) to the boiler (slave) via ESP. Of course you can ignore some commands from the thermostat, but this will break the logic of the thermostat.

dafik commented 2 weeks ago

there is another project that acts as a proxy between the thermostat and the boiler and can overwrite the thermostat messages.

https://otgw.tclcode.com/ the assembled version is available on nodo.nl