05.10.2017, 13:30
First, create an event script attached to your setpoint and feedback objects (replace 1/1/1 and 1/1/2 with your group addresses):
Then, create a resident script with 30 or 60 second sleep time (or you can use a scheduled script that runs every minute):
Code:
setpoint = grp.getvalue('1/1/1')
feedback = grp.getvalue('1/1/2')
value = setpoint * feedback / 100
if value <= 10 then
storage.set('timer', os.time())
end
Then, create a resident script with 30 or 60 second sleep time (or you can use a scheduled script that runs every minute):
Code:
delta = os.time() - storage.get('timer', 0)
value = delta >= 1800
grp.checkwrite('14/2/1', value)