31.12.2022, 09:16
(31.12.2022, 08:21)Erwin van der Zwart Wrote: You could use a string object, but i would use 3 byte objects 1.2.3 and fetch the entered values with script to avoid invalid user input.
Limit the input values to the KNX standard on the start and middle object value in the object parameters.
Code:start = grp.getvalue('1/1/1')
middle = grp.getvalue('1/1/2')
ending = grp.getvalue('1/1/3')
dev = start .. '.' .. middle .. '.' .. ending
knxlib.ping(dev)
to confirm the reading would be like this? Thank you
Code:
start = grp.getvalue('32/3/43')
middle = grp.getvalue('32/3/44')
ending = grp.getvalue('32/3/45')
dev = start .. '.' .. middle .. '.' .. ending
knxlib.ping(dev)
if dev == false then
alert('Check FAIL')
grp.write('32/3/42 ', false)
elseif dev == true then
alert('Check OK')
grp.write('32/3/42 ', true)
end