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.

Status of zones and subzones
#3
(22.04.2024, 07:22)Daniel Wrote: Use or gate
https://kb.logicmachine.net/scripting/lo...-statuses/

I have created an event script that is triggered by a tag.

What I want to do is that if any of the group addresses that have the label are ON, the status address 3/0/100 is set to ON.
If all addresses are OFF, let address 3/0/100 be set to OFF.


   if 'tag' == true then

       grp.write('3/0/100', true)
 
 else
 
      grp.write('3/0/100', false)
 
  end



but when I command an ON from any of the objects that have the label, the address 3/0/100 is always updated with an OFF
Reply


Messages In This Thread
Status of zones and subzones - by mai - 22.04.2024, 07:17
RE: Status of zones and subzones - by Daniel - 22.04.2024, 07:22
RE: Status of zones and subzones - by mai - 24.04.2024, 12:56
RE: Status of zones and subzones - by Daniel - 24.04.2024, 13:54

Forum Jump: