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.

Long loop run for water pump !
#9
In this case you can add checks that the event script was not triggered by another event script.
Code:
if event.sender ~= 'se' then
  value = event.getvalue()
  grp.checkwrite('1/1/1', value)
  grp.checkwrite('1/1/2', value)
  grp.checkwrite('1/1/3', value)
  grp.checkwrite('1/1/4', value)
end

Code:
value = event.getvalue()
if value == true and event.sender ~= 'se' then
  grp.write('2/1/1',true)
end
Reply


Messages In This Thread
RE: Long loop run for water pump ! - by admin - 24.01.2022, 08:25
RE: Long loop run for water pump ! - by admin - 28.01.2022, 12:08
RE: Long loop run for water pump ! - by admin - 31.01.2022, 08:46

Forum Jump: