mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
94_PWM.pm : fix access to reading maxOffTimeCalculation reported by stromer-12
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@20853 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c1f5e6c3d8
commit
799970eab1
@ -34,6 +34,7 @@
|
|||||||
# 05.02.18 GA fix typo overallHeatingSwitchThresholdTemup
|
# 05.02.18 GA fix typo overallHeatingSwitchThresholdTemup
|
||||||
# 19.11.18 GA add support for attribute maxOffTime
|
# 19.11.18 GA add support for attribute maxOffTime
|
||||||
# 05.03.19 GA fix reading maxOffTimeCalculation was set but not used
|
# 05.03.19 GA fix reading maxOffTimeCalculation was set but not used
|
||||||
|
# 30.12.19 GA fix access to ReadingsVal via $name (reported by stromer-12)
|
||||||
|
|
||||||
##############################################
|
##############################################
|
||||||
# $Id$
|
# $Id$
|
||||||
@ -901,7 +902,7 @@ PWM_CalcRoom(@)
|
|||||||
# ----------------
|
# ----------------
|
||||||
# check if maxOffTime protection is activated (attribute maxOffTimeIdlePeriod is set)
|
# check if maxOffTime protection is activated (attribute maxOffTimeIdlePeriod is set)
|
||||||
|
|
||||||
if ($maxOffTimeApply > 0 and ReadingsVal($hash, "maxOffTimeCalculation", "off") eq "on") {
|
if ($maxOffTimeApply > 0 and ReadingsVal($name, "maxOffTimeCalculation", "off") eq "on") {
|
||||||
|
|
||||||
## wz > 2:00
|
## wz > 2:00
|
||||||
if ($maxOffTimeAct >= $maxOffTime) {
|
if ($maxOffTimeAct >= $maxOffTime) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user