This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Script for Open Window - thermostat protection mode
#2
Hi,

Here is a sample of a scheduler + twilight + overrule button logic so you can see how to build it.

The inputs 32/x/x are tagged and the script is event based attached to the same tag.

Code:
12345678910111213141516171819202122232425
klok = '32/1/1' schemer = '32/1/2' overbrug = '32/1/3' uitgang = '1/0/52' waarde_klok = grp.getvalue(klok) waarde_schemer = grp.getvalue(schemer) waarde_overbrug = grp.getvalue(overbrug) waarde_uitgang = grp.getvalue(uitgang) if waarde_overbrug == true then  if waarde_uitgang == false then    grp.write(uitgang, true)  end else  if waarde_klok == true and waarde_schemer == true then    if waarde_uitgang == false then      grp.write(uitgang, true)    end  else    if waarde_uitgang == true then      grp.write(uitgang, false)    end  end end

BR,

Erwin
Reply


Messages In This Thread
RE: Script for Open Window - thermostat protection mode - by Erwin van der Zwart - 09.06.2019, 22:09

Forum Jump: