[120] opentherm gateway

For OpenTherm-gateway related questions in Domoticz
CaptainSlow
Posts: 78
Joined: Thursday 08 December 2016 22:07
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Bussum
Contact:

Re: [120] opentherm gateway

Postby CaptainSlow » Monday 09 January 2017 19:10

With the Remeha Tzerra and the Kiwi bought OTGW with esp8266 wifi to serial bridge the only value for that works without errors is VR=1. All the other values, especially the higher ones gave me all but error 03's....
____________________________________________________________________
Raspberry PI 3, Domoticz Beta, Open Therm Gateway with ESP wifi-bridge, Milight Ibox(V6), Wundermap

rjblake
Posts: 84
Joined: Friday 21 October 2016 9:25
Target OS: NAS (Synology & others)
Domoticz version:
Location: Netherlands
Contact:

Re: [120] opentherm gateway

Postby rjblake » Monday 09 January 2017 23:43

CaptainSlow wrote:With the Remeha Tzerra and the Kiwi bought OTGW with esp8266 wifi to serial bridge the only value for that works without errors is VR=1. All the other values, especially the higher ones gave me all but error 03's....


Did you use a higher rated transformer and change out the 7805 for the Recom DC/DC converter? If not, that may be the reason. The parts needed, with Conrad.nl part number are:

RECOM R-78E5.0-0.5 DC/DC-converter, print 24 V/DC 5 V/DC 500 mA (part 157954 - 89)
EI 30/15,5 printtransformator VB 2 VA Primair: Secundair: 2 VA VB 2,0/1/15 Block (part number 710564 - 89)

CaptainSlow
Posts: 78
Joined: Thursday 08 December 2016 22:07
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Bussum
Contact:

Re: [120] opentherm gateway

Postby CaptainSlow » Tuesday 10 January 2017 6:45

rjblake wrote:
CaptainSlow wrote:With the Remeha Tzerra and the Kiwi bought OTGW with esp8266 wifi to serial bridge the only value for that works without errors is VR=1. All the other values, especially the higher ones gave me all but error 03's....


Did you use a higher rated transformer and change out the 7805 for the Recom DC/DC converter? If not, that may be the reason. The parts needed, with Conrad.nl part number are:

RECOM R-78E5.0-0.5 DC/DC-converter, print 24 V/DC 5 V/DC 500 mA (part 157954 - 89)
EI 30/15,5 printtransformator VB 2 VA Primair: Secundair: 2 VA VB 2,0/1/15 Block (part number 710564 - 89)


THX... 8-) 8-) ...I was thinking about that already and I read the posts about it. Thought I'd give it a try with the one that came with the package. The transformer is hottish but not bloody hot I would say. I might need to change it to the heavier one and swapping the 7805 to DC/DC converter.
I don't get error messages yet and the connection seems stable. Had 2 drops in 2 days something like that but in the end I probably need to change it anyway :D :D
____________________________________________________________________
Raspberry PI 3, Domoticz Beta, Open Therm Gateway with ESP wifi-bridge, Milight Ibox(V6), Wundermap

Domotibart
Posts: 2
Joined: Tuesday 06 December 2016 19:53
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: [120] opentherm gateway

Postby Domotibart » Sunday 19 February 2017 4:09

I have been using the opentherm gateway with usb connection for over a year with absolutely no issues.
Yesterday i wanted to change the USB connection to IP using a ESP8266. Everything went smooth but now i have the same issues that is mentioned by some other members.
I can connect to the esp with OTmonitor and read all data, but when i connect domoticz to the ESP8266 all i get is numbers;
2017-02-19 03:08:09.301 OTGW: BD0012B00

2017-02-19 03:08:09.302 OTGW: T101814A7

2017-02-19 03:08:09.302 OTGW: BD01814A7

2017-02-19 03:08:09.302 OTGW: T80190000

2017-02-19 03:08:10.305 OTGW: BC0192780

Anyone found a solution for this?

rjblake
Posts: 84
Joined: Friday 21 October 2016 9:25
Target OS: NAS (Synology & others)
Domoticz version:
Location: Netherlands
Contact:

Re: [120] opentherm gateway

Postby rjblake » Monday 20 February 2017 23:09

Domotibart wrote:I have been using the opentherm gateway with usb connection for over a year with absolutely no issues.
Yesterday i wanted to change the USB connection to IP using a ESP8266. Everything went smooth but now i have the same issues that is mentioned by some other members.
I can connect to the esp with OTmonitor and read all data, but when i connect domoticz to the ESP8266 all i get is numbers;
2017-02-19 03:08:09.301 OTGW: BD0012B00

2017-02-19 03:08:09.302 OTGW: T101814A7

2017-02-19 03:08:09.302 OTGW: BD01814A7

2017-02-19 03:08:09.302 OTGW: T80190000

2017-02-19 03:08:10.305 OTGW: BC0192780

Anyone found a solution for this?


Yup - you need to reset the OTGW, or issue a PS=1 command to the OTGW. Either short the two RST pins briefly or connect a momentary switch to them. If you have one of the ESP8266 GPIO's connected to the RST and are using ESP-Link, you can also reset remotely using the web front end

DaWauZ
Posts: 46
Joined: Wednesday 05 November 2014 11:14
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands
Contact:

Re: [120] opentherm gateway

Postby DaWauZ » Thursday 23 February 2017 17:10

Hello,

I trying to get a otgw on domoticz.
I have a otgw and added a ESP-12. The ESP-12 gets power from usb cable, and I connected the tx on rx and vice versa on the otgw.
When I add a OTGW LAN in domoticz, no sensors being added.
In the log files I says it is connected. (ip address + port 80)

I have set the ESP-12 with a ttl cable in STA mode, I can see on my router it has an IP-address,then I did this:

AT+CIPMUX=1
This initiates the server for a Webserver.
Next we start the server at HTTP port 80 using command ,
AT+CIPSERVER=1,80

I dont know exactly what to do now?

I did not do the ESP-LINK thing, is that neccesary? I thought, when the ESP got an IP, it can be connected to the OTGW.
Though when I have the ESP connected to my serial console and do a web request I also see that on the terminal.
Raspberry Pi 2 model B with domoticz
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)

HFman
Posts: 18
Joined: Thursday 02 March 2017 21:28
Target OS: Linux
Domoticz version: 3.6635
Contact:

Re: [120] opentherm gateway

Postby HFman » Thursday 02 March 2017 23:07

I have the opentherm gateway also running with a ESP (ESP-01), but used ESP-link.
In your approach, did you set the esp at the right baudrate ?
Standard nowadays they are at 56700, or 115200, the gateway runs at 9600.

Otherwise.. make your life easy.. and flash ESP-link (works VERY stable :D ), other alternative could be ESP-easy, this one also has now a serial server, in this case you also could add temp sensor for the return pipe in case your CV does support this function in opentherm.
Raspberry PI 2 - Opentherm Gateway + ESP8826 - EvoHome - ESPEasy - RF-Link -

DaWauZ
Posts: 46
Joined: Wednesday 05 November 2014 11:14
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands
Contact:

Re: [120] opentherm gateway

Postby DaWauZ » Friday 03 March 2017 8:53

I flashed now ESP link.
Can I connect the ground of the ESP and otgw together?

Verstuurd vanaf mijn XT1562 met Tapatalk
Raspberry Pi 2 model B with domoticz
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)

HFman
Posts: 18
Joined: Thursday 02 March 2017 21:28
Target OS: Linux
Domoticz version: 3.6635
Contact:

Re: [120] opentherm gateway

Postby HFman » Friday 03 March 2017 19:33

Uhm.. Reading this not sure how your setup is.
In my case, the power for the ESP is also comming from the OTGW.

So in my case fur sure the grounds have the same level.

Did you use a level converter between the OTGW and ESP ? (since the ESP is 3V3 and the OTGW is 5V) ?

May be share a picture of your setup, this say more then 1000 words :).

And don't forget to set the ESP Link to 9600 baud otherwise it won't work..

Image
Raspberry PI 2 - Opentherm Gateway + ESP8826 - EvoHome - ESPEasy - RF-Link -

DaWauZ
Posts: 46
Joined: Wednesday 05 November 2014 11:14
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands
Contact:

Re: [120] opentherm gateway

Postby DaWauZ » Friday 03 March 2017 20:21

The ESP-12 is 5v powered, the board has an 5v to 3.3v onboard converter. So the ground of the external power connect as well to the ESP-12 and otgw.

Verstuurd vanaf mijn XT1562 met Tapatalk
Raspberry Pi 2 model B with domoticz
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)

HFman
Posts: 18
Joined: Thursday 02 March 2017 21:28
Target OS: Linux
Domoticz version: 3.6635
Contact:

Re: [120] opentherm gateway

Postby HFman » Friday 03 March 2017 21:19

you got this one :

Image

To get it work grounds should be connected.. BUT... this can be only done with "good" power supply's.
Some cheap Aliexpress once the minus is connect to mains ground... (very dangerous.. !)

It is more safe, to use one power supply to feed the ESP and the OTGW...
If you use a normal power adapter, which you bought in the Netherlands, the risk something goes wrong is very small.

First try it without connecting the thermostat, your CV (boiler) is protected by the PC827 (optocouler).
Raspberry PI 2 - Opentherm Gateway + ESP8826 - EvoHome - ESPEasy - RF-Link -

DaWauZ
Posts: 46
Joined: Wednesday 05 November 2014 11:14
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands
Contact:

Re: [120] opentherm gateway

Postby DaWauZ » Friday 03 March 2017 21:52

Tnx. The power supply is an charger for a battery builders lamp, and has an USB output. I'm using the USB output therefore, don't know how to check exactly how the ground is, will take a picture of it when I'm back in house Monday.

Verstuurd vanaf mijn XT1562 met Tapatalk
Raspberry Pi 2 model B with domoticz
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)

DaWauZ
Posts: 46
Joined: Wednesday 05 November 2014 11:14
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands
Contact:

Re: [120] opentherm gateway

Postby DaWauZ » Friday 10 March 2017 8:08

till now it works good, connected grounds of otgw serial, ESP and external psu together
Now find a way to build everyhing in one box.
A worker mate has printed some holders for the prints, will show some pics this weekend or monday.
Raspberry Pi 2 model B with domoticz
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)

HFman
Posts: 18
Joined: Thursday 02 March 2017 21:28
Target OS: Linux
Domoticz version: 3.6635
Contact:

Re: [120] opentherm gateway

Postby HFman » Friday 10 March 2017 23:09

Great ! The "print" part I still need to do. Curious how you solved it.
Raspberry PI 2 - Opentherm Gateway + ESP8826 - EvoHome - ESPEasy - RF-Link -

DaWauZ
Posts: 46
Joined: Wednesday 05 November 2014 11:14
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands
Contact:

Re: [120] opentherm gateway

Postby DaWauZ » Saturday 11 March 2017 21:45

well, due to a power outage, the kettle and otgw shutted down unexpectly.

something is going wrong. First I dont get any data to my sensors in domoticz so after solved the power outage, I deleted the hardware / sensors in domoticz.
Trying to add is again, yes new sensors allowed, but no new sensors created.
I viewed with opentherm monitor and see that under misceleneous that state is unknowd, (monitor or gateway setting)

And this message is coming every time:

Code: Select all

Unk-DataId   Message ID 99: 0


after adding new hardware In domoticz I can see

Code: Select all

2017-03-11 20:17:07.419 OTGW: T10010600
2017-03-11 20:17:07.419 OTGW: BD0010600
2017-03-11 20:17:08.420 OTGW: T00110000
2017-03-11 20:17:08.420 OTGW: BC0110000
2017-03-11 20:17:09.420 OTGW: T80190000
2017-03-11 20:17:09.420 OTGW: BC01929EB
2017-03-11 20:17:10.421 OTGW: T00090000
2017-03-11 20:17:10.421 OTGW: R801C0000
2017-03-11 20:17:10.421 OTGW: B401C298F
2017-03-11 20:17:10.421 OTGW: AC0090000
2017-03-11 20:17:11.421 OTGW: T00630000
2017-03-11 20:17:11.421 OTGW: R801C0000
2017-03-11 20:17:11.421 OTGW: B401C298C
2017-03-11 20:17:11.422 OTGW: AF0630000
2017-03-11 20:17:12.422 OTGW: T900E6400


en nog wat output uit opentrhem monitor.

Code: Select all

0:11:04.341340   AF0630000   Unk-DataId   Message ID 99: 0
20:11:05.214584   T9018147D   Write-Data   Room temperature: 20.49
20:11:05.317252   B5018147D   Write-Ack    Room temperature: 20.49
20:11:06.216670   T80000200   Read-Data    Status: 00000010 00000000
         - CH enable: disabled (0)
         - DHW enable: enabled (1)
         - Cooling enable: disabled (0)
         - OTC active: not active (0)
         - CH2 enable: disabled (0)
         - Summer/winter mode: winter (0)
         - DHW blocking: unblocked (0)
20:11:06.346376   B40000200   Read-Ack     Status: 00000010 00000000
         - Fault indication: no fault (0)
         - CH mode: not active (0)
         - DHW mode: not active (0)
         - Flame status: flame off (0)
         - Cooling status: not active (0)
         - CH2 mode: not active (0)
         - Diagnostic indication: no diagnostics (0)
         - Electricity production: not active (0)
20:11:07.218278   T10010600   Write-Data   Control setpoint: 6.00
20:11:07.316676   BD0010600   Write-Ack    Control setpoint: 6.00
20:11:08.219816   T00110000   Read-Data    Relative modulation level: 0.00
20:11:08.315542   BC0110000   Read-Ack     Relative modulation level: 0.00
20:11:09.223508   T80190000   Read-Data    Boiler water temperature: 0.00
20:11:09.315700   BC0192B80   Read-Ack     Boiler water temperature: 43.50
20:11:11.239305   T00630000   Read-Data    Message ID 99: 0
20:11:11.250618   R801C0000   Read-Data    Return water temperature: 0.00
20:11:11.333849   B401C298C   Read-Ack     Return water temperature: 41.55
20:11:11.345722   AF0630000   Unk-DataId   Message ID 99: 0
20:11:12.231534   T806E0000   Read-Data    Message ID 110: 0
20:11:12.324270   B706E0000   Unk-DataId   Message ID 110: 0
20:11:13.234776   T80000200   Read-Data    Status: 00000010 00000000
         - CH enable: disabled (0)
         - DHW enable: enabled (1)
         - Cooling enable: disabled (0)
         - OTC active: not active (0)
         - CH2 enable: disabled (0)
         - Summer/winter mode: winter (0)
         - DHW blocking: unblocked (0)
20:11:13.454531   B40000200   Read-Ack     Status: 00000010 00000000
         - Fault indication: no fault (0)
         - CH mode: not active (0)
         - DHW mode: not active (0)
         - Flame status: flame off (0)
         - Cooling status: not active (0)
         - CH2 mode: not active (0)
         - Diagnostic indication: no diagnostics (0)
         - Electricity production: not active (0)
20:11:14.237107   T10010600   Write-Data   Control setpoint: 6.00
20:11:14.329106   BD0010600   Write-Ack    Control setpoint: 6.00
20:11:15.239988   T00110000   Read-Data    Relative modulation level: 0.00
20:11:15.331553   BC0110000   Read-Ack     Relative modulation level: 0.00
20:11:16.246319   T80190000   Read-Data    Boiler water temperature: 0.00
20:11:16.336178   B40192B7D   Read-Ack     Boiler water temperature: 43.49
20:11:17.257618   T00090000   Read-Data    Remote override room setpoint: 0.00
20:11:17.269511   R801C0000   Read-Data    Return water temperature: 0.00
20:11:17.433227   B401C298C   Read-Ack     Return water temperature: 41.55
20:11:17.444998   AC0090000   Read-Ack     Remote override room setpoint: 0.00
20:11:18.262613   T00630000   Read-Data    Message ID 99: 0
20:11:18.274251   R801C0000   Read-Data    Return water temperature: 0.00
20:11:18.431985   B401C298C   Read-Ack     Return water temperature: 41.55
20:11:18.444086   AF0630000   Unk-DataId   Message ID 99: 0


whats going wrong?
Raspberry Pi 2 model B with domoticz
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)

HFman
Posts: 18
Joined: Thursday 02 March 2017 21:28
Target OS: Linux
Domoticz version: 3.6635
Contact:

Re: [120] opentherm gateway

Postby HFman » Sunday 12 March 2017 1:03

Send the command PS=1 to the otgw, you can do this under the hardware tab of domoticz. If you can't figure out, will send you a screen shot tomorrow.
Raspberry PI 2 - Opentherm Gateway + ESP8826 - EvoHome - ESPEasy - RF-Link -

DaWauZ
Posts: 46
Joined: Wednesday 05 November 2014 11:14
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands
Contact:

Re: [120] opentherm gateway

Postby DaWauZ » Sunday 12 March 2017 1:55

Nothing special happens. Also tried PR=A but no logical data send back
Raspberry Pi 2 model B with domoticz
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)

HFman
Posts: 18
Joined: Thursday 02 March 2017 21:28
Target OS: Linux
Domoticz version: 3.6635
Contact:

Re: [120] opentherm gateway

Postby HFman » Sunday 12 March 2017 12:04

Ok, somethimes have same issue, if you press the reset uC in the ESP-Link screen (see the yellow picture i send you before) and then try to send to command again, it will work again.
Raspberry PI 2 - Opentherm Gateway + ESP8826 - EvoHome - ESPEasy - RF-Link -

DaWauZ
Posts: 46
Joined: Wednesday 05 November 2014 11:14
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands
Contact:

Re: [120] opentherm gateway

Postby DaWauZ » Sunday 12 March 2017 12:32

I think i figured out, problem with loose wire tx or ground, bloody Chinese manufacturers :) of gpio wires.
I had the otgw disconnected, checked the wires and put it on, then it would react again on the commands.
Tomorrow I will solder them.

Verstuurd vanaf mijn XT1562 met Tapatalk
Raspberry Pi 2 model B with domoticz
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)

HFman
Posts: 18
Joined: Thursday 02 March 2017 21:28
Target OS: Linux
Domoticz version: 3.6635
Contact:

Re: [120] opentherm gateway

Postby HFman » Sunday 12 March 2017 19:54

Happy it works again, but quite sure it was not the rootcause.
The "mode" your OTGW was in, is the mode it send message by it self (PS=0), which is used by the OTGW software.
For Domoticz you need the " reqeusted " mode (PS=1).

I have the same issue after power down, reseting the esplink and then type PS=1 does normally the job.
Other options is resetting the OTGW at the pcb it self (jumper).

Anyhow good that it runs again ! :)
Raspberry PI 2 - Opentherm Gateway + ESP8826 - EvoHome - ESPEasy - RF-Link -


Return to “OpenTherm gateway”

Who is online

Users browsing this forum: No registered users and 1 guest