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
#1
I want to indicate the status of Zones and subzones.

For example, if I have zone A, which is made up of zones 1, 2 and 3. 

I have three general on/off buttons: for the entire zone A, and independently for each zone 1,2,3.

I want that if any of the subzones is activated, I want zone A to also be activated. I want the zone's general on button to be held down both in the subzone and in the zone.

Using the script, how could I do it?
Reply
#2
Use or gate
https://kb.logicmachine.net/scripting/lo...-statuses/
------------------------------
Ctrl+F5
Reply
#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
#4
Please use the example I sent you. There are examples for event script for this solution on the forum if you really need event, use search.
------------------------------
Ctrl+F5
Reply


Forum Jump: