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: last group address tag
#5
(14.05.2020, 11:58)admin Wrote: If I understand you correctly you need something like this. It will write the received event value to all objects with mytag. The write part will not run if the value was sent by an event script to prevent loops.
Code:
if event.sender ~= 'se' then
  value = event.getvalue()
  grp.tag('mytag'):write(value)
end

Great thank you very much.
Could you explai me the meaning of event.sender ~= 'se'. What does it mean 'se'?
Thanks.
Reply


Messages In This Thread
RE: Event script: last group address tag - by Domoticatorino - 15.05.2020, 09:28

Forum Jump: