home-climate-control/dz

MQTT devices relying on retained messages may not work correctly

Closed this issue · 1 comments

Expected Behavior

Device drivers read retained messages upon connecting to an MQTT broker and act upon them.

Actual Behavior

Overoptimized MqttAdapter with just one connection to one broker manages to read and discard retained messages (because there are no subscribers for them yet) before subscribers come, hence, they miss retained messages and may get stuck in wrong state (case in point, same manifestation as #295).

Fixed as of rev. bfdc029