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.

Event Script BUS reset
#1
Hello

I have a problem, I have created various scripts on event for the alarms that send me e-mails and SMS, but in case of bus reset all the messages leave me, how can I delay sending messages in case of bus reset?

Inside the event scripts?

BR
Reply
#2
I'm not sure if I understand you correctly. If you want to check if object value is still the same after a short delay then you can use this script:
Code:
value = event.getvalue()

-- alarm triggered
if value == true then
  os.sleep(5)
  value = grp.getvalue(event.dst)

  -- alarm still triggered
  if value == true then
    -- do something here
  end
end
Reply


Forum Jump: