change default values for fermenter hysteresis to values that will work if users don't read the documentation and don't enter values at all...

This commit is contained in:
avollkopf 2024-05-09 19:18:49 +02:00
parent 07ffe0dea8
commit 2180cad285
2 changed files with 5 additions and 5 deletions

View file

@ -1,3 +1,3 @@
__version__ = "4.4.1.a7" __version__ = "4.4.1.a8"
__codename__ = "Yeast Starter" __codename__ = "Yeast Starter"

View file

@ -55,9 +55,9 @@ class FermenterHysteresis(CBPiFermenterLogic):
async def run(self): async def run(self):
try: try:
self.heater_offset_min = float(self.props.get("HeaterOffsetOn", 0)) self.heater_offset_min = float(self.props.get("HeaterOffsetOn", 0.2))
self.heater_offset_max = float(self.props.get("HeaterOffsetOff", 0)) self.heater_offset_max = float(self.props.get("HeaterOffsetOff", 0))
self.cooler_offset_min = float(self.props.get("CoolerOffsetOn", 0)) self.cooler_offset_min = float(self.props.get("CoolerOffsetOn", 0.2))
self.cooler_offset_max = float(self.props.get("CoolerOffsetOff", 0)) self.cooler_offset_max = float(self.props.get("CoolerOffsetOff", 0))
self.heater_max_power = int(self.props.get("HeaterMaxPower", 100)) self.heater_max_power = int(self.props.get("HeaterMaxPower", 100))
self.cooler_max_power = int(self.props.get("CoolerMaxPower", 100)) self.cooler_max_power = int(self.props.get("CoolerMaxPower", 100))
@ -153,9 +153,9 @@ class FermenterSpundingHysteresis(CBPiFermenterLogic):
logging.info("No valve or pressure sensor defined") logging.info("No valve or pressure sensor defined")
async def temperature_control(self): async def temperature_control(self):
self.heater_offset_min = float(self.props.get("HeaterOffsetOn", 0)) self.heater_offset_min = float(self.props.get("HeaterOffsetOn", 0.2))
self.heater_offset_max = float(self.props.get("HeaterOffsetOff", 0)) self.heater_offset_max = float(self.props.get("HeaterOffsetOff", 0))
self.cooler_offset_min = float(self.props.get("CoolerOffsetOn", 0)) self.cooler_offset_min = float(self.props.get("CoolerOffsetOn", 0.2))
self.cooler_offset_max = float(self.props.get("CoolerOffsetOff", 0)) self.cooler_offset_max = float(self.props.get("CoolerOffsetOff", 0))
heater = self.cbpi.actor.find_by_id(self.heater) heater = self.cbpi.actor.find_by_id(self.heater)