31.08.2021, 13:37
Hi all,
I wrote an event-base script, triggered by 1/1/1, to be executed only if even 1/1/2 is true.
group address/tag = 1/1/1 (trigger)
To avoid the script being retriggered during its execution I thought to use this code:
a = grp.getvalue(1/1/1)
b = grp.getvalue(1/1/2)
if (a and b) then
grp.update('1/1/2', 0)
....
....actions
....
grp.update('1/1/2', 1)
end
I have two questions:
1) is there a better way to avoid retriggering (i.e. enable/disable script)?
2) why I can see a telegram, on the ETS group monitor, in conjuction with each update instruction even if with grp.update()
"no KNX/TP telegram is sent, only internal value is changed"?
Thanks
I wrote an event-base script, triggered by 1/1/1, to be executed only if even 1/1/2 is true.
group address/tag = 1/1/1 (trigger)
To avoid the script being retriggered during its execution I thought to use this code:
a = grp.getvalue(1/1/1)
b = grp.getvalue(1/1/2)
if (a and b) then
grp.update('1/1/2', 0)
....
....actions
....
grp.update('1/1/2', 1)
end
I have two questions:
1) is there a better way to avoid retriggering (i.e. enable/disable script)?
2) why I can see a telegram, on the ETS group monitor, in conjuction with each update instruction even if with grp.update()
"no KNX/TP telegram is sent, only internal value is changed"?
Thanks