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.

Range thermostat and common setpoint writer
#2
1. Resident script with interval 60(no need to run it more often) Change group addresses as needed. PS it will turn off below lower value too.

Code:
input =  grp.getvalue('1/1/1')
lower = grp.getvalue('1/1/2')
upper = grp.getvalue('1/1/3')

result = lower <= input and upper >= input
grp.checkwrite('1/1/4', result)
2. Create boolean object and create event script on it.  Change scriptname to the name of your resident script in point 1
Code:
value = event.getvalue()
if value then
script.enable('scriptname')
else
  script.disable('scriptname')
end
3. Event based script on your global setpoint. Add a tag to all setpoints you want to write to, not to the glogal setpoint object! Change TAG to the tag used in setpoint objects.
Code:
value = event.getvalue()
myobject = grp.tag('TAG')
myobject:write(value)
------------------------------
Ctrl+F5
Reply


Messages In This Thread
RE: Range thermostat and common setpoint writer - by Daniel - 23.03.2022, 16:47

Forum Jump: