mvalla / openhab-addons

Add-ons for openHAB
Eclipse Public License 2.0
24 stars 16 forks source link

Thermoregulation setpoint command refused #45

Closed ricbir closed 5 years ago

ricbir commented 5 years ago

When setting a temperature using the setpoint command, the response from the thermostat is a NACK:

2019-01-08 23:54:28.180 [DEBUG] [ebnet.handler.OpenWebNetThingHandler] - ==OWN:ThingHandler== handleCommand() (command=21 °C - channel=openwebnet:bus_thermostat:508ee35d:2:setpointTemperature)
2019-01-08 23:54:28.186 [DEBUG] [er.OpenWebNetThermoregulationHandler] - ==OWN:ThermoHandler== handleSetpointCommand() (command=21 °C)
2019-01-08 23:54:28.189 [DEBUG] [.openwebnet.message.Thermoregulation] - ====TEMPERATURE 21.0 --> : <0210>
2019-01-08 23:54:28.193 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING   ============>>>>>>>>>>>> *#4*2*#14*0210*3##
2019-01-08 23:54:28.201 [DEBUG] [g.openwebnet.bus.MyHomeSocketFactory] - ##gw-openwebnet-socket## CANNOT read from socket: read returned -1
2019-01-08 23:54:28.207 [DEBUG] [g.openwebnet.bus.MyHomeJavaConnector] - ##gw-openwebnet-connector## read returned -1
2019-01-08 23:54:28.210 [DEBUG] [g.openwebnet.bus.MyHomeJavaConnector] - ##gw-openwebnet-connector## let's try with a NEW SESSION...
2019-01-08 23:54:28.213 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - ##gw-openwebnet-socket## Trying openCommandSession() socket....  (192.168.178.200:20000)
2019-01-08 23:54:28.224 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - ##gw-openwebnet-conn## ... starting HANDSHAKE ...
2019-01-08 23:54:28.227 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM RECEIVED   <<<<<<====== *#*1##
2019-01-08 23:54:28.231 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM SENDING    ======>>>>>> *99*0##
2019-01-08 23:54:28.236 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM RECEIVED   <<<<<<====== *#312233424##
2019-01-08 23:54:28.240 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM SENDING    ======>>>>>> *#790080##
2019-01-08 23:54:28.245 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM RECEIVED   <<<<<<====== *#*1##
2019-01-08 23:54:28.249 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - ##gw-openwebnet-socket## ... CONNECTED command session 192.168.178.200:20000
2019-01-08 23:54:28.251 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING   ============>>>>>>>>>>>> *#4*2*#14*0210*3##
2019-01-08 23:54:28.259 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - COM RECEIVED  <<<<<<<<<<<<============ *#*0##

I believe the command *#4*2*#14*0210*3## should actually be *#4*#2*#14*0210*3##

In fact, testing it using the OpenWebNet client, only the second one works: image

ricbir commented 5 years ago

I am using an F453AV webserver, a 3550 temperature central unit and HD4692 probes with regulation

mvalla commented 5 years ago

In the example above , can you confirm the WHERE addresses set for 3550 and HD4692 ?

ricbir commented 5 years ago

In the example above HD4692 has WHERE=2, while 3550 is not connected to OpenHAB

mvalla commented 5 years ago

fixed in version beta9-2

mvalla commented 5 years ago

The two issues seem conflicting: on this side WHERE=#N is needed, on the other only WHERE=N works. @ricbir can you send me the output of this command sent using OpenWebNet client? *#1004*0*7##