Logic Machine Forum
Status of zones and subzones - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Status of zones and subzones (/showthread.php?tid=5375)



Status of zones and subzones - mai - 22.04.2024

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?


RE: Status of zones and subzones - Daniel - 22.04.2024

Use or gate
https://kb.logicmachine.net/scripting/logic-functions-central-statuses/


RE: Status of zones and subzones - mai - 24.04.2024

(22.04.2024, 07:22)Daniel Wrote: Use or gate
https://kb.logicmachine.net/scripting/logic-functions-central-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


RE: Status of zones and subzones - Daniel - 24.04.2024

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.