21.12.2021, 08:40
hello
I want to use a schedule to turn off some offices lights, but offices might vary so I used script like this :
Is there any recommendation, while the table list will be more (around 50 items)
regards,
I want to use a schedule to turn off some offices lights, but offices might vary so I used script like this :
Is there any recommendation, while the table list will be more (around 50 items)
Code:
value = event.getvalue()
mytable = {67,37,36,16}
for _, mytab in ipairs(mytable) do
grp.write('1/0/'..mytab,value)
end
regards,
Best Regards,