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
Alarms monitor variable values and trigger notifications when threshold conditions are met. Mas Agua supports:- Simple Alarms: Single condition on one variable
- Combined Alarms: Multiple conditions with logical operators (AND/OR)
- Time-Restricted Alarms: Active only during specified hours
- Repeat Intervals: Control notification frequency
Accessing Alarms
Navigate to Configuration > Alarmas to manage alarm configurations.Creating an Alarm
Define Primary Condition
Select the variable to monitor
Comparison operator:
>- Mayor que (Greater than)<- Menor que (Less than)=- Igual a (Equal to)>=- Mayor o igual (Greater than or equal)<=- Menor o igual (Less than or equal)entre- Entre (Between two values)
Threshold value
Second threshold value (only when
condition = entre)Configure Notification Settings
Repeat interval in minutes (e.g., 15, 30, 60)
Simple Alarm Example
Alert when tank level exceeds 5 meters:- Triggers when variable #42 > 5
- Repeats notification every 15 minutes while condition is true
- Active 24/7
Combined Alarms
Combined alarms evaluate two conditions with a logical operator.Enabling Combined Mode
- Toggle “Alarma combinada” switch
- Additional fields appear for secondary condition
Configuration Fields
Logical operator between conditions:
AND- Both conditions must be trueOR- Either condition can be true
Second variable to monitor
Comparison operator for second variable:
>,<,=,>=,<=
Threshold for second variable
Combined Alarm Example
Alert when pressure is high AND flow is low:- Variable #10 (pressure) > 8 bar AND
- Variable #15 (flow) < 100 m³/h
Time-Restricted Alarms
Limit alarms to specific operating hours.Example: Business Hours Only
- Only active between 8:00 AM and 6:00 PM
- Ignored outside this time range
- Repeats every 60 minutes during active hours
Managing Alarms
View Alarm Details
The alarm table displays:| Column | Description |
|---|---|
| Nombre | Alarm name |
| Condición | Condition expression (shows both conditions for combined alarms) |
| Tipo | Simple or Combinada |
| Repetir / Horario | Repeat interval and time range (if set) |
| Estado | Activo (active) or Inactivo (inactive) |
| Acciones | Edit and Activate/Deactivate buttons |
Activate/Deactivate Alarm
- Click Activar or Desactivar button
- Confirm the action
status field changes:
true= Active (monitoring enabled)false= Inactive (monitoring disabled)
Inactive alarms are retained in the system but do not trigger notifications.
Edit Alarm
- Click Editar button
- Modify configuration in the modal
- Click Guardar cambios
Condition Expressions
Simple Condition Display
Between Condition Display
Combined Condition Display
API Endpoints
| Endpoint | Method | Purpose |
|---|---|---|
/getAlarms | GET | Retrieve all alarms |
/createAlarm | POST | Create new alarm |
/updateAlarm/:id | PUT | Update existing alarm |
/changeStatusAlarm | PUT | Activate/deactivate alarm |
Data Structure
Complete alarm schema:Field Relationships
Simple Alarm
Required fields:name,id_influxvars,condition,value,repeatInterval
value2(only ifcondition='entre')hasTimeRange,startime,endtime(for time restriction)
Combined Alarm
Required fields (in addition to simple alarm fields):logicOperator,secondaryVariableId,secondaryCondition,secondaryValue
Validation Notes
Based on
src/modules/ConfigAlarms/components/ModalAlarm.jsx:110:- If
condition !== 'entre', thevalue2field is removed from payload - If
type === 'single', all secondary condition fields are removed - If
!hasTimeRange, time fields are removed from payload
Best Practices
Set Appropriate Repeat Intervals
Set Appropriate Repeat Intervals
- Critical alarms: 5-15 minutes
- Warning alarms: 30-60 minutes
- Informational: 120+ minutes
Use Combined Alarms for Complex Conditions
Use Combined Alarms for Complex Conditions
Example: High temperature AND low flow might indicate equipment failure.Single conditions might trigger false positives.
Time-Restrict Non-Critical Alarms
Time-Restrict Non-Critical Alarms
Prevent after-hours alerts for non-urgent conditions:
- Production monitoring (business hours only)
- Efficiency alerts (daytime operations)
Test Before Activating
Test Before Activating
- Create alarm in inactive state
- Verify variables exist and have data
- Test threshold values
- Activate when confirmed
See Also
- Variables - Configure variables to monitor
- Notifications - Set up notification channels

