09.11.2021, 09:05
(10.04.2018, 10:50)Erwin van der Zwart Wrote: Hi,
You could try something like this:
BR,Code:addressbyteoutput = '32/1/1'
stepsize = 10
value = event.getvalue()
current = grp.getvalue(addressbyteoutput)
if value < 8 then
if current <= stepsize then
output = 0
if current ~= output then
grp.write(addressbyteoutput, output)
end
else
output = current - stepsize
if current ~= output then
grp.write(addressbyteoutput, output)
end
end
elseif value > 8 then
if current >= (100 - stepsize) then
output = 100
if current ~= output then
grp.write(addressbyteoutput, output)
end
else
output = current + stepsize
if current ~= output then
grp.write(addressbyteoutput, output)
end
end
end
Erwin
Hello. I'm trying this event script with a 4 bit object from KNX, but it only dimms with many "long-pressed" actions, and not mantaining the KNX button switch. Is it the problem on the KNX side or script's?