Bosch BTH-RA
: Respond to DST attribute requests with value 0x00
to avoid non-responding behaviour
#5599
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The Bosch
BTH-RA
not only wants the current time, it also requests the 3 DST related attributesdstStart
,dstEnd
anddstShift
. It is provided by the Bosch Smart Home Controller when pairing the thermostat as well as regularly when requesting the current time:According to the Zigbee Cluster Library Specification (point 3.12.2.2.4 to 3.12.2.2.6), these fields are optional but have to be set together when they are provided. As it's optional and DST time changes are being considered in the
new Date()).getTimezoneOffset()
call in zigbee-herdsman (https://github.com/Koenkk/zigbee-herdsman/blob/master/src/controller/model/device.ts#L232), these fields are not supported by default and are reported asUNSUPPORTED_ATTRIBUTE
.Although it is optional by spec, it appears the Bosch
BTH-RA
doesn't behave very well when these attributes are not set by the coordinator. The thermostat requests these information every 5 minutes up to at least every hour. After some time in this state (couldn't determine on what it depends), the thermostat stops processing attribute change requests all together which leads to an more-or-less useless device. Bringing back the device from this "dead" state requires a hard reset by removing the batteries.As workaround, I implemented a respond with value
0x00
to these attributes which seems to work. My thermostats didn't got into these non-responding state again and work well for a week now. That's why I'm keen to submit my changes now.