Overview
The Notifications module configures event triggers and notification priorities for different device types. Notifications are organized hierarchically:- Device Type: Router, sensor, controller
- Brand: Equipment manufacturer
- Version: Firmware or model version
- Events: Specific events that trigger notifications
Accessing Notifications
Navigate to Configuration > Notificaciones to manage notification settings.Interface Structure
The notifications page displays expandable accordions organized by:Configuration Table
Each device/brand/version combination shows a table with configurable events.Table Columns
Fromsrc/modules/ConfigNotifications/utils/DataTable/ColumnsNot.jsx:
Name of the event (e.g., “Connection Timeout”, “Sensor Offline”)
Notification priority level (editable)
Enable/disable notifications for this event
Managing Notifications
Event Priority Handling
ThehandlePriority function (from src/modules/ConfigNotifications/components/Accordion.jsx:29) updates event configuration:
Event Enable/Disable
ThehandleCheck function tracks which events are enabled:
Saving Configuration
When clicking Guardar:- Confirmation dialog appears
- Modified events are grouped (47 records per group)
- Sources are generated for MQTT configuration
- Changes are posted to
/ConfigNotifyendpoint
Data Structure
Notification configuration structure:Example Configuration
API Endpoints
| Endpoint | Method | Purpose |
|---|---|---|
/ConfigNotify | GET | Retrieve notification configurations |
/ConfigNotify | POST | Save updated configurations |
Access Control
Theaccess prop (from src/modules/ConfigNotifications/views/index.jsx:13) controls:
- Edit permissions for priority and enabled fields
- Save button availability
Based on the code,
hasAccess is currently set to false by default. Contact your administrator to enable notification editing.MQTT Integration
Notifications integrate with MQTT for real-time event distribution:Source Generation
MQTT Publishing
Filtering and Search
The table component supports:- Row virtualization: Efficient rendering of large event lists
- Toolbar search: Find specific events quickly
- Compact density: More rows visible on screen
Loading States
Accordion Expansion
Clicking an accordion triggers:
- Loading indicator appears
- Event data loads (300ms delay)
- Table renders with data
Troubleshooting
Cannot Edit Events
Cannot Edit Events
Check
hasAccess permission. Contact administrator if editing is disabled.Changes Not Saving
Changes Not Saving
- Verify you clicked Guardar button
- Check for error messages in confirmation dialog
- Ensure you have edit permissions
Events Not Loading
Events Not Loading
- Check network connectivity
- Verify backend
/ConfigNotifyendpoint is accessible - Review browser console for errors
Best Practices
Priority Levels
Define a consistent priority scheme:
- Priority 1: Critical - Immediate attention required
- Priority 2: High - Action needed within hours
- Priority 3: Medium - Action needed within day
- Priority 4: Low - Informational only
Event Selection
Enable only relevant events:
- Avoid notification fatigue
- Focus on actionable events
- Disable verbose informational events in production
Testing
Test before deploying:
- Enable events in test environment
- Trigger test events
- Verify notifications arrive
- Adjust priorities based on actual urgency

