(11.01.2024, 15:47)Erwin van der Zwart Wrote: Just create 2 scheduled script at the desired times and use this:
Code:-- UP
output = '1/1/1'
for i = grp.getvalue(output) + 1, 80, 1 do
grp.write(output, i)
os.sleep(3)
end
-- DOWN
output = '1/1/1'
for i = grp.getvalue(output) - 1, 0, -1 do
grp.write(output, i)
os.sleep(3)
end
Hi Erwin.
That worked wonders. Thank You.
(12.01.2024, 08:47)TimmiA Wrote:OK so i wanted to make it a bit more usable with changeable inputs.(11.01.2024, 15:47)Erwin van der Zwart Wrote: Just create 2 scheduled script at the desired times and use this:
Code:-- UP
output = '1/1/1'
for i = grp.getvalue(output) + 1, 80, 1 do
grp.write(output, i)
os.sleep(3)
end
-- DOWN
output = '1/1/1'
for i = grp.getvalue(output) - 1, 0, -1 do
grp.write(output, i)
os.sleep(3)
end
Hi Erwin.
That worked wonders. Thank You.
Can i get a rewrite on this?
-- get value of object with group address 1/1/1
value_sek = grp.getvalue('32/1/4')
value_niv = grp.getvalue('32/1/5')
value_end = grp.getvalue('32/1/3')
start = grp.getvalue('32/1/1')
if start == true then
-- UP
output = '32/1/2'
for i = grp.getvalue(output) 'value_niv', 'value_end', 1 do
grp.write(output, i)
os.sleep('value_sek')
end
Thank You in advance