OTGW LAN + MQTT HomeAssistant

This Forum is about the Opentherm gateway (OTGW) from Schelte

Moderator: hvxl

Post Reply
lpandolfini
Starting Member
Starting Member
Posts: 2
Joined: Sat Dec 28, 2024 9:16 am

OTGW LAN + MQTT HomeAssistant

Post by lpandolfini »

Hello everyone,
I have the OTGW board with the ethernet module, everything works good with OTMonitor, but I would like to know if it will be possibile to have the same behaviour as with the WeMos D1 Mini over Wi-Fi, that means publishing all the data to MQTT with discovery and everything, so I can integrate it in HomeAssistant.
I checked the MQTT publishing feature of OTMonitor, but the schema is completely different from what HomeAssistant expects.
Thanks
Luca
hvxl
Senior Member
Senior Member
Posts: 2029
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: OTGW LAN + MQTT HomeAssistant

Post by hvxl »

I could probably add this to OTmonitor. There are two problems, though:
  • I don't use Home Assistant myself. So it would be hard for me to test. I definitely wouldn't test it on a regular basis.
  • OTmonitor is not intended to run for months on end. All the information it keeps in memory may cause memory fragmentation over time, causing it to run out of space sooner or later.
So, it would be better to have a dedicated program to provide the conversion from Opentherm messages to MQTT according to the Home Assistant requirements. I suspect it shouldn't take much more than an afternoon to make by any amateur programmer familiar with the Home Assistant MQTT protocol. In fact, I'm surprised nobody has done that yet. Or if they did, they kept it to themselves.

Probably most people with the LAN version of the OTGW use the opentherm_gw integration.
Schelte
lpandolfini
Starting Member
Starting Member
Posts: 2
Joined: Sat Dec 28, 2024 9:16 am

Re: OTGW LAN + MQTT HomeAssistant

Post by lpandolfini »

Thank you very much, that did the trick. The integration is able to connect directly to the serial port over ethernet, thus the MQTT part is not necessary.
Luca
Kermit
Starting Member
Starting Member
Posts: 9
Joined: Fri Nov 22, 2024 7:55 pm

Re: OTGW LAN + MQTT HomeAssistant

Post by Kermit »

Maybe its only a feature of the Nodo OTGW board, but I have a D1 mini on mine publishing MQTT directly (not via OT monitor). The board publishes a webpage where you can enable MQTT and configure the Broker, etc.
OmeLoeks
Starting Member
Starting Member
Posts: 2
Joined: Mon Feb 24, 2025 10:37 am

Re: OTGW LAN + MQTT HomeAssistant

Post by OmeLoeks »

Kermit wrote: Sun Dec 29, 2024 5:26 pm Maybe its only a feature of the Nodo OTGW board, but I have a D1 mini on mine publishing MQTT directly (not via OT monitor). The board publishes a webpage where you can enable MQTT and configure the Broker, etc.
That depends on the MCU firmware used to run the D1 mini (or NodeMCU). The original firmware doesn't seem to have MQTT capabilities, while the OTGW firmware from rvdbreemen does.
Post Reply

Return to “Opentherm Gateway Forum”