27.08.2023, 11:16
(26.08.2023, 20:37)Erwin van der Zwart Wrote: You look for event.dst
I had some trouble implementing it, and I could not find any information in the docs, but I figured it out and it works, thank you
Code:
value = event.getvalue()
objekt = grp.find(event.dst)
if value==true and grp.getvalue('1/0/0') then
alert("ALARM " .. objekt.name .. " ALARM")
telegram("ALARM " .. objekt.name .. " ALARM")
end