mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-21 14:38:15 +01:00
get first ferment target temp from BF for cooldown step
This commit is contained in:
parent
4de128f902
commit
e0b220d980
2 changed files with 19 additions and 3 deletions
|
@ -1,3 +1,3 @@
|
||||||
__version__ = "4.4.3.a5"
|
__version__ = "4.4.3.a6"
|
||||||
__codename__ = "Yeast Starter"
|
__codename__ = "Yeast Starter"
|
||||||
|
|
||||||
|
|
|
@ -815,6 +815,21 @@ class UploadController:
|
||||||
except:
|
except:
|
||||||
miscs = None
|
miscs = None
|
||||||
|
|
||||||
|
try:
|
||||||
|
fermentation_steps=bf_recipe['fermentation']['steps']
|
||||||
|
except:
|
||||||
|
fermentation_steps=None
|
||||||
|
|
||||||
|
if fermentation_steps is not None:
|
||||||
|
try:
|
||||||
|
step=fermentation_steps[0]
|
||||||
|
self.fermentation_step_temp=int(step['stepTemp'])
|
||||||
|
except:
|
||||||
|
self.fermentation_step_temp=None
|
||||||
|
|
||||||
|
if self.fermentation_step_temp is not None and self.TEMP_UNIT != "C":
|
||||||
|
self.fermentation_step_temp = round((9.0 / 5.0 * float(self.fermentation_step_temp)+ 32))
|
||||||
|
|
||||||
FirstWort = self.getFirstWort(hops, "bf")
|
FirstWort = self.getFirstWort(hops, "bf")
|
||||||
|
|
||||||
await self.create_recipe(RecipeName)
|
await self.create_recipe(RecipeName)
|
||||||
|
@ -1052,8 +1067,9 @@ class UploadController:
|
||||||
cooldown_sensor = self.cbpi.config.get("steps_cooldown_sensor", None)
|
cooldown_sensor = self.cbpi.config.get("steps_cooldown_sensor", None)
|
||||||
if cooldown_sensor is None or cooldown_sensor == '':
|
if cooldown_sensor is None or cooldown_sensor == '':
|
||||||
cooldown_sensor = self.boilkettle.sensor # fall back to boilkettle sensor if no other sensor is specified
|
cooldown_sensor = self.boilkettle.sensor # fall back to boilkettle sensor if no other sensor is specified
|
||||||
step_timer = ""
|
step_timer = ""
|
||||||
step_temp = int(self.CoolDownTemp)
|
|
||||||
|
step_temp = int(self.CoolDownTemp) if (self.fermentation_step_temp is None or self.fermentation_step_temp <= int(self.CoolDownTemp)) else self.fermentation_step_temp
|
||||||
step_string = { "name": "Cooldown",
|
step_string = { "name": "Cooldown",
|
||||||
"props": {
|
"props": {
|
||||||
"Kettle": self.boilid,
|
"Kettle": self.boilid,
|
||||||
|
|
Loading…
Reference in a new issue