From b1dc05b2095141dc0823beedae00a1f21f96d9ec Mon Sep 17 00:00:00 2001 From: avollkopf <43980694+avollkopf@users.noreply.github.com> Date: Fri, 4 Mar 2022 16:52:16 +0100 Subject: [PATCH] feasibility to update fermentersteps (not reqwuired yet) --- cbpi/controller/fermentation_controller.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cbpi/controller/fermentation_controller.py b/cbpi/controller/fermentation_controller.py index 5f02a05..1806518 100644 --- a/cbpi/controller/fermentation_controller.py +++ b/cbpi/controller/fermentation_controller.py @@ -585,6 +585,11 @@ class FermentationController: #logging.info("FERMENTERSTEPUPDATE {}".format(key)) fermentersteps=self.get_fermenter_steps() self.cbpi.ws.send(dict(topic=key, data=fermentersteps)) + + #not yet required and too much mqtt traffic for all steps + #for fermenter in fermentersteps: + # for step in fermenter['steps']: + # self.cbpi.push_update("cbpi/{}/{}/{}".format(key,fermenter['id'],step['id']), step) async def call_action(self, id, action, parameter) -> None: logging.info("FermenterStep Controller - call Action {} {}".format(id, action))