feasibility to update fermentersteps (not reqwuired yet)

This commit is contained in:
avollkopf 2022-03-04 16:52:16 +01:00
parent db4e75525f
commit b1dc05b209

View file

@ -586,6 +586,11 @@ class FermentationController:
fermentersteps=self.get_fermenter_steps() fermentersteps=self.get_fermenter_steps()
self.cbpi.ws.send(dict(topic=key, data=fermentersteps)) 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: async def call_action(self, id, action, parameter) -> None:
logging.info("FermenterStep Controller - call Action {} {}".format(id, action)) logging.info("FermenterStep Controller - call Action {} {}".format(id, action))
try: try: