17.01.2025, 12:10
I'm working with Simon on the project.
We've come to the solution that we want to make a script for each switch to make a script to check, whether the feedback is updated or not.
Something like this:
We do have 750 switch objects that we need to apply this script to. Is there a relative easy workaround with this?
And sorry for my straight forward scripting... Still learning
Thanks!
We've come to the solution that we want to make a script for each switch to make a script to check, whether the feedback is updated or not.
Something like this:
Code:
value = event.getvalue()
if value == false then
revalue = true
elseif value == true then
revalue = false
end
os.sleep(0.5)
FB = grp.getvalue('1/0/1')
if FB ~= value then
grp.write('1/0/0', revalue)
os.sleep(0.5)
grp.write('1/0/0', value)
end
We do have 750 switch objects that we need to apply this script to. Is there a relative easy workaround with this?
And sorry for my straight forward scripting... Still learning
Thanks!