What is the algorithm for sensor threshold alarm notification sending in Aranet PRO base station?
aranet-techsupport
Posted: 27.01.2021 23:14
Modified: 06.10.2024 13:28
There are 2 types of notifications for sensor threshold alarms: new alarm and returned to normal (acknowledgment that alarm has disappeared). Both types can be enabled or disabled for all sensors independently in the graphical user interface section Notifications --> SETTINGS.
However PRO base checks on new active alarms and their possible disappearance for each sensor exactly every 5 minutes according to the base internal clock time. So for example, PRO will do this process at 16:00, then 16:05, after that 16:10 and so on. Additionally it is possible for each individual sensor threshold alarm to set up notification delay: none, 10 minutes, 20 minutes, 30 minutes and so on till 24 hours. PRO base does both notification checkup processes independently: 1) for new active alarms and 2) for alarm disappearance.
Active alarm checkup:
1) Aranet PRO base station checks all sensors for their active threshold alarms. If there are no alarms, then the process is finished and nothing is sent.
2) If some alarm is active, then the PRO base station takes its occurrence time, adds notification delay and checks whether such calculated time moment should have happened in the last 5 minutes. If it does not fall in the last 5 minute period, then the process is finished and nothing is sent. If the calculated time moment is in the last 5 minute period, then the PRO base sends the alarm notification;
3) PRO base station repeats the process after the next 5 minutes.
Alarm disappearance checkup
Here notifications can be sent only for alarm disappearance events that have happened in the previous 5 minutes before the current checkup time. Additionally here PRO base will also check whether the active alarm calculated time for the disappeared alarm is before the current checkup time and only if so, then will send the notification.
Probably the operation of the algorithm could be better explained by giving a couple of examples:
1) Sensor threshold alarm with delay=None occurs at 16:01 and is active at 16:05 when new alarm notification will be sent for such alarm;
2) Sensor threshold alarm with delay=None occurs at 16:01, but disappears at 16:04. At 16:05 only returned to normal notification will be sent;
3) Sensor threshold alarm with delay=None occurs at 16:01 and disappears at 16:06. At 16:05 new alarm notification will be sent, at 16:10 – returned to normal notification will be sent;
4) Sensor threshold alarm with delay=None occurs at 16:01, disappears at 16:02, appears again at 16:03, disappears at 16:04. At 16:05 then 2 notifications about returned to normal will be sent;
5) Sensor threshold alarm with delay=10 minutes occurs at 16:01 and is active at 16:05, then at 16:05 nothing will be sent. Even if the alarm is still active on the next checkup at 16:10 - nothing will be sent. Only if the alarm will be active also at 16:15, then the new alarm notification will be sent;
6) Sensor threshold alarm with delay=10 minutes occurs at 16:01 and disappears at 16:02 – nothing will be sent not at 16:05, not at 16:10, not at 16:15;
7) Sensor threshold alarm with delay=10 minutes occurs at 16:01 and disappears at 16:06 - nothing will be sent not at 16:05, not at 16:10, not at 16:15;
8) Sensor threshold alarm with delay=10 minutes occurs at 16:01 and disappears at 16:11. At 16:05 and at 16:10 – no notifications will be sent, at 16:15 – notification about the return to normal will be sent;
9) Sensor threshold alarm with delay=10 minutes occurs at 16:01 and disappears at 16:16. At 16:05 and at 16:10 – no notifications will be sent, at 16:15 – a new alarm notification will be sent, but at 16:20 – a notification about the return to normal will be sent.
So with delay=None new alarm notification will be sent if the sensor threshold alarm is active and had appeared in the last 5 minutes, with delay=10 minutes new alarm notification will be sent if the threshold alarm is active and the alarm is at least 10 minutes long etc.
So with delay=None the return to normal notification will be sent if the alarm has disappeared in the last 5 minutes before checkup, with delay=10 minutes the return to normal notification will be sent if the alarm disappeared in the last 5 minutes before checkup and the alarm itself lasted at least 5:02 minutes.
So with delay=None new alarm notifications will be sent for all active alarms which appeared during the last 5 minutes in the moment of checkup, but returned to normal notification will be sent for all the alarms.
With delay=10 minutes new alarm notification will be sent for all active alarms which are at least 10 minutes long at the moment of checkup, but returned to normal notifications can be sent also for alarms not longer than 5:02 minutes.
You have to log in to reply.