Mas Agua’s alarm system allows you to configure automated notifications when variables exceed thresholds or meet specific conditions. This guide covers creating, editing, and managing alarms.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CspmIT/mas-agua-front/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The alarm management system provides:- Simple alarms: Single variable condition monitoring
- Combined alarms: Multiple variable conditions with logic operators
- Time-based restrictions: Limit alarms to specific hours
- Repeat intervals: Control notification frequency
- Active/Inactive status: Enable or disable alarms without deleting
Accessing Alarm Management
Creating a Simple Alarm
Simple alarms monitor a single variable against a threshold.Configure Condition
Select the comparison operator from “Condición”:
- Mayor que (greater than): Triggers when variable exceeds value
- Menor que (less than): Triggers when variable falls below value
- Igual a (equals): Triggers when variable equals value
- Mayor o igual (greater than or equal): Triggers when variable is at or above value
- Menor o igual (less than or equal): Triggers when variable is at or below value
- Entre: Triggers when variable is within a range
Set Threshold Value
Enter the threshold value in the “Valor” field.If you selected “Entre”, also enter the upper bound in “Valor 2”.
Configure Repeat Interval
Enter the notification repeat interval in “Intervalo de repetición (minutos)”.
- 0: Alarm triggers only once when condition is met
- > 0: Alarm repeats every X minutes while condition persists
Creating a Combined Alarm
Combined alarms monitor two variables with a logic operator (AND/OR).Configure Primary Condition
Set up the first condition:
- Enter alarm name
- Select first variable
- Choose condition operator
- Set threshold value
Select Logic Operator
Choose how the conditions relate:
- AND (y): Both conditions must be true
- OR (o): Either condition can be true
Configure Secondary Condition
Set up the second condition:
- Variable secundaria: Select second variable
- Condición secundaria: Choose comparison operator
- Valor secundario: Enter threshold value
Combined Alarm Examples
AND Example: High temperature AND low flowAdding Time Restrictions
Limit alarms to specific time ranges to avoid nuisance alarms during expected conditions.Enable Time Range
In the alarm creation/edit modal, toggle “Restringir alarma a un rango horario” to ON.
The alarm will ONLY trigger during the specified time range. Outside these hours, the alarm is inactive even if conditions are met.
Time Restriction Use Cases
Business Hours Only- Start: 08:00, End: 17:00
- Avoid after-hours notifications for non-critical alarms
- Start: 22:00, End: 06:00
- Monitor conditions specific to overnight operations
- Start: 06:00, End: 09:00
- Alert on high usage during morning peak
Editing Alarms
Modify Settings
The modal opens pre-filled with current settings. Update any fields as needed:
- Change thresholds
- Modify repeat intervals
- Update time restrictions
- Switch between simple and combined types
Activating and Deactivating Alarms
Control alarm status without deleting configuration:Check Current Status
The Estado column shows:
- Activo (green): Alarm is enabled
- Inactivo (red): Alarm is disabled
Alarm Modal Components
The alarm configuration modal (src/modules/ConfigAlarms/components/ModalAlarm.jsx) includes:Basic Fields
- Nombre: Alarm identifier (required)
- Variable: Primary monitored variable (required)
- Condición: Comparison operator (required)
- Valor: Threshold value (required)
- Valor 2: Second threshold for “entre” condition
Advanced Options
- Alarma combinada: Switch to enable dual conditions
- Intervalo de repetición: Notification frequency in minutes
- Restringir alarma: Time-based activation toggle
Combined Alarm Fields
- Operador lógico: AND or OR
- Variable secundaria: Second monitored variable
- Condición secundaria: Second comparison operator
- Valor secundario: Second threshold value
Time Restriction Fields
- Hora de inicio: Range start time
- Hora de fin: Range end time
Understanding Alarm Conditions
Condition Types
Greater ThanRepeat Interval Behavior
The repeat interval controls notification frequency:- 0 minutes: Single notification when alarm triggers
- 5 minutes: Re-notify every 5 minutes while condition persists
- 60 minutes: Hourly notifications while alarm is active
The repeat timer starts when the alarm first triggers. If the condition clears and triggers again, the repeat interval resets.
Best Practices
Alarm Naming
Good examples:- “High Tank 1 Level - Check Inlet Valve”
- “Low Discharge Pressure - Verify Pump Operation”
- “High Temperature Building 3 - Check HVAC”
- “Alarm 1”
- “Test”
- “Variable 123 High”
Threshold Selection
- Set thresholds with appropriate margins from critical values
- Use warning alarms at conservative thresholds
- Use critical alarms at operational limits
- Avoid setting thresholds at normal operating points
Repeat Intervals
- Critical alarms: 5-15 minutes for urgent attention
- Warning alarms: 30-60 minutes to avoid notification fatigue
- Informational alarms: 0 minutes (notify once)
Time Restrictions
- Use for non-critical alarms during off-hours
- Don’t restrict safety-critical alarms
- Align with shift schedules and staffing
- Document why restrictions are in place
Combined Alarms
- Use AND for confirming conditions (reduces false positives)
- Use OR for redundant monitoring (catches any failure)
- Keep logic simple - complex conditions are hard to troubleshoot
- Test thoroughly before deploying to production
Troubleshooting
Alarm not triggering- Verify alarm status is “Activo” (Active)
- Check if current time is within time restriction (if configured)
- Verify variable is receiving data
- Test threshold values against current variable readings
- Check repeat interval hasn’t suppressed notification
- Increase repeat interval to reduce frequency
- Adjust threshold to avoid marginal conditions
- Add time restrictions to limit active hours
- Consider if alarm is truly necessary
- Selected variable doesn’t exist in database
- Variable may have been deleted
- Check variable configuration at
/config/vars
- Verify both variables are receiving data
- Test each condition independently
- Confirm logic operator (AND vs OR) is correct
- Check that thresholds are achievable
- Verify server time matches expected timezone
- Check that start/end times are in 24-hour format
- Ensure times don’t cross midnight (use two alarms if needed)
- Confirm “hasTimeRange” toggle is enabled
- Check that all required fields are filled
- Verify variable selections are valid
- Ensure threshold values are numbers
- Check browser console for validation errors
Alarm Data Structure
The system stores alarms with this structure (src/modules/ConfigAlarms/components/ModalAlarm.jsx:24-39):Integration with Notifications
Alarms integrate with the notification system:- Active alarms trigger notifications to configured channels
- Notification settings are managed at
/config/notifications - Alarm acknowledgment may be available depending on configuration
- Historical alarm events can be viewed in the alerts log at
/alert

