[120] opentherm gateway

For OpenTherm-gateway related questions in Domoticz

Moderator: leecollings

Deshke
Posts: 9
Joined: Saturday 07 February 2015 12:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [120] opentherm gateway

Post by Deshke »

@skippiemanz i live in Belgium and we are still in pilot-program with our suppliers...they have been testing since 2012 ... :/ but hank anyway for the tip

@rkoebrugge oke i will, i just ordered the 2 youless meters, but if I order,receive and install int OTGW i'll let you know what i did if it works

@pwhooftman kan you take a picture of your calenta please how to connected the wires from the Calenta to the OTGW en from the OTGW to the thermostat please. Because i just went to see my setup upstairs en there are 5 or 6 cables in a tube coming fromthe wall straight into my calenta so ican't picture how the OTGW gets to be in the middle (especially when i never sodlered anything in my life)
rkoebrugge
Posts: 2
Joined: Saturday 09 August 2014 15:35
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [120] opentherm gateway

Post by rkoebrugge »

Deshke wrote:@rkoebrugge oke i will, i just ordered the 2 youless meters, but if I order,receive and install int OTGW i'll let you know what i did if it works
Just let me know if I can help you with something. Already using the YouLess API for my PHP script for example.
I'm a developer so maybe we can bundle our strength and offcourse help other Domoticz users :D!
pwhooftman
Posts: 75
Joined: Monday 11 November 2013 18:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [120] opentherm gateway

Post by pwhooftman »

Hi Deske,

My iSense is connected to the boiler with 2 wires.

I just cut that wire near the boiler, put the cable with 2 wires coming from the iSense to connector X1 , and the cable with 2 wires going to the boiler on connector X2:

Image

Good chance that your 5-6 cables in the tube are a) not all connected to the iSense (detach it from the wall and take a look) or b) go to other stuff like outdoor temperature sensor of extra (floorheating) waterpump.
Domoticz v 1.16xx
1X RFXtrx433 USB 433.92MHz Transceiver Firmware version: 71
1X Synology Nas DS918+ DSM 7 (12Gb RAM mod)
Deshke
Posts: 9
Joined: Saturday 07 February 2015 12:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [120] opentherm gateway

Post by Deshke »

@pwhooftman very clear info ! Thanks man. As soon as i have the guts to pay the 90 EUR for the otgw ill let you know here.

@rkoebrugge super ! Both youless devices are ordered and on the way to my homeaddress :)
roblom
Posts: 402
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: [120] opentherm gateway

Post by roblom »

Is it not easier to
* open the door of the Calenta unscrew the wires of the green connector
* Add an extra cable with at least 4 wires (UTP cable will work)
* Screw 2 wires on the green connector (blue and white-blue in the picture)
* Connect (with a screw terminal for example) the 2 disconnected wires to 2 other wires of the new added cable (green and white green in the picture)
* Now add the other end of the 4 wires to the OTGW (blue and white-blue to boiler and green and white green to the thermostat)

Image
roblom
Posts: 402
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: [120] opentherm gateway

Post by roblom »

Image doesn't work and post edit is not available after a few seconds....
Attachments
Connect OTGW to boiler.jpg
Connect OTGW to boiler.jpg (112.35 KiB) Viewed 8722 times
pwhooftman
Posts: 75
Joined: Monday 11 November 2013 18:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [120] opentherm gateway

Post by pwhooftman »

You mean

- detach the two wires from the green terminal in the calenta
- add extra length to that two wires and lead them out of the Calenta to the OTGW thermostat terminal
- lead two wires from the OTGW boiler terminal back into the Calenta to the green terminal.

Sure, also possible. Whatever suits you.
Domoticz v 1.16xx
1X RFXtrx433 USB 433.92MHz Transceiver Firmware version: 71
1X Synology Nas DS918+ DSM 7 (12Gb RAM mod)
roblom
Posts: 402
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: [120] opentherm gateway

Post by roblom »

pwhooftman wrote:You mean

- detach the two wires from the green terminal in the calenta
- add extra length to that two wires and lead them out of the Calenta to the OTGW thermostat terminal
- lead two wires from the OTGW boiler terminal back into the Calenta to the green terminal.

Sure, also possible. Whatever suits you.
Yes, thats what i meant.
roblom
Posts: 402
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: [120] opentherm gateway

Post by roblom »

Does anyone with the OTGW connected to a RPi and running latest beta of Domoticz also have stability issues?
The OTGW stops updating after about 3 times, to continue running i've set the hardware timeout to 1 minute. But Domoticz is crashing about 15 times a day. It is restarted with Monit but this shouldn't happen i suppose.
Deshke
Posts: 9
Joined: Saturday 07 February 2015 12:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [120] opentherm gateway

Post by Deshke »

roblom wrote:Does anyone with the OTGW connected to a RPi and running latest beta of Domoticz also have stability issues?
The OTGW stops updating after about 3 times, to continue running i've set the hardware timeout to 1 minute. But Domoticz is crashing about 15 times a day. It is restarted with Monit but this shouldn't happen i suppose.
because of these kind of problems I reluctant to but the OTGW :/ a lot of people seem to have problems with it. Hope you can find a solutions for your problem ! Good luck.
pwhooftman
Posts: 75
Joined: Monday 11 November 2013 18:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [120] opentherm gateway

Post by pwhooftman »

Deshke wrote:
roblom wrote:Does anyone with the OTGW connected to a RPi and running latest beta of Domoticz also have stability issues?
The OTGW stops updating after about 3 times, to continue running i've set the hardware timeout to 1 minute. But Domoticz is crashing about 15 times a day. It is restarted with Monit but this shouldn't happen i suppose.
because of these kind of problems I reluctant to but the OTGW :/ a lot of people seem to have problems with it. Hope you can find a solutions for your problem ! Good luck.
Note that the OTGW only supports full-speed serial interfacing via the USb interface. If the Raspberry has a high speed USB interface, this will likely cause issues similar to your findings (it seems to work, but only for a limited time (minutes to hours). Same happens when using an TP-Link WR703N router to make the OTGW LAN/Wireless accisble. Solution is to put an inexpensive USB hub in between the OTGW and WR703N. Dont know is the same problem applies to a Raspberry. (reference: http://www.domoticz.com/forum/viewtopic ... &start=180 )
Domoticz v 1.16xx
1X RFXtrx433 USB 433.92MHz Transceiver Firmware version: 71
1X Synology Nas DS918+ DSM 7 (12Gb RAM mod)
roblom
Posts: 402
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: [120] opentherm gateway

Post by roblom »

pwhooftman wrote:Note that the OTGW only supports full-speed serial interfacing via the USb interface. If the Raspberry has a high speed USB interface, this will likely cause issues similar to your findings (it seems to work, but only for a limited time (minutes to hours). Same happens when using an TP-Link WR703N router to make the OTGW LAN/Wireless accisble. Solution is to put an inexpensive USB hub in between the OTGW and WR703N. Dont know is the same problem applies to a Raspberry. (reference: http://www.domoticz.com/forum/viewtopic ... &start=180 )
I use the OTGW directly on the Raspberry (model b).
"full speed" is faster than "high speed"?
How can I determine if this is the case? I have a USB hub, but what is "inexpensive"?
pwhooftman
Posts: 75
Joined: Monday 11 November 2013 18:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [120] opentherm gateway

Post by pwhooftman »

roblom wrote:I use the OTGW directly on the Raspberry (model b).
"full speed" is faster than "high speed"?
How can I determine if this is the case? I have a USB hub, but what is "inexpensive"?
I don't know, i have no experience with a Raspberry, so its just a guess on my part. Any usb hub will do, those all support full & high speed and are capable of connecting to both speeds.

Furthermore, it's not normal that domoticz crashes 15 times a day, so maybe roblom has another problem. Domoticz & OTGW are quite capable of running for months without crashes. It's when the user starts tinkering with it, problems start :D
Domoticz v 1.16xx
1X RFXtrx433 USB 433.92MHz Transceiver Firmware version: 71
1X Synology Nas DS918+ DSM 7 (12Gb RAM mod)
roblom
Posts: 402
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: [120] opentherm gateway

Post by roblom »

Of course I understand that crashing is not normal, that's why i like to have it solved.
* The OTGW works normal (and stays working) on the OTmonitor (using my laptop).
* When I switch the OTGW off in the hardware Domoticz keeps running.
As I use the integrated OTGW support which should work (I assume it has been tested) I'm out of options. Probably there are some errors in some logs but the log function in Domoticz (the one you can see trough the browser) shows no errors, except the one that it didn't received data for a certain time so it is restarting the worker.
2015-02-17 00:18:30.011 Error: OpenTherm Gateway hardware (9) nothing received for more then 5 Minutes!....
2015-02-17 00:18:31.012 Error: Restarting: OpenTherm Gateway
2015-02-17 00:18:31.231 OTGW: serial setup retry in 30 seconds...
2015-02-17 00:18:32.231 OTGW: Worker stopped...
2015-02-17 00:18:34.485 EventSystem stopped...
2015-02-17 00:18:35.235 OTGW: Using serial port: /dev/ttyUSB12
I will try the USB hub again but I have tested this before and then Domoticz also stopped receiving information from the OTGW so I don't think this will help.
roblom
Posts: 402
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: [120] opentherm gateway

Post by roblom »

Below you can see that before he goes down there was no further error than the one about restarting the OTGW worker.
2015-02-17 06:24:00.590 Error: OpenTherm Gateway hardware (9) nothing received for more then 5 Minutes!....
2015-02-17 06:24:01.592 Error: Restarting: OpenTherm Gateway
2015-02-17 06:24:01.623 OTGW: serial setup retry in 30 seconds...
2015-02-17 06:24:02.624 OTGW: Worker stopped...
2015-02-17 06:24:04.899 EventSystem stopped...
2015-02-17 06:24:05.627 OTGW: Using serial port: /dev/ttyUSB12
2015-02-17 06:24:06.932 (OpenTherm Gateway) Temp (CV water Control Setpoint (OTGW))
2015-02-17 06:24:06.988 (OpenTherm Gateway) Thermostat (Woonkamer Setpoint (OTGW))
2015-02-17 06:24:07.041 (OpenTherm Gateway) General/Pressure (Tapwaterdruk (OTGW))
2015-02-17 06:24:07.097 (OpenTherm Gateway) Temp (Woonkamer (OTGW))
2015-02-17 06:24:07.219 (OpenTherm Gateway) Temp (Boiler Water Temperature (OTGW))
2015-02-17 06:24:07.362 (OpenTherm Gateway) Temp (DHW Temperature)
2015-02-17 06:24:07.448 (OpenTherm Gateway) Temp (Outside Temperature)
2015-02-17 06:24:07.507 (OpenTherm Gateway) Temp (Return Water Temperature (OTGW))
2015-02-17 06:24:07.563 (OpenTherm Gateway) Thermostat (Tapwater Setpoint (OTGW))
2015-02-17 06:24:07.615 (OpenTherm Gateway) Thermostat (Tapwater Setpoint max (OTGW))
2015-02-17 06:24:16.692 (Zolder) Temp + Baro (Zolder - Opberghok (BMP180))
2015-02-17 06:24:17.829 (1-Wire) Temp (Buiten - Zonnepanelen (DS18B20))
2015-02-17 06:24:17.904 (1-Wire) Temp (Zolder - Opberghok (DS18B20))
2015-02-17 06:25:53.569 Domoticz V2.2271 (c)2012-2015 GizMoCuz
2015-02-17 06:25:53.570 System: Raspberry Pi
2015-02-17 06:25:53.570 Startup Path: /home/pi/domoticz/
2015-02-17 06:25:53.691 Sunrise: 07:54:00 SunSet:17:54:00
2015-02-17 06:25:53.701 1-Wire support available (By Kernel)...
2015-02-17 06:25:53.701 1-Wire: Using Kernel...
2015-02-17 06:25:53.708 1Wire: Added Device: 28-000004cabc8c
2015-02-17 06:25:53.708 1Wire: Added Device: 28-0000052d3ea7
2015-02-17 06:25:53.708 1Wire: Added Device: 28-00044e7dacff
2015-02-17 06:25:53.721 Webserver started on port: 8080
2015-02-17 06:25:53.832 Incoming connection from: 192.168.178.24
2015-02-17 06:25:56.747 OTGW: Using serial port: /dev/ttyUSB12
2015-02-17 06:25:58.050 (OpenTherm Gateway) Temp (CV water Control Setpoint (OTGW))
2015-02-17 06:25:58.118 (OpenTherm Gateway) Thermostat (Woonkamer Setpoint (OTGW))
2015-02-17 06:25:58.170 (OpenTherm Gateway) General/Pressure (Tapwaterdruk (OTGW))
2015-02-17 06:25:58.225 (OpenTherm Gateway) Temp (Woonkamer (OTGW))
2015-02-17 06:25:58.280 (OpenTherm Gateway) Temp (Boiler Water Temperature (OTGW))
2015-02-17 06:25:58.333 (OpenTherm Gateway) Temp (DHW Temperature)
2015-02-17 06:25:58.387 (OpenTherm Gateway) Temp (Outside Temperature)
2015-02-17 06:25:58.441 (OpenTherm Gateway) Temp (Return Water Temperature (OTGW))
2015-02-17 06:25:58.495 (OpenTherm Gateway) Thermostat (Tapwater Setpoint (OTGW))
2015-02-17 06:25:58.547 (OpenTherm Gateway) Thermostat (Tapwater Setpoint max (OTGW))
Newwolf
Posts: 7
Joined: Friday 12 July 2013 15:49
Target OS: -
Domoticz version:
Contact:

Re: [120] opentherm gateway

Post by Newwolf »

Heey,

I also had problems with my domoticz and otgw, but this was a SD-card problem.
At the moment it is working flowless in my setup.

Maybe you can/want to test it without domoticz as client, but run it from command line.

Code:

### Download OTGW
mkdir /home/pi/otgw/
wget -N http://otgw.tclcode.com/download/otmonitor-ahf -P /home/pi/otgw/
chmod +x /home/pi/otgw/otmonitor-ahf

### Make config file

nano /home/pi/otgw/otmonitor.conf

web {
enable true
port 8081
nopass true
}
connection {
device /dev/ttyUSB0
type serial
enable true
}
server {
enable true
port 7686
relay true
}


### Run it
/home/pi/otgw/otmonitor-ahf --daemon -f "/home/pi/otgw/otmonitor.conf" &

### Kill it (if needed)
killall -9 otmonitor-ahf


Connect Domoticz or OTGW-monitor to it's IP-address and port 7686

If you want it to run on reboot follow the next steps:

### Edit
sudo nano /etc/rc.local

### Add
printf "Starting OTGW"
(sleep 20;sudo /home/pi/otgw/otmonitor-ahf --daemon -f "/home/pi/otgw/otmonitor.conf)&


Hoping you can solve your problem with this.

Grz.,
Newwolf
roblom
Posts: 402
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: [120] opentherm gateway

Post by roblom »

Newwolf wrote:Heey,

I also had problems with my domoticz and otgw, but this was a SD-card problem.
At the moment it is working flowless in my setup.

Maybe you can/want to test it without domoticz as client, but run it from command line.
Thanks for the tip.

But you have it running "flowless" :-) by running it trough the command line or do you now use directly trough domoticz?
roblom
Posts: 402
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: [120] opentherm gateway

Post by roblom »

Newwolf wrote:Connect Domoticz or OTGW-monitor to it's IP-address and port 7686
The IP adress is then the same as the IP adress of the RPi?
I have the WIFI adapter of the OTGW but this doesn't work because I reset it and now it seems it's missing some software but nobody is able to give me the right software. The company I bought the OTGW from does not respond on my emails.
Newwolf
Posts: 7
Joined: Friday 12 July 2013 15:49
Target OS: -
Domoticz version:
Contact:

Re: [120] opentherm gateway

Post by Newwolf »

My OTGW is connected on my Raspberry with USB and running through Domoticz. (OTGW-USB)

But it will also work separated.
The IP can be for example: localhost or 192.168.1.11

The benefit of running it separate is you can connect remote with the windows OTmonitor and active switches like AA=28 (return water)

If you are looking for the WRT704 firmware (look on google, but it's hard to find)
roblom
Posts: 402
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: [120] opentherm gateway

Post by roblom »

It works but the problem stays, after a few readings the updates of the OTGW stops without any errors....
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests