ebaauw / homebridge-otgw

Homebridge plugin for OpenTherm Gateway
Apache License 2.0
9 stars 0 forks source link

Outside temperature not updated in HomeKit #10

Closed ebaauw closed 2 years ago

ebaauw commented 2 years ago

Got a new boiler and thermostat this weekend. OpenTherm gateway and Homebridge OTGW seem happy, except that the outside temperature is no longer updated in HomeKit, even though it is updated in the OpenTherm Monitor.

Turns out that the boiler supports an external sensor for the outside temperature, but doesn't have one installed. It replies to a READ_DATA request from the thermostat with a DATA_INVALID. My old boiler would reply with an UNKNOWN_DATAID. The message handling logic in Homebridge OTGW doesn't handle the DATA_INVALID properly, issuing a out-of-sequence OpenTherm message warning on the READ_ACK that the gateway substitutes for the DATA_INVALID from the boiler:

[Dec  5 10:11:18] [OTGW] message: T001B03CC  Read-Data   Outside temperature: 3.80
[Dec  5 10:11:18] [OTGW] message: B601B0000  Data-Inv    Outside temperature: 0.00
[Dec  5 10:11:18] [OTGW] message: AC01B0415  Read-Ack    Outside temperature: 4.08
[Dec  5 10:11:18] [OTGW] warning: AC01B0415: ignore out of sequence OpenTherm message