26.04.2022, 11:35
Attach your scenes to 1 byte unsigned object with trigger value from 1 to 10. Create an event script for scene up/down (1 bit). Change scene trigger object (32/1/17) as needed.
Code:
out = '32/1/17'
up = event.getvalue()
nr = grp.getvalue(out)
if up then
nr = nr + 1
if nr > 10 then
nr = 1
end
else
nr = nr - 1
if nr < 1 then
nr = 10
end
end
grp.update(out, nr)