mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-25 00:18:17 +01:00
add condition for mashout step
add mashout step only if temp of last step is not the same as "Abmaischtemperatur" in MMuM-JSON.
This commit is contained in:
parent
7c90340236
commit
1ecc8451e4
1 changed files with 17 additions and 14 deletions
|
@ -388,11 +388,13 @@ class UploadController:
|
|||
# AutoMode is yes to start and stop automatic mode or each step
|
||||
MashIn_Flag = True
|
||||
step_kettle = self.id
|
||||
last_step_temp = 0
|
||||
logging.info(step_kettle) ###################################################
|
||||
for row in self.getSteps(Recipe_ID, "json"):
|
||||
step_name = str(row.get("name"))
|
||||
step_timer = str(int(row.get("timer")))
|
||||
step_temp = str(int(row.get("temp")))
|
||||
last_step_temp = step_temp
|
||||
sensor = self.kettle.sensor
|
||||
if MashIn_Flag == True:
|
||||
if row.get("timer") == 0:
|
||||
|
@ -447,21 +449,22 @@ class UploadController:
|
|||
|
||||
await self.create_step(step_string)
|
||||
# MashOut -> mashStep to reach mashout-temp for 1 min
|
||||
step_string = { "name": "MashOut",
|
||||
"props": {
|
||||
"AutoMode": self.AutoMode,
|
||||
"Kettle": self.id,
|
||||
"Sensor": self.kettle.sensor,
|
||||
"Temp": e["Abmaischtemperatur"],
|
||||
"Timer": 1,
|
||||
"Notification": ""
|
||||
},
|
||||
"status_text": "",
|
||||
"status": "I",
|
||||
"type": "MashStep"
|
||||
}
|
||||
if last_step_temp != e["Abmaischtemperatur"]:
|
||||
step_string = { "name": "MashOut",
|
||||
"props": {
|
||||
"AutoMode": self.AutoMode,
|
||||
"Kettle": self.id,
|
||||
"Sensor": self.kettle.sensor,
|
||||
"Temp": e["Abmaischtemperatur"],
|
||||
"Timer": 1,
|
||||
"Notification": ""
|
||||
},
|
||||
"status_text": "",
|
||||
"status": "I",
|
||||
"type": "MashStep"
|
||||
}
|
||||
|
||||
await self.create_step(step_string)
|
||||
await self.create_step(step_string)
|
||||
# Lautering -> Simple step that sends notification and waits for user input to move to next step (AutoNext=No)
|
||||
if self.mashout == "NotificationStep":
|
||||
step_string = { "name": "Lautering",
|
||||
|
|
Loading…
Reference in a new issue