24.04.2024, 12:56
(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