2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

94_PWM.pm : maxOffTime fix für P-Regler

git-svn-id: https://svn.fhem.de/fhem/trunk@23441 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jamesgo 2020-12-31 10:22:26 +00:00
parent 668839f1a6
commit 9a459157f7

View File

@ -37,6 +37,7 @@
# 30.12.19 GA fix access to ReadingsVal via $name (reported by stromer-12)
# 26.05.20 GA fix division by zero if minRoomsOn is >0 and roomsCounted is zero
# 22.12.20 GA fix maxOffTime for P calculation never activated
# 28.12.20 GA fix maxOffTime; maxOffTimeApply is now only set if no heating is required
##############################################
# $Id$
@ -902,10 +903,9 @@ PWM_CalcRoom(@)
return ("on", $newpulse, $cycletime, $actorV);
}
if ($newpulse == 0 or ($maxOffTimeApply > 0 and $room->{c_PID_useit} eq 0)) {
# ----------------
# check if maxOffTime protection is activated (attribute maxOffTimeIdlePeriod is set)
# $maxOffTImeApply will only be set if no heating is required
if ($maxOffTimeApply > 0 and ReadingsVal($name, "maxOffTimeCalculation", "off") eq "on") {
@ -924,6 +924,7 @@ PWM_CalcRoom(@)
}
}
if ($newpulse == 0) {
Log3 ($hash, 3, "PWM_CalcRoom $room->{NAME}: F11 stay off (0)");
return ("", $newpulse, $cycletime, $actorV);
}