OTGW, Wemos d1, Domoticz

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

Moderator: hvxl

Post Reply
taw
Starting Member
Starting Member
Posts: 4
Joined: Tue Dec 28, 2021 5:17 pm

OTGW, Wemos d1, Domoticz

Post by taw »

Hey everyone!

I am not very familiar with the otgw and I hope someone can help me with the following question;

I am using the otgw hw version 2.3 with sw version 5.1. This works as expected together with the Opentherm Monitor connected to the USB port.

If I connect the otgw to an RPI with Domoticz installed on it, also connected via a USB port, works fine. I receive 28 devices and can for example; View Max_CH Water Setpoint, CH Water Pressure and so on in Domoticz.

So far all good :-)

However if I use the otgw via a wemos d1 mini (WiFi) to connect to Domoticz (configured for OpenTherm LAN I/F ip address x.x.x.x. and port 23). I see information appear in the Domoticz logging but no new hardware is learned. (not even with "allow new hw devices for 5 minutes enabled).

The wemos d1 is loaded with; OTGW-firmware.ino.0.9.1+403a808.bin and; OTGW-firmware.mklittlefs.0.9.1+403a808.bin

It is possible to connect to the wemos d1 via a browser. With nmap you can see that TCP ports 80 and 23 are open.

Does anyone have any idea what I'm doing wrong? Is there a clear wiki or something with good configuration guidelines somewhere?

Regards, Ted
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: OTGW, Wemos d1, Domoticz

Post by hvxl »

Possibly nmap only scans the well-known ports, which could explain why it doesn't mention port 25238. But that should be the correct port for access to the serial interface of the PIC, which is what I believe Domoticz wants.
Schelte
rvdbreemen
Starting Member
Starting Member
Posts: 45
Joined: Sun Jan 19, 2020 2:04 pm

Re: OTGW, Wemos d1, Domoticz

Post by rvdbreemen »

The Wemos firmware instructions can be founding GitHub.

How to integrate Domoticz can be found here:
https://github.com/rvdbreemen/OTGW-firm ... -or-others

You can use port 25238, or, you can use MQTT and get access to all sensors.

Enjoy,
Robert
taw
Starting Member
Starting Member
Posts: 4
Joined: Tue Dec 28, 2021 5:17 pm

Re: OTGW, Wemos d1, Domoticz

Post by taw »

Schelte,

Thanks for your response!

You are right about nmap. By default the first 1000 ports are scanned. These are the so-called "well known ports". I ran a new scan with; nmap -p 1-65535 -T4 -A -v 192.168.178.47. Nmap now recognizes tcp port 25238 as open and even displays a fingerprint of: OpenTherm Gateway 5.1.

I'm a little bit ashamed;-)

I reconfigured Domoticz for Open Therm Gateway with LAN interface. IP address 192.168.178.47 port 25238.

In the Domoticz log I now see the following messages:

2022-01-02 18:45:27.868 Status: OTGW via wemos d1 port 25238: connected to: 192.168.178.47:25238

2022-01-02 18:45:29.180 Status: OTGW via wemos d1 port 25238: B70385� OpenTherm Gateway 5.1
2022-01-02 18:45:29.383 Status: OTGW via wemos d1 port 25238: T00395000
2022-01-02 18:45:29.591 Status: OTGW via wemos d1 port 25238: BC0395000
2022-01-02 18:45:29.938 Status: OTGW via wemos d1 port 25238: T10010A00
2022-01-02 18:45:30.063 Status: OTGW via wemos d1 port 25238: BD0010A00
2022-01-02 18:45:30.494 Status: OTGW via wemos d1 port 25238: T80190000
2022-01-02 18:45:30.914 Status: OTGW via wemos d1 port 25238: B401� OpenTherm Gateway 5.1
2022-01-02 18:45:31.432 Status: OTGW via wemos d1 port 25238: T80190000
2022-01-02 18:45:32.778 Status: OTGW via wemos d1 port 25238: B40193C00 OpenTherm Gateway 5.1
2022-01-02 18:45:33.123 OTGW via wemos d1 port 25238: Temp (Control Setpoint)
2022-01-02 18:45:33.130 OTGW via wemos d1 port 25238: Thermostat (Room Setpoint)
2022-01-02 18:45:33.131 OTGW via wemos d1 port 25238: General/Percentage (Relative modulation level)
2022-01-02 18:45:33.133 OTGW via wemos d1 port 25238: General/Waterflow (DHW Flow Rate)
2022-01-02 18:45:33.138 OTGW via wemos d1 port 25238: Temp (Room Temperature)
2022-01-02 18:45:33.142 OTGW via wemos d1 port 25238: Temp (Boiler Water Temperature)
2022-01-02 18:45:33.145 OTGW via wemos d1 port 25238: Temp (DHW Temperature)
2022-01-02 18:45:33.146 OTGW via wemos d1 port 25238: Temp (Outside Temperature)
2022-01-02 18:45:33.148 OTGW via wemos d1 port 25238: Temp (Return Water Temperature)

Ans so on.

I see devices in the Domoticz device list and have added devices to use. however, it doesn't work as I expected. The different values such as; Room Temperature, Room Setpoint, Boiler Water Temperature and so on will remain at zero (0). After a few hours the following values were displayed; CH Water pressure (1.8 Bar) and Max_Water Setpoint (80 degrees) but nothing else...

When I connect the OTGW to Domoticz via a USB port, these values are displayed correctly.

Thanks to your advice I am one step further but not yet where I want to be. Any other suggestions? Please let me know.

Regards, Ted
taw
Starting Member
Starting Member
Posts: 4
Joined: Tue Dec 28, 2021 5:17 pm

Re: OTGW, Wemos d1, Domoticz

Post by taw »

Robert, thank you for your comment!

I have used the information on the mentioned url to flash the wemos d1. I missed the info about port 25238 :-(

I don't use MQTT yet. I just responded to Schelte's advice. If you have any ideas about this, I'd love to hear it.

Thank you for your time!
Regards, Ted
rvdbreemen
Starting Member
Starting Member
Posts: 45
Joined: Sun Jan 19, 2020 2:04 pm

Re: OTGW, Wemos d1, Domoticz

Post by rvdbreemen »

Looked at the log you shared here. To me it looks like you are seeing spontaneous resets of the PIC. The us most likely cause by powerissues. Try an short high quality USB cable and a better 2A power supply. If that does not help and you still see spontaneous resets you should contact Nodoshop for a solution.

Kinda regards
Robert
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: OTGW, Wemos d1, Domoticz

Post by hvxl »

2A is totally unnecessary. Anything above 0.5A suffices. Good quality cable and power supply is what matters.
Schelte
taw
Starting Member
Starting Member
Posts: 4
Joined: Tue Dec 28, 2021 5:17 pm

Re: OTGW, Wemos d1, Domoticz

Post by taw »

Robert, Schelte ,

To be save I bought the OTGW v2.3, including wemos d1, power supply (XTAR 5V, 1A) and a USB LogiLink cable from the NoDO-Shop. The basic OTGW, without wemos d1, works fine with this USB power supply/cable combination.

The OTGW with the wemos d1 installed, you see, as Robert concluded, regular PIC resets. I have tried different USB power supplies from 5v, 1A to 2A in combination with a 25 cm USB-B cable, but you keep seeing PIC resets.

With an ANKER USB power supply (model A2013, 3Amp's) the OTGW works with the wemos d1 installed for a week now without PIC resets...

Thank you for your support.

Sincerely, Ted
Post Reply

Return to “Opentherm Gateway Forum”