MQTT fermenter payloads are not updated
InnuendoPi opened this issue · 4 comments
InnuendoPi commented
cbpi/fermenterstepupdate: value "status" is constant "A" for all steps while cbpi/fermenterupdate value "status" in arr "steps" shows correct state.
in fermenter mode, last message in cbpi/notification topic hangs on "step finished" instead of publishing next step info like "waiting for target temp".
please remove array steps from topic fermenterupdate.
avollkopf commented
I will look into it and fix it
avollkopf commented
I think, Fermenterstepupdate should show only the active step but not the completed step. Would that make sense?
avollkopf commented
Found the code part in the fermentation controller:
# send mqtt update for active femrentersteps
for fermenter in fermentersteps:
for step in fermenter['steps']:
if step['status'] == 'A':
self.cbpi.push_update("cbpi/{}/{}/{}".format(key,fermenter['id'],step['id']), step)
It just updates steps with an 'A' but the older active steps will remain...
Need to look into it and try to remove the inactive steps.
avollkopf commented
Fixed in 4.3.2