20.10.2018, 16:46
(This post was last modified: 20.10.2018, 16:47 by Erwin van der Zwart.)
Hi,
I think you need something like this:
BR,
Erwin
I think you need something like this:
Code:
output = false
max_timestamp = os.time() - 7200 -- 2 hours in seconds
for _, object in ipairs(grp.tag('temperature')) do
if object.updatetime < max_timestamp then
output = true
break
end
end
grp.checkwrite('1/1/1', output)
BR,
Erwin