07.01.2026, 21:16
Good evening
I'm totally new to scripting, and this is my first post.
I have made a little script to trigger a KNX GA in function of two conditions, with an off-delay of 180s. If a new "true" telegram arrives before the 180s are over, I want the delay to start again. I have searched but didn't find an answer.
This is the script so far:
Thanks in advance
Klaus
I'm totally new to scripting, and this is my first post.
I have made a little script to trigger a KNX GA in function of two conditions, with an off-delay of 180s. If a new "true" telegram arrives before the 180s are over, I want the delay to start again. I have searched but didn't find an answer.
This is the script so far:
Code:
value_1 = grp.getvalue ('2/0/4')
value_2 = grp.getvalue ('2/0/6')
if value_1 == true and value_2 == true then
grp.write ('2/0/7', true)
elseif value_1 == false or value_2 == false then
os.sleep(180)
grp.write ('2/0/7', false)
endKlaus