OpenTherm Gateway binding

Hi Arjen,

Thank you so much for your quick reply and updating the binding !

I understand the difference between the read actual setpoint on the thermostat and the override setpoint.
But the setpunt doesn’t change on my system.

When becomes the setpoint override active ? By a value different from zero ?

Here you see a piece of the log :

2018-10-04 23:19:59.499 [vent.ItemStateChangedEvent] - OpenThermGateway_BoilerWaterTemperature changed from 26.640625 to 26.5
2018-10-04 23:20:04.505 [vent.ItemStateChangedEvent] - OpenThermGateway_BoilerWaterTemperature changed from 26.5 to 26.640625
2018-10-04 23:20:09.527 [vent.ItemStateChangedEvent] - OpenThermGateway_BoilerWaterTemperature changed from 26.640625 to 26.5
2018-10-04 23:20:13.952 [vent.ItemStateChangedEvent] - OpenThermGateway_OutsideTemperature changed from 15.140625 to 15.25
2018-10-04 23:20:14.555 [vent.ItemStateChangedEvent] - OpenThermGateway_BoilerWaterTemperature changed from 26.5 to 26.640625
2018-10-04 23:20:23.741 [ome.event.ItemCommandEvent] - Item 'OpenThermGateway_OverrideRoomSetpoint' received command 28.0
2018-10-04 23:20:23.759 [vent.ItemStateChangedEvent] - OpenThermGateway_OverrideRoomSetpoint changed from 20 to 28.0
2018-10-04 23:20:24.501 [vent.ItemStateChangedEvent] - OpenThermGateway_BoilerWaterTemperature changed from 26.640625 to 26.5
2018-10-04 23:20:29.529 [vent.ItemStateChangedEvent] - OpenThermGateway_BoilerWaterTemperature changed from 26.5 to 26.640625
2018-10-04 23:20:30.331 [ome.event.ItemCommandEvent] - Item 'OpenThermGateway_DomesticHotWaterOverrideSetpoint' received command 55
2018-10-04 23:20:30.343 [vent.ItemStateChangedEvent] - OpenThermGateway_DomesticHotWaterOverrideSetpoint changed from 50 to 55
2018-10-04 23:20:39.475 [vent.ItemStateChangedEvent] - OpenThermGateway_BoilerWaterTemperature changed from 26.640625 to 26.5
2018-10-04 23:20:44.498 [vent.ItemStateChangedEvent] - OpenThermGateway_BoilerWaterTemperature changed from 26.5 to 26.640625

The override value don’t change the setpoint in both room and DHW situation.

I still missing the actual DHW temperature in the new binding.

But that’s a detail …

Kind regards and thanks,
Peter.

OpenTherm%20Gateway%20items%20Paper%20IU%20DHW

Hi Peter, indeed setting the value of the override setpoint to anything other than 0 should do the trick. The override setpoint value is then updated immediately, the actual setpoint is updated a couple of seconds later.

Can you try to enable debug logging as I mentioned earlier ? Because that should show the actual writing to the opentherm gateway and the response from the gateway which should tell us if the command was received succesfully.

To enable debug logging, in short: log in to your device running openhab and SSH into localhost port 8101 (thats the openhab console) with username openhab and password habopen:

$ ssh -p 8101 openhab@localhost
Password: habopen

Then issue the following commands

openhab> log:set DEBUG org.openhab.binding.openthermgateway
openhab> log:tail

This should give you a rolling log screen displaying everything regarding the opentherm gateway binding in high detail. Please look for a combination of something like:

...
Sending message: TT=21
Received message: TT: 21.00
...

This should appear directly after you set the room temperature override value in the UI (or any other way).

To quit the rolling log screen, hit Ctrl + C

You may want to set the loglevel for opentherm gateway binding back to ERROR level to prevent loads of log entries to be generated:

openhab> log:set ERROR org.openhab.binding.openthermgateway

Please let me know what you find.

Regards
Arjen

Hi Arjen,

Thanks for your reaction and the explanation about the logging of the binding.

Here’s the log :

20:30:54.880 [DEBUG] [teway.handler.OpenThermGatewayHandler] - Received message: T00120000
20:30:55.176 [DEBUG] [teway.handler.OpenThermGatewayHandler] - Received message: BC012019D
20:30:55.399 [DEBUG] [teway.handler.OpenThermGatewayHandler] - Received message: T80000200
20:30:55.416 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'OpenThermGateway_OverrideRoomSetpoint' received command 21
20:30:55.430 [DEBUG] [teway.handler.OpenThermGatewayHandler] - Received channel: openthermgateway:otgw:6a3a0fc5:overridesetpoint, command: 21
20:30:55.434 [INFO ] [smarthome.event.ItemStateChangedEvent] - OpenThermGateway_OverrideRoomSetpoint changed from 26.0 to 21
20:30:55.445 [DEBUG] [teway.handler.OpenThermGatewayHandler] - Sending message: TT=21
20:30:55.779 [DEBUG] [teway.handler.OpenThermGatewayHandler] - Received message: B40000200
20:30:55.785 [DEBUG] [teway.handler.OpenThermGatewayHandler] - Received update for channel 'ch_enable': OFF
20:30:55.792 [DEBUG] [teway.handler.OpenThermGatewayHandler] - Received update for channel 'dhw_enable': ON
20:30:55.798 [DEBUG] [teway.handler.OpenThermGatewayHandler] - Received update for channel 'ch_mode': OFF
20:30:55.807 [DEBUG] [teway.handler.OpenThermGatewayHandler] - Received update for channel 'dhw_mode': OFF
20:30:55.817 [DEBUG] [teway.handler.OpenThermGatewayHandler] - Received update for channel 'flame': OFF
20:30:55.979 [DEBUG] [teway.handler.OpenThermGatewayHandler] - Received message: T80000200
20:30:56.281 [DEBUG] [teway.handler.OpenThermGatewayHandler] - Received message: B40000200

I see the sending message: TT=21, but don’t get a Receiving message of TT …
So, no response from the gateway. Strange !

Hopefully can you find a solution.
I’m curious.

Are you able to override your setpoint with the current binding ?
I was able to override the setpoint of my Honeywell Chronotherm Touch thermostat in otmonitor.

Is it also possible to add a channel for the actual DHW value in your next revision ?

Kind regards and have a nice week-end !
Peter.

Hi Peter,

I have made some changes after I found differences in how writing to the socket works on my dev/test machine (windows) and the raspberry pi running openhab. If anyone could explain why autoflush + println doesn’t work on linux, but adding a newline to the message and explicitly calling flush does work… i’d be happy to hear :wink:

Also I added a DHW temperature channel and a version property (currently 0.2.0) to the OpenTherm Gateway thing.

Please download the latest jar file from https://github.com/ArjenKorevaar/openhab2-openthermgateway-binary and give it another try. On my setup, everything seems to be working, except that I don’t get DHW temp and Return water temp values from OTGW… but that’s probably due to my boiler, since I don’t get those values on otmonitor either.

After using the new version, please verity that the version property of the Thing shows 0.2.0. And again, if anything doesn’t seem to work, use the debug logging to provide me with details.

Regards
Arjen

1 Like

hello everyone,

I have also a OpenTherm Gateway from nodo shop with wifi.

I have a Intergas HR 36-30 and underfloor heating with 5 rooms.

I want to control every room separate. I want to combine Homematic with openhab and opentherm

Homematic opens the valve of a room -> openhab knows this -> send to opentherm gateway -> intergas starts heating

Do you thing this is possible ?

Yours alex

Hi Alex,

When you let the OTGW decide when and how much heating is required, you are basically taking over the function of the thermostat. While that is certainly possible (given that your boiler supports OpenTherm, I haven’t looked that up), it may turn out the be quite difficult to get it right for reasons mentioned here:
http://otgw.tclcode.com/standalone.html#considerations

Another solution that afaik is common with zone heating, is to measure the return temp. Based on the difference between boiler temp and return temp, the boiler is then able to determine the amount of heat that is lost (and thus requested) in all rooms combined. Creating a short loop with a pressure valve (in Dutch called a ‘shunt’) that returns the hot water back to the boiler allows the boiler to measure the return water temp when all other (room) valves are closed. An alternative to the bypass loop is to have one radiator always fully open, for instance the one in the bathroom, to allow the water to flow even when all other valves are closed.

Hi Arjen,

just installed the binding and trying to get everything working. Two things I noticed

  • In the git hub page there are a couple of items that are declared wrong. As an example demo.items = MaxRelativeModulationLevel but in demo.sitemap = MaximumRelativeModulationLevel. The same goes for some others.

  • I miss water pressure, it is available through the gateway

And thank you very much for making this binding!!

PS I am running OpenHAB in a docker container on a Synology DS918+, I have a OTGW with a serial interface which is fitted with ESP-link to go from serial to telnet.

I have the following (corrected) sitemap items:

Frame label="OpenTherm Gateway" {
        Text item=RoomTemperature icon="temperature" label="Room temperature [%.1f °C]"        
        Setpoint item=RoomSetpoint minValue=0.0 maxValue=99.0 step=0.5 icon="heating" label="Room setpoint [%.1f °C]"
        Text item=BoilerWaterTemperature icon="temperature" label="Boiler water temperature [%.1f °C]"
        Text item=ReturnWaterTemperature icon="temperature" label="Return water temperature [%.1f °C]"
        Setpoint item=OutsideTemperature minValue=0.0 maxValue=99.0 step=0.5 icon="temperature" label="Outside temperature [%.1f °C]"
        
        Switch item=CentralHeatingEnabled icon="radiator" label="Central heating enabled"
        Switch item=CentralHeatingMode icon="radiator" label="Central heating active"
        Switch item=DomesticHotWaterEnabled icon="faucet" label="Domestic hot water enabled"
        Switch item=DomesticHotWaterMode icon="faucet" label="Domestic hot water active"
        Switch item=FlameMode icon="fire" label="Burner active"
        
        Text item=RelativeModulationLevel icon="heating" label="Relative modulation level"
        Text item=MaxRelativeModulationLevel icon="heating" label="Maximum relative modulation level"
    }

Regarding setting the room setpoint, I don’t see either “Sending message: TT=XX” or Received message: TT=XX". If I use the roomsetpoint after some time it just gets reset.

my log:

root@diskstation:/openhab/userdata/logs# tail -f openhab.log
2018-10-11 06:30:22.274 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'dhw_mode': OFF
2018-10-11 06:30:22.276 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'flame': OFF
2018-10-11 06:30:23.180 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T90011000
2018-10-11 06:30:23.275 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B50011000
2018-10-11 06:30:24.187 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T00110000
2018-10-11 06:30:24.353 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: BC0110000
2018-10-11 06:30:24.354 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'modulevel': 0.0
2018-10-11 06:30:25.194 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T80190000
2018-10-11 06:30:25.351 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B40191A19
2018-10-11 06:30:25.353 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'flowtemp': 26.09765625
2018-10-11 06:30:26.210 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T00090000
2018-10-11 06:30:26.212 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: R007B0000
2018-10-11 06:30:26.459 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: BC07B0249
2018-10-11 06:30:26.462 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: AC0091400
2018-10-11 06:30:27.206 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T00000000
2018-10-11 06:30:27.348 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: BC0000000
2018-10-11 06:30:27.349 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'ch_enable': OFF
2018-10-11 06:30:27.350 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'dhw_enable': OFF
2018-10-11 06:30:27.352 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'ch_mode': OFF
2018-10-11 06:30:27.354 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'dhw_mode': OFF
2018-10-11 06:30:27.355 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'flame': OFF
2018-10-11 06:30:28.209 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T90011000
2018-10-11 06:30:28.345 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B50011000

**2018-10-11 06:30:29.081 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received channel: openthermgateway:otgw:1:roomsetpoint, command: 19.5**

2018-10-11 06:30:29.215 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T00110000
2018-10-11 06:30:29.343 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: BC0110000
2018-10-11 06:30:29.344 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'modulevel': 0.0

**2018-10-11 06:30:29.709 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received channel: openthermgateway:otgw:1:roomsetpoint, command: 20.0**

2018-10-11 06:30:30.221 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T80190000
2018-10-11 06:30:30.340 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B40191A19
2018-10-11 06:30:30.345 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'flowtemp': 26.09765625

**2018-10-11 06:30:30.968 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received channel: openthermgateway:otgw:1:roomsetpoint, command: 20.5**

2018-10-11 06:30:31.240 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T00630000
2018-10-11 06:30:31.241 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: R801C0000
2018-10-11 06:30:31.350 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: BC01C1A66
2018-10-11 06:30:31.352 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'returntemp': 26.3984375
2018-10-11 06:30:31.354 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: AF0630000
2018-10-11 06:30:32.234 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T00000000
2018-10-11 06:30:32.336 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: BC0000000
2018-10-11 06:30:32.337 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'ch_enable': OFF
2018-10-11 06:30:32.338 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'dhw_enable': OFF
2018-10-11 06:30:32.340 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'ch_mode': OFF
2018-10-11 06:30:32.341 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'dhw_mode': OFF
2018-10-11 06:30:32.343 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'flame': OFF
2018-10-11 06:30:33.249 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T90011000
2018-10-11 06:30:33.342 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B50011000
2018-10-11 06:30:34.247 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T00110000
2018-10-11 06:30:34.338 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: BC0110000
2018-10-11 06:30:34.340 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'modulevel': 0.0
2018-10-11 06:30:35.253 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T80190000
2018-10-11 06:30:35.345 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B40191A19
2018-10-11 06:30:35.346 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'flowtemp': 26.09765625
2018-10-11 06:30:36.271 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T80700000
2018-10-11 06:30:36.273 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: R00740000
2018-10-11 06:30:36.439 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: BC074B570
2018-10-11 06:30:36.441 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: A70700000
2018-10-11 06:30:37.263 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T00000000
2018-10-11 06:30:37.426 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: BC0000000
2018-10-11 06:30:37.428 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'ch_enable': OFF
2018-10-11 06:30:37.429 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'dhw_enable': OFF
2018-10-11 06:30:37.431 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'ch_mode': OFF
2018-10-11 06:30:37.432 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'dhw_mode': OFF
2018-10-11 06:30:37.434 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'flame': OFF
2018-10-11 06:30:38.273 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T90011000
2018-10-11 06:30:38.424 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B50011000
2018-10-11 06:30:39.277 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T00110000
2018-10-11 06:30:39.422 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: BC0110000
2018-10-11 06:30:39.423 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'modulevel': 0.0
2018-10-11 06:30:40.283 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T80190000
2018-10-11 06:30:40.420 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B40191A19
2018-10-11 06:30:40.421 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'flowtemp': 26.09765625
2018-10-11 06:30:41.290 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T00050000
2018-10-11 06:30:41.418 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: BC00500FF
2018-10-11 06:30:42.298 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T00000000
2018-10-11 06:30:42.416 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: BC0000000
2018-10-11 06:30:42.417 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'ch_enable': OFF
2018-10-11 06:30:42.419 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'dhw_enable': OFF
2018-10-11 06:30:42.420 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'ch_mode': OFF
2018-10-11 06:30:42.421 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'dhw_mode': OFF
2018-10-11 06:30:42.423 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'flame': OFF
2018-10-11 06:30:43.303 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T90011000
2018-10-11 06:30:43.414 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B50011000
2018-10-11 06:30:44.308 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T00110000
2018-10-11 06:30:44.411 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: BC0110000
2018-10-11 06:30:44.413 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'modulevel': 0.0
2018-10-11 06:30:45.315 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T80190000
2018-10-11 06:30:45.410 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B40191A19
2018-10-11 06:30:45.411 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'flowtemp': 26.09765625
2018-10-11 06:30:46.321 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T001B0A33
2018-10-11 06:30:46.424 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B601B0000
2018-10-11 06:30:46.425 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: A401B0A34
2018-10-11 06:30:47.326 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T00000000
2018-10-11 06:30:47.419 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: BC0000000
2018-10-11 06:30:47.421 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'ch_enable': OFF
2018-10-11 06:30:47.422 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'dhw_enable': OFF
2018-10-11 06:30:47.423 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'ch_mode': OFF
2018-10-11 06:30:47.425 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'dhw_mode': OFF
2018-10-11 06:30:47.426 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'flame': OFF
2018-10-11 06:30:48.335 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T90011000
2018-10-11 06:30:48.426 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B50011000
2018-10-11 06:30:49.340 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T00110000
2018-10-11 06:30:49.510 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: BC0110000
2018-10-11 06:30:49.511 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'modulevel': 0.0
2018-10-11 06:30:50.348 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T80190000
2018-10-11 06:30:50.508 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B40191A19
2018-10-11 06:30:50.510 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'flowtemp': 26.09765625
2018-10-11 06:30:51.352 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T900E6400
2018-10-11 06:30:51.505 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B500E6400
2018-10-11 06:30:51.507 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'maxrelmdulevel': 100.0
2018-10-11 06:30:52.356 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T00000000
2018-10-11 06:30:52.504 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: BC0000000
2018-10-11 06:30:52.505 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'ch_enable': OFF
2018-10-11 06:30:52.507 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'dhw_enable': OFF
2018-10-11 06:30:52.509 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'ch_mode': OFF
2018-10-11 06:30:52.512 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'dhw_mode': OFF
2018-10-11 06:30:52.514 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'flame': OFF
2018-10-11 06:30:53.361 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T90011000
2018-10-11 06:30:53.502 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B50011000
2018-10-11 06:30:54.367 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T00110000
2018-10-11 06:30:54.499 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: BC0110000
2018-10-11 06:30:54.501 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'modulevel': 0.0
2018-10-11 06:30:55.374 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T80190000
2018-10-11 06:30:55.498 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B40191A19
2018-10-11 06:30:55.499 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'flowtemp': 26.09765625
2018-10-11 06:30:56.379 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T90101300
2018-10-11 06:30:56.495 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B50101300

**2018-10-11 06:30:56.496 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'roomsetpoint': 19.0**

2018-10-11 06:30:57.385 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T00000000
2018-10-11 06:30:57.514 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: BC0000000
2018-10-11 06:30:57.516 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'ch_enable': OFF
2018-10-11 06:30:57.518 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'dhw_enable': OFF
2018-10-11 06:30:57.520 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'ch_mode': OFF
2018-10-11 06:30:57.523 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'dhw_mode': OFF
2018-10-11 06:30:57.526 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'flame': OFF
2018-10-11 06:30:58.391 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T90011000
2018-10-11 06:30:58.491 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B50011000
2018-10-11 06:30:59.399 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T00110000
2018-10-11 06:30:59.491 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: BC0110000
2018-10-11 06:30:59.492 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'modulevel': 0.0
2018-10-11 06:31:00.406 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T80190000
2018-10-11 06:31:00.498 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B40191A19
2018-10-11 06:31:00.501 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'flowtemp': 26.09765625
2018-10-11 06:31:01.412 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: T9018136B
2018-10-11 06:31:01.504 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received message: B5018136B
2018-10-11 06:31:01.506 [DEBUG] [eway.handler.OpenThermGatewayHandler] - Received update for channel 'roomtemp': 19.41796875
^C
root@diskstation:/openhab/userdata/logs#

Hi Hannibal,

After making changes to the binding, I didn’t update the sitemap in the readme markdown file… so indeed there were some errors. I will try to update the sitemap (and screenshot) shortly.

Regarding the setpoint… it seems you are trying to update the ‘roomsetpoint’ channel, however that channel is defined as read-only. Please use the ‘overridesetpoint’ channel to have the binding send the TT command to the OTGW.

As for the water pressure, I’ve just uploaded a new version 0.3.0 with new channels for water pressure and control setpoint. Please update the binding and let me know if it works!

Regards
Arjen

Hello thank you for your answer,

I have setup openhab on a ubuntu vm for testing,

I have setup the wifi from nodo opentherm gateway and can connect with opentherm monitor but not with the binding.

Wifi Settings

Opentherm Monitor

LOG

2018-10-10 19:07:08.430 [INFO ] [.dashboard.internal.DashboardService] - Stopped Dashboard
2018-10-10 19:07:11.609 [INFO ] [er.internal.HomeBuilderDashboardTile] - Started Home Builder at /homebuilder
2018-10-10 19:07:11.997 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.194.174:8080
2018-10-10 19:07:11.998 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.194.174:8443
2018-10-10 19:07:14.532 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2018-10-10 19:07:15.148 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2018-10-10 19:07:15.270 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2018-10-10 19:07:15.287 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2018-10-10 19:08:49.762 [INFO ] [eway.handler.OpenThermGatewayHandler] - Connecting to the OpenTherm Gateway at 192.168.194.115:1883
2018-10-10 19:08:49.860 [ERROR] [eway.handler.OpenThermGatewayHandler] - An error occured in OpenThermGatewaySocketConnector
java.net.ConnectException: Connection refused (Connection refused)
	at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:?]
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) [?:?]
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) [?:?]
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) [?:?]
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) [?:?]
	at java.net.Socket.connect(Socket.java:589) [?:?]
	at java.net.Socket.connect(Socket.java:538) [?:?]
	at java.net.Socket.<init>(Socket.java:434) [?:?]
	at java.net.Socket.<init>(Socket.java:211) [?:?]
	at org.openhab.binding.openthermgateway.internal.OpenThermGatewaySocketConnector.run(OpenThermGatewaySocketConnector.java:47) [196:org.openhab.binding.openthermgateway:2.4.0.201810060940]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-10-10 19:10:13.276 [INFO ] [eway.handler.OpenThermGatewayHandler] - Connecting to the OpenTherm Gateway at 192.168.194.115:6638
2018-10-10 19:10:13.277 [INFO ] [eway.handler.OpenThermGatewayHandler] - Disconnecting the OpenTherm Gateway
2018-10-10 19:40:46.868 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2018-10-10 19:40:56.096 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Stopped Paper UI
2018-10-10 19:40:56.104 [INFO ] [panel.internal.HABPanelDashboardTile] - Stopped HABPanel
2018-10-10 19:40:56.107 [INFO ] [er.internal.HomeBuilderDashboardTile] - Stopped Home Builder
2018-10-10 19:40:56.114 [INFO ] [.dashboard.internal.DashboardService] - Stopped Dashboard
2018-10-10 19:48:20.458 [INFO ] [er.internal.HomeBuilderDashboardTile] - Started Home Builder at /homebuilder
2018-10-10 19:48:20.851 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.194.174:8080
2018-10-10 19:48:20.851 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.194.174:8443
2018-10-10 19:48:23.774 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2018-10-10 19:48:24.090 [INFO ] [eway.handler.OpenThermGatewayHandler] - Connecting to the OpenTherm Gateway at 192.168.194.115:6638
2018-10-10 19:48:24.636 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2018-10-10 19:48:24.712 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2018-10-10 19:48:24.797 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel

Yours Alex

Hi Arjen,

setpoint is working now, I did exactly what you said; updating the roomsetpoint channel. I was probably blinded through the fact that is was declared as a setpoint while there is nothing to set :wink:

now I have this:

Switch item=RoomSetpointOverride mappings=[0="0", 15="15", 19="19", 20="20", 21="21", 22="22" ]

and that works like a charm!

Regarding the waterpressure I am curious how to declare it in the items file, I used the following but that did not get any value…

Number WaterPressure "Waterdruk [%d %%]" {channel="openthermgateway:otgw:1:waterpressure"}

And yes I am happy with this binding, solves a lot of trouble for me.

PS any chance that a newer version will also provide TC besides TT?

kr

Han

Hi everyone,

Sorry for my late reply, but version 0.2.0​ works very well for me. Version 0.3.0 maybe even better with the new channels for water pressure and control setpoint.

The possibility to switching between TT en TC will be a nice feature.
Some thermostats don’t accept TT and need TC, like the Honeywell Round Modulation.

I’m also happy with this useful binding, thanks Arjen for the nice work !

Kind regards,
Peter.

Hi Arjan,

after some fiddling with the notation water pressure works as well! I used the following item:

Number WaterPressure "Waterdruk [%.2f bar]" <pressure> {channel="openthermgateway:otgw:1:waterpressure"}

and on the site map:

Text item=WaterPressure

The reason why I would like to have TC beside TT is that one can use this to override the program in the thermostat. The TT will only override till the next programstep. For instance when leaving for holiday and forgotten to kill the central heating; TC=15 will do the job. Just before homecoming TC=0 will fire up the program again.

Best regards,

Han

Hi Alex,

Connection refused… can this be caused by the wifi module only accepting one connection that is taken by opentherm monitor? So in other words, can you try to connect with the binding without having the opentherm monitor connected at the same time?

Edit: I see that the connection refused is from an earlier attempt where you seem to have entered the wrong port number (1883 instead of 6638). Still, you may want to try it without the monitor connected. If it can’t connect, please send a debug log from the binding (scroll up for instructions) and also send a printscreen from the Log tab of the opentherm monitor.

Hi Han and Peter,

Adding support for TC is very much possible. I can think of two solutions: add a generic setting that allows you to set the command sent by setpointoverride, but that means that setpointoverride will sent either TT or TC, or have two separate channels for setpointoverridett and setpointoverridetc.

Which would you prefer? Or can you think of another solution?

@Han: can you post a screenshot of your paper UI or panel showing the water pressure? My boiler doesn’t support that, so I’d like to see what it looks like :wink:

Hello,

I have tried wothout connecting both at the same time.

I‘ll check the port and send you the log

Yours alex

Hello Arjen,

I think it would be handy to have an extra parameter (for example : setpointoverride_mode), 0 = TT (default) and 1 = TC.

Thanks,

Peter.

I am currently implementing it as a parameter:

This allows you to set the command to either TT or TC, where TT is the default value. In the thing definition, this would be specified as “setpointcommand=TT” or “setpointcommand=TC”

Arjan,

a separate channel would be preferred. I used to display both TT and TC as a selection item. I have added 2 screenshots; TT as a selection item and a screen showing the water pressure
The colors you see are an indication for when the value was updated; green less then one minute, orange for less then 5 and red for greater than 5 minutes. Water pressure needs adjusting :sunglasses:

regards Han

I see… well if you want to set both TT and TC at the same time… I guess adding another channel for it is the only way to make that possible.

How is this done in Domoticz for instance? I know it has an OTGW binding (or whatever it’s called) as well, that allows you to set the room temperature setpoint.

Edit: I guess two channels does make it more flexible. If you only intend to use either one of them, just ignore the other. And if you do intend to use both… that’s possible as well.