18.04.2024, 05:51
Corrected version that will alert all objects that are below the threshold instead of only one:
Code:
message = ''
for i = 0, 30 do
addr = '35/1/' .. i
value = grp.getvalue(addr)
if value < 85 then
message = message .. 'Alert: ' .. addr .. ' = ' .. value .. '<br>\n'
end
end
if message == '' then
message = 'OK'
end