I found that it is this cyclic script (15s) which increases the CPU load from <1 to 5...6... !!!
Code:
obj_surv_generale = "20/1/20"
lst_grp = {
{"20/1/1",""},
{"20/1/2",""},
{"20/1/3",""},
{"20/1/4",""},
{"20/1/5",""},
{"20/1/6",""},
{"20/1/7",""},
{"20/1/8",""},
{"20/1/9",""},
{"20/1/10",""},
{"20/1/11",""}
}
nbr_alarme = 0
for i,grp_tbl in ipairs(lst_grp) do
obj_alarme = grp_tbl[1]
-- log(i, obj_alarme)
val_alarme = grp.getvalue(obj_alarme)
if val_alarme == true then
nbr_alarme = nbr_alarme +1
end
end
if nbr_alarme == 0 then
grp.write(obj_surv_generale,false)
else
grp.write(obj_surv_generale,true)
end