17.01.2025, 13:47
Tag all your switch (T/S) objects but not the status FB and create event script triggered by your tag.
Execution mode - Fist instance only
Execution mode - Fist instance only
Code:
if event.sender ~= "se" then
value = event.getvalue()
status, found = string.gsub(grp.alias(event.dst), 'T/S', 'FB')
if grp.find(status) then
if value ~= grp.getvalue(status) then
os.sleep(0.5)
grp.write(event.dst, not value)
os.sleep(0.5)
grp.write(event.dst, value)
end
else
alert('Group address '..status ..' does not exist' )
end
end
------------------------------
Ctrl+F5
Ctrl+F5