Page 1 of 1
OTGW LAN + MQTT HomeAssistant
Posted: Sat Dec 28, 2024 9:22 am
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
Re: OTGW LAN + MQTT HomeAssistant
Posted: Sat Dec 28, 2024 12:38 pm
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.
Re: OTGW LAN + MQTT HomeAssistant
Posted: Sat Dec 28, 2024 2:32 pm
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
Re: OTGW LAN + MQTT HomeAssistant
Posted: Sun Dec 29, 2024 5:26 pm
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.
Re: OTGW LAN + MQTT HomeAssistant
Posted: Mon Feb 24, 2025 10:46 am
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.