HA Failed to Connect

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

Moderator: hvxl

Post Reply
speakup
Starting Member
Starting Member
Posts: 3
Joined: Fri Dec 24, 2021 8:24 pm

HA Failed to Connect

Post by speakup »

I just received my OTGW with WeMos D1 from nodo-shop.nl/ and after putting it together and configuring the Wifi, I connected the themostat and boiler and by the looks of the logs of the webinterface (http://otgw.local) it looks like its all connected. However when trying to add the integration to Home Assistant, I'm receiving the error "Failed to Connect". I did try to put 192.168.1.139 socket://192.168.1.139 and even socket://192.168.1.139:23. I didn't find clear documentation on what should be used.

the OTGW is reported online and even running OTmonitor.exe when directly connected to laptop USB, I see all sensors report back info.

Any idea what I'm doing wrong?
Attachments
Screenshot 2021-12-24 193823c.jpg
Screenshot 2021-12-24 193823c.jpg (97.72 KiB) Viewed 1449 times
speakup
Starting Member
Starting Member
Posts: 3
Joined: Fri Dec 24, 2021 8:24 pm

Re: HA Failed to Connect

Post by speakup »

Just to follow up.

I'm able to telnet to the OTGW on port 23 using Putty and also connect OTmonitor.exe via LAN.

enabling loggin in HA, I do see the following error when trying to activate the OTGW integration:

2021-12-24 22:37:21 ERROR (MainThread) [pyotgw.pyotgw] Could not connect to serial device on 192.168.1.139. Will keep trying. Reported error was: [Errno 2] could not open port 192.168.1.139: [Errno 2] No such file or directory: '192.168.1.139'
2021-12-24 22:38:14 ERROR (MainThread) [pyotgw.pyotgw] Could not connect to serial device on socket://192.168.1.139. Will keep trying. Reported error was: Could not open port socket://192.168.1.139: '<=' not supported between instances of 'int' and 'NoneType'
speakup
Starting Member
Starting Member
Posts: 3
Joined: Fri Dec 24, 2021 8:24 pm

Re: HA Failed to Connect

Post by speakup »

Solved: I found another forum post where somebody mentioned port 25238. Using socket://192.168.1.138:25238 worked!
rvdbreemen
Starting Member
Starting Member
Posts: 45
Joined: Sun Jan 19, 2020 2:04 pm

Re: HA Failed to Connect

Post by rvdbreemen »

speakup wrote:I just received my OTGW with WeMos D1 from nodo-shop.nl/ and after putting it together and configuring the Wifi, I connected the themostat and boiler and by the looks of the logs of the webinterface (http://otgw.local) it looks like its all connected. However when trying to add the integration to Home Assistant, I'm receiving the error "Failed to Connect". I did try to put 192.168.1.139 socket://192.168.1.139 and even socket://192.168.1.139:23. I didn't find clear documentation on what should be used.

...

Any idea what I'm doing wrong?
I noticed that you have found the integration with HA to work, this is explained on the wiki about the firmware you are using, right here: https://github.com/rvdbreemen/OTGW-firm ... -or-others

I notice that you have used the serial integration offered, by using port 25238. If you have setup a MQTT hub, using the Home Assistant Addon, then you can also use the auto-discovery feature of the firmware. That way you get access to all message id's and use any of the 47 entities that will then be available to you directly. In the end my ESP firmware is about choice, you can either use the serial integration, the Rest API, the MQTT integration option, or, even just the WebUI.

All up to you, if you have any question on the firmware just visit the github right here: https://github.com/rvdbreemen/OTGW-firmware or join the discord community here: https://discord.gg/zjW3ju7vGQ

Later,
Robert
Post Reply

Return to “Opentherm Gateway Forum”