[120] opentherm gateway

For OpenTherm-gateway related questions in Domoticz

Moderator: leecollings

Sappien
Posts: 114
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: opentherm gateway

Post by Sappien »

It's working like a charm

Image

Just waiting foro a temperature adjust button 8-)
Sappien
Posts: 114
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: opentherm gateway

Post by Sappien »

At this moment only display and logging. I'm waiting for the possibility to adjust the tempature etc.
Sappien
Posts: 114
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: opentherm gateway

Post by Sappien »

@gizmocuz

Could you also add the status (MsgID=0) to the device list? ( To start events when Central Heating is firing up for example )
MarFan
Posts: 18
Joined: Monday 02 September 2013 15:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: opentherm gateway

Post by MarFan »

Sappien wrote:@gizmocuz

Could you also add the status (MsgID=0) to the device list? ( To start events when Central Heating is firing up for example )
I also would like this future !
I now have some Impuls on/off with a DBE http://gathering.tweakers.net/forum/lis ... /1490061/0 after it, I want to start these when the CH is turning on.
MarFan / NL / 3x RasPi / RfXcom / RfLink / S0PCM-5 / P1
Ron
Posts: 82
Joined: Friday 27 December 2013 23:29
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.2284
Location: Nederland, Den Bosch
Contact:

Re: opentherm gateway

Post by Ron »

I can't wait to order and connect an open therm gateway, but is it possible to adjust the temperature with Domoticz yet?
(or in the near future)
Sappien
Posts: 114
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: opentherm gateway

Post by Sappien »

Yes (with a little script)
User avatar
gizmocuz
Posts: 2486
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: opentherm gateway

Post by gizmocuz »

I connected my OTGW today...

Made some changes...

- OTGW TCP/IP is working now
- In Setup->Hardware->OTGW->Setup you can specify an outdoor temperature sensor, this will be used to set the outside door temperature
- The Room SetPoint is now moved to the Utility Tab.

I own an iSense thermostat, and i run firmware 3.4, maybe this is the problem but...

If you press 'Edit' on the Room Setpoint in the Utility tab, you can specify the setpoint.
0=use default
any other value will set the temporarily setpoint, that means if the thermostat sends another value (clock change) it will go back to this setting.

Unfortunately for me here, after 30 seconds, it is set back to the value that was programmed in the thermostat.

Maybe someone can test if it is working? If it is, i want to create the option to make some schedules.

What firmware are you using?

@Sappien, could you share your script?

With kind regards,
Rob
Quality outlives Quantity!
Sappien
Posts: 114
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: opentherm gateway

Post by Sappien »

Rob,

My iSense is version 23

The script I use is very simple :

Code: Select all

#!/bin/bash
/bin/stty -F /dev/ttyS0 9600 cs8 -parenb -icrnl -echo clocal -onlcr
exec 3<> /dev/ttyS0
echo -e 'TT=18.5\r' >&3
I'm updating right now, then I can test if I've got the same issues with the setpoint.
Sappien
Posts: 114
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: opentherm gateway

Post by Sappien »

It''s working..

I think I know your problem :

Code: Select all

Work-around many of the iSense quirks/bugs/misfeatures:
A remote override setpoint cannot be changed
The gateway will first cancel any existing remote setpoint before setting the new one.
Manual change of a remote override setpoint restarts the schedule
When a manual change is detected, the gateway will continue to send the override setpoint so the iSense doesn't resume the schedule.
Program change does not override a temporary remote setpoint
The iSense uses the previously received remote override function (MsgID 100) bitmap at the time the remote override setpoint (MsgID 9) is set. Just like with the remote override setpoint, it doesn't update the remote override function when it receives a new bitmap. The gateway uses the same trick as with the remote override setpoint: After sending the new remote override function bitmap, it cancels the remote override setpoint and sets it again. 
Note that the iSense only requests the remote override function about once every 12 minutes. So it may take that long before a remote override is fully instated.

Which version do you have running? I'm running 4.0b1 ( http://otgw.tclcode.com/development.html )
User avatar
gizmocuz
Posts: 2486
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: opentherm gateway

Post by gizmocuz »

i tried that version but got an error every other line in the monitor application.
will try again tomorrow


what thermostat are you using?
Quality outlives Quantity!
Sappien
Posts: 114
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: opentherm gateway

Post by Sappien »

iSense (v23)
User avatar
gizmocuz
Posts: 2486
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: opentherm gateway

Post by gizmocuz »

The one in this picture?
Thermostat
Thermostat
thertmostat.PNG (842.92 KiB) Viewed 4242 times
Did you had to change anything in it's setup?

With kind regards,
Rob
Quality outlives Quantity!
Sappien
Posts: 114
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: opentherm gateway

Post by Sappien »

Same iSense indeed..

I didn't changed anything. When I change the setpoint (say 20 C) it wil set back to the
previous setpoint (20.5)... after x seconds it goes back to the setpoint of the iSense program..(19) and finally it will set the setpoint to 20.

( Otherwise contact hvxl @ http://www.domoticaforum.eu/viewforum.php?f=75, creator of the OTG)
User avatar
gizmocuz
Posts: 2486
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: opentherm gateway

Post by gizmocuz »

maybe i was impatiant :) how long did it take? will try with your firmware tomorrow, if it works i am going to make a nice scheduler :)
Quality outlives Quantity!
Sappien
Posts: 114
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: opentherm gateway

Post by Sappien »

gizmocuz wrote:maybe i was impatiant :) how long did it take?
It can take up to a minute or so... ;)

BTW, could you also add the status (MsgID=0) to the device list? ( To see the status of the burner etc )
And maybe the possibility to change the temperature of the Setpoint/Water Heating ?
terrarium
Posts: 12
Joined: Monday 16 December 2013 13:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: opentherm gateway

Post by terrarium »

Sofar this topic is really helpful.

However i have come across some errors.

Running Isense version 19 on a Remeha Calenta 28C.

Domoticz V1.1414 and firmware version 4.0b1 on the gateway.

Code: Select all

OTGW connected to: 192.168.1.103:1001
Sun Jan 26 21:41:47 2014 (OTGW) Temperature (Control Setpoint)
Sun Jan 26 21:41:47 2014 (OTGW) Thermostat
Sun Jan 26 21:41:47 2014 (OTGW) Temperature (Room Temperature)
Sun Jan 26 21:41:48 2014 (OTGW) Temperature (Boiler Water Temperature)
Sun Jan 26 21:41:48 2014 (OTGW) Temperature (DHW Temperature)
Sun Jan 26 21:41:48 2014 (OTGW) Temperature (Outside Temperature)
Sun Jan 26 21:41:48 2014 (OTGW) Temperature (Return Water Temperature)
Sun Jan 26 21:41:48 2014 (OTGW) Temperature (DHW Setpoint)
Sun Jan 26 21:41:48 2014 (OTGW) Temperature (Max_CH Water Setpoint)
Sun Jan 26 21:42:01 2014 (OTGW) Temperature (Control Setpoint)
Sun Jan 26 21:42:01 2014 (OTGW) Thermostat
Sun Jan 26 21:42:01 2014 (OTGW) Temperature (Room Temperature)
Sun Jan 26 21:42:01 2014 (OTGW) Temperature (Boiler Water Temperature)
Sun Jan 26 21:42:01 2014 (OTGW) Temperature (DHW Temperature)
Sun Jan 26 21:42:01 2014 (OTGW) Temperature (Outside Temperature)
Sun Jan 26 21:42:01 2014 (OTGW) Temperature (Return Water Temperature)
Sun Jan 26 21:42:01 2014 (OTGW) Temperature (DHW Setpoint)

....
Error: Sun Jan 26 21:42:16 2014 OTGW Error: End of file
These errors continue to show in the logs and eventually the gateway is not reachable anymore.

Return water temperature also does not show.
Screen Shot 2014-01-26 at 21.44.02.png
Screen Shot 2014-01-26 at 21.44.02.png (23.09 KiB) Viewed 4221 times

Maybe someone has pointers to correct these issues?

Thanks in advance.
pwhooftman
Posts: 75
Joined: Monday 11 November 2013 18:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: opentherm gateway

Post by pwhooftman »

gizmocuz wrote:I connected my OTGW today...


- In Setup->Hardware->OTGW->Setup you can specify an outdoor temperature sensor, this will be used to set the outside door temperature

Rob

I do not have an option Setup -> Hardware-> OTGW ....., how can i get that?

Running v1.1115 on a Synology DS412+, i already ordered a Raspberry PI B to switch to Domotig to get OTGW support, and now i read this :o
Domoticz v 1.16xx
1X RFXtrx433 USB 433.92MHz Transceiver Firmware version: 71
1X Synology Nas DS918+ DSM 7 (12Gb RAM mod)
Sappien
Posts: 114
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: opentherm gateway

Post by Sappien »

Image

I think you need to update your version ;)
pwhooftman
Posts: 75
Joined: Monday 11 November 2013 18:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: opentherm gateway

Post by pwhooftman »

pwhooftman wrote:
gizmocuz wrote:I connected my OTGW today...


- In Setup->Hardware->OTGW->Setup you can specify an outdoor temperature sensor, this will be used to set the outside door temperature

Rob

I do not have an option Setup -> Hardware-> OTGW ....., how can i get that?

Running v1.1115 on a Synology DS412+, i already ordered a Raspberry PI B to switch to Domotig to get OTGW support, and now i read this :o

Answer to self: update to v1.1414 ......
Domoticz v 1.16xx
1X RFXtrx433 USB 433.92MHz Transceiver Firmware version: 71
1X Synology Nas DS918+ DSM 7 (12Gb RAM mod)
User avatar
gizmocuz
Posts: 2486
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: opentherm gateway

Post by gizmocuz »

@pwhooftman:
Seems like a TCP/IP communication issue, i have to re-debug this class.
I tried to program it using boost asio, but maybe i go back again to raw sockets instead.

@Sappien:
Found the issue. After upgrading to 4.0b1 i had a lot of 'Error 01' messages.
Actually, i only received messages from the Thermostat (Starting with TXXXXXX).
I double,tripple read the changes, apparently these checks/errors are common, and
this check should have been disabled in the initial firmware... but it's not.
I had to issue TR=1, now all is working well again.

Back to the subject:
- I can indicate the flame status as an icon
- And/Or i can thread the Statuses as switches
- I will move all SetPoints to the Utility Tab where you can control them

I am quite new to opentherm/thermostats/boilers....

Besides the Room SetPoint i see three more:
- Control Setpoint (MsgID=1)
- DHW Setpoint (MsgID=56)
- MAX_CH Water Setpoint (MsgID=57)

It seems the above three SetPoints are automatically adjusted by someone (therm/boiler?) Do we(Can we) want to control this?

It also seems we can set two more setpoints (besides the room):
- Setpoint Heating (It is not clear for me which one this is, MsgID1 or MsgID=57)
- Setpoint Water (this is the DHW i think? MsgID=56)

If they are controlled automatically by the boiler (because of a room setpoint), do we want to control the above two? And why?

I do seem to miss one important feature, Let's say i remove my thermostat, then i need to have an option to send the actual 'Room Temperature' to the gateway....
Or, if the thermostat is placed at a wrong spot (yeah sounds stupid... but...) and i want to use another temperature sensor as 'Room Temperature' ... is this possible?

/Rob
Quality outlives Quantity!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest