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
#6
Hi,

Just like the image shows the script is attached to a TAG (in this case "Heating") so event based.

All input objects are given this TAG "Heating" so if any window or heating is changing state, the scripts executes the logic. The windows are also given the TAG "Window" so the script can grab them all and check if any window is open. The output (protection object) should not have any TAG. (otherwise you create a permanent loop)

You can do this twice, One script for thermostat 1 and one script for thermostat 2. Change the TAG's to Heating1 and Heating2 and Window1 and Window2 and you have twice this logic. Make sure to change the line grp.tag('Window') to grp.tag('Window1') and in the other script grp.tag('Window2') and change the grp adresses in both scripts to the correct ones. (1/1/1 and 1/1/8)

BR,

Erwin
Reply


Messages In This Thread
RE: Script for Open Window - thermostat protection mode - by Erwin van der Zwart - 10.06.2019, 12:38

Forum Jump: