15.10.2020, 14:08
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