31.01.2022, 08:46
In this case you can add checks that the event script was not triggered by another event script.
Code:
if event.sender ~= 'se' then
value = event.getvalue()
grp.checkwrite('1/1/1', value)
grp.checkwrite('1/1/2', value)
grp.checkwrite('1/1/3', value)
grp.checkwrite('1/1/4', value)
end
Code:
value = event.getvalue()
if value == true and event.sender ~= 'se' then
grp.write('2/1/1',true)
end