Add AS alert entity. Fix AS threshold crossed.

This commit is contained in:
Alfredo Cardigliano 2025-08-25 14:45:22 +02:00
parent fa35d9183a
commit ba382f7316
13 changed files with 174 additions and 17 deletions

View file

@ -307,6 +307,7 @@ end
-- ! @note false is also returned if an existing alert is found and refreshed
function alerts_api.trigger(entity_info, type_info, when, cur_alerts)
local json = require("dkjson")
if (not areAlertsEnabled()) then
return (false)
end