22.10.2018, 10:34
Hi all,
what is wrong with this script below? It is a hysteresis for umidity value. Hence hysteresis value is 3 %.
Claudio
what is wrong with this script below? It is a hysteresis for umidity value. Hence hysteresis value is 3 %.
Code:
value1 = grp.getvalue('2/4/4')
value2 = grp.getvalue('2/4/55')
isteresi = 3
if value1 >= value2 then
grp.write('0/0/6', true)
else if value2 >= value1 - isteresi
then
grp.write('0/0/6', false)
end
end
Claudio