X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=bin%2Fkhatus_controller;h=411589d6c7ef3fb526c3a421a46f31cf3889d41c;hb=361523eb88b8912410b5776d70edf9dfa7043fc8;hp=2b4fb0703199f14319184404502d32e8bb481b30;hpb=d4c26c516d337209df097ea0764b19e3b7d3563e;p=khatus.git diff --git a/bin/khatus_controller b/bin/khatus_controller index 2b4fb07..411589d 100755 --- a/bin/khatus_controller +++ b/bin/khatus_controller @@ -145,6 +145,10 @@ function alert_check_energy( from, dbg, state, remaining, subj, body) { subj = "Energy_Low" body = sprintf("%d%% Get the charger.", remaining) alert_trigger_hi(from, subj, body) + } else if (remaining < 20) { + subj = "Energy_Low" + body = sprintf("%d%% Get the charger.", remaining) + alert_trigger_med(from, subj, body) } else if (remaining < 50) { if (!state__alerts__energy__notified_bellow_half) { state__alerts__energy__notified_bellow_half = 1