Opentherm Gateway NodeMCU terminal

For OpenTherm-gateway related questions in Domoticz
Post Reply
Daylights
Posts: 14
Joined: Monday 08 January 2018 11:55
Target OS: -
Domoticz version:
Contact:

Opentherm Gateway NodeMCU terminal

Post by Daylights » Wednesday 11 April 2018 18:18

I've purchased the nodo-shop OTGW (https://www.nodo-shop.nl/en/opentherm-g ... teway.html), which is based on the open source version of OTGW. I didn't find any documentation on using or soldering it, but it wasn't too complicated. Then I put on a NodeMCU (ESP8266) and flashed ESP-Link to it (as I saw that most people were using this). When the OTGW is powered, my iSense thermostat is able to communicate with the Rehema Calenta boiler, so far so good. I just don't see anything coming in on the uC console. I set it to 9600 baud, fmt 8N1, but no show. I also tried sending something like PS=0 and PS=1, nada. I have tried the pin layout of ESP-12 and ESP-12 Swapped.

What am I missing here?

User avatar
sincze
Posts: 899
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 3.8875
Location: Netherlands
Contact:

Re: Opentherm Gateway NodeMCU terminal

Post by sincze » Friday 13 April 2018 17:31

Daylights wrote:
Wednesday 11 April 2018 18:18
I've purchased the nodo-shop OTGW (https://www.nodo-shop.nl/en/opentherm-g ... teway.html), which is based on the open source version of OTGW. I didn't find any documentation on using or soldering it, but it wasn't too complicated. Then I put on a NodeMCU (ESP8266) and flashed ESP-Link to it (as I saw that most people were using this). When the OTGW is powered, my iSense thermostat is able to communicate with the Rehema Calenta boiler, so far so good. I just don't see anything coming in on the uC console. I set it to 9600 baud, fmt 8N1, but no show. I also tried sending something like PS=0 and PS=1, nada. I have tried the pin layout of ESP-12 and ESP-12 Swapped.

What am I missing here?
Try to connect to it with otmonitor for debugging 8-) maybe the debug firmware is still in the PIC.
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

Daylights
Posts: 14
Joined: Monday 08 January 2018 11:55
Target OS: -
Domoticz version:
Contact:

Re: Opentherm Gateway NodeMCU terminal

Post by Daylights » Monday 16 April 2018 10:48

Thanks! Could you maybe guide me a little on how to use that, which pins do I need to query?

User avatar
sincze
Posts: 899
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 3.8875
Location: Netherlands
Contact:

Re: Opentherm Gateway NodeMCU terminal

Post by sincze » Monday 16 April 2018 10:54

haha no pins to query. no worries.

Just enable the relay functionality in otmonitor and have domoticz connect to that. 8-)

In addition you could have a look at: viewtopic.php?t=12492 this allows full functionality of Otmonitor in mode PS=1 and Domoticz in PS=0 mode. You can spot the differences in realtime.
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

Daylights
Posts: 14
Joined: Monday 08 January 2018 11:55
Target OS: -
Domoticz version:
Contact:

Re: Opentherm Gateway NodeMCU terminal

Post by Daylights » Wednesday 18 April 2018 21:09

As it turns out, I had my jumpers configured the wrong way :roll:

Thanks for your support!

User avatar
sincze
Posts: 899
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 3.8875
Location: Netherlands
Contact:

Re: Opentherm Gateway NodeMCU terminal

Post by sincze » Wednesday 18 April 2018 21:17

Nice. Maybe share the correct jumper settings for future reference :)
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

Daylights
Posts: 14
Joined: Monday 08 January 2018 11:55
Target OS: -
Domoticz version:
Contact:

Re: Opentherm Gateway NodeMCU terminal

Post by Daylights » Thursday 19 April 2018 11:32

I also e-mail the seller at Nodo-shop.nl. He gave me an url to the manual:

https://www.nodo-shop.nl/nl/index.php?c ... achment=47

Page 9 explains how both jumpers need to be set towards the NodeMCU on TxP/RxP. I had them set for the FTDI connector, which I am not using.

Now only how to add it to Domoticz? I am seeing the same terminal events in Domoticz logs, but no new devices. Or do I need to configure MQTT for that?

User avatar
sincze
Posts: 899
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 3.8875
Location: Netherlands
Contact:

Re: Opentherm Gateway NodeMCU terminal

Post by sincze » Thursday 19 April 2018 12:10

Daylights wrote:
Thursday 19 April 2018 11:32
I also e-mail the seller at Nodo-shop.nl. He gave me an url to the manual:

https://www.nodo-shop.nl/nl/index.php?c ... achment=47

Page 9 explains how both jumpers need to be set towards the NodeMCU on TxP/RxP. I had them set for the FTDI connector, which I am not using.

Now only how to add it to Domoticz? I am seeing the same terminal events in Domoticz logs, but no new devices. Or do I need to configure MQTT for that?
Did you allow new hardware for 5 minutes and connect domoticz via wlan to OTGW?
It should create the devices for you.
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

Daylights
Posts: 14
Joined: Monday 08 January 2018 11:55
Target OS: -
Domoticz version:
Contact:

Re: Opentherm Gateway NodeMCU terminal

Post by Daylights » Monday 23 April 2018 8:51

I did try that, no new hardware is added. I also tried disabling/enabling it, no show. Even tried a fresh (release) install, since I thought I had some issues with the beta versions.

What caught my eye is that the shell events don't all show in the Domoticz log as they all show in the uC shell in ESP-Link. Sometimes Domoticz claims it cannot connect on port 23, then the connection is restored again and the events come in bunches, then no events for a few minutes...

Daylights
Posts: 14
Joined: Monday 08 January 2018 11:55
Target OS: -
Domoticz version:
Contact:

Re: Opentherm Gateway NodeMCU terminal

Post by Daylights » Friday 27 April 2018 10:10

Ok, I just replaced the NodeMCU with another one flashed with ESPEasy. I've configured the Serial Server, now Domoticz gets a continues stream of terminal codes. Yet, no new hardware available?

User avatar
sincze
Posts: 899
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 3.8875
Location: Netherlands
Contact:

Re: Opentherm Gateway NodeMCU terminal

Post by sincze » Friday 27 April 2018 11:34

As domoticz is showing the codes in the log... And OTmonitor is working correctly this is a strange thing indeed.
The only thing I can think of... is the allow for 5 minutes hardware, disbale otgw LAN (update), re-enable (update) it. Looks stupid but I managed to solve some Xiaomi devices in the same way that did not show up.
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

Daylights
Posts: 14
Joined: Monday 08 January 2018 11:55
Target OS: -
Domoticz version:
Contact:

Re: Opentherm Gateway NodeMCU terminal

Post by Daylights » Monday 30 April 2018 9:40

That looks to have solved the issue indeed. By a bit disabling/enabling, restarting, all of a sudden the devices started to show up. Monitoring all works, even when I change the remote access setting on the thermostat, I am able to alter the temperature :D Now the flood of terminal codes are gone in the Domoticz log, I only see some errors are still appearing:

2018-04-30 09:35:39.766 Error: OTGW: Error received!
2018-04-30 09:35:39.766 (Opentherm Gateway) Temp (Control Setpoint)
2018-04-30 09:35:39.766 (Opentherm Gateway) General/Percentage (Maximum Relative Modulation Level)
2018-04-30 09:35:39.768 (Opentherm Gateway) Thermostat (Thermostaat temperatuur)
2018-04-30 09:35:39.768 (Opentherm Gateway) General/Percentage (Relative modulation level)
2018-04-30 09:35:39.769 (Opentherm Gateway) General/Pressure (Boiler Water druk)
2018-04-30 09:35:39.770 (Opentherm Gateway) Temp (Kamer temperatuur)
2018-04-30 09:35:39.771 (Opentherm Gateway) Temp (Boiler Water temparatuur)
2018-04-30 09:35:39.772 (Opentherm Gateway) Temp (DHW Temperature)
2018-04-30 09:35:39.772 (Opentherm Gateway) Temp (Outside Temperature)
2018-04-30 09:35:39.773 (Opentherm Gateway) Temp (Return Water Temperature)
2018-04-30 09:35:39.773 (Opentherm Gateway) Thermostat (DHW Setpoint)
2018-04-30 09:35:39.773 (Opentherm Gateway) Thermostat (Max_CH Water Setpoint)
2018-04-30 09:36:09.769 Error: OTGW: Error received!

Is there a way to debug log these?

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests