This commit is contained in:
@@ -138,6 +138,32 @@ final class WarmwasserRegler
|
||||
return $verfuegbareWaermeJ >= $erforderlicheWaermeJ;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array{0: float, 1: float}
|
||||
*/
|
||||
public static function legionellenTemperaturgrenzen(
|
||||
bool $aktiv,
|
||||
int $sekundenSeitAbschluss,
|
||||
int $minimalintervallTage,
|
||||
int $maximalintervallTage,
|
||||
float $mindesttemperatur,
|
||||
float $maximaltemperatur,
|
||||
float $legionellentemperatur
|
||||
): array {
|
||||
if (!$aktiv) {
|
||||
return [$mindesttemperatur, $maximaltemperatur];
|
||||
}
|
||||
|
||||
if ($sekundenSeitAbschluss >= $minimalintervallTage * 86400) {
|
||||
$maximaltemperatur = $legionellentemperatur;
|
||||
}
|
||||
if ($sekundenSeitAbschluss >= $maximalintervallTage * 86400) {
|
||||
$mindesttemperatur = $legionellentemperatur;
|
||||
}
|
||||
|
||||
return [$mindesttemperatur, $maximaltemperatur];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array{Zeitpunkt: int, Solltemperatur: float}|null
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user