rvdbreemen / OTGW-firmware

A ESP8266 devkit firmware for the Nodoshop version of the Opentherm Gateway (OTGW)
MIT License
145 stars 34 forks source link

DWH Enable flag flipping in case thermostat flag overridden through OTGW config #108

Closed binsentsu closed 2 years ago

binsentsu commented 2 years ago

Follow up of issue #84 with OTGW firmware 0.9.1 The DHW enabled bit is now read, but is constantly flipping between 1 and 0. Use case is still the same. Setup:

Reason is that the DWH Enable = 1 is read from the T-message, directly published to mqtt. Thereafter OTGW does an override through the R-message to 0, then this message is sent through mqtt. And so on...

15:19:10.180835 T80000200   Read-Data   Status (MsgID=0): 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)
15:19:10.289333 R00000000   Read-Data   Status (MsgID=0): 00000000 00000000
           - CH enable: disabled (0)
           - DHW enable: disabled (0)
           - Cooling enable: disabled (0)
           - OTC active: not active (0)
           - CH2 enable: disabled (0)
           - Summer/winter mode: winter (0)
           - DHW blocking: unblocked (0)
15:19:10.570528 BC0000000   Read-Ack    Status (MsgID=0): 00000000 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)
15:19:10.681877 A40000200   Read-Ack    Status (MsgID=0): 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)

2022-01-02_152558

rvdbreemen commented 2 years ago

@binsentsu did you try the beta 0.9.2-beta yet, because I think that should solve this behavior. Could you verify that for me?

rvdbreemen commented 2 years ago

Just went and checked your use-case... I stand corrected, it's a bug in the status sending. So I will fix it now right away, and update the current beta. If you could validate that, then I will fix this asap.

rvdbreemen commented 2 years ago

fixed in release 0.9.2