Alarm Dashboard trên Mobile
App VieLang Mobile cho phép xem và xử lý alarm trực tiếp trên điện thoại. Bạn có thể tùy chỉnh dashboard hiển thị khi user mở một alarm.
Cấu hình Alarm Dashboard
Trong VieLang IoT web:
Mobile Center > Alarm Dashboard tab:
Enable Alarm Dashboard: ✓
Dashboard: [Chọn dashboard]
State Entity Param: alarmId (truyền alarm ID vào dashboard)
Dashboard được chọn sẽ hiển thị trong app khi user tap vào alarm.
Thiết kế Dashboard cho Alarm
Dashboard dành cho alarm thường chứa:
1. Alarm Details Widget
Hiển thị thông tin cơ bản:
Alarm Type: High Temperature
Severity: CRITICAL 🔴
Status: ACTIVE (Unacknowledged)
Created: 2024-01-15 09:23:11
Device: Temperature-Sensor-01
Location: Building A, Room 301
2. Telemetry Chart
Biểu đồ nhiệt độ quanh thời điểm alarm:
Chart type: Line chart
Time range: Last 1 hour
Keys: temperature, threshold
Alarm markers: Hiển thị thời điểm alarm tạo/clear
3. Alarm Actions Widget
Nút hành động:
[Acknowledge] ← xác nhận đã biết
[Clear] ← xử lý xong
[Add Comment] ← ghi chú
4. Device Details
Thông tin thiết bị liên quan:
Model: DHT22
Firmware: v2.1.0
Location: GPS coordinates / text
Contact: Kỹ thuật viên phụ trách
Alarm List trên Mobile
Màn hình danh sách alarm mặc định:
🔴 High Temperature Sensor-01 2 min ago ACTIVE
🟠 Low Battery Gateway-02 15 min ago ACK
🟡 Signal Weak Sensor-05 1 hour ago ACTIVE
Lọc alarm:
- Theo severity (Critical, Major, Minor, Warning, Indeterminate)
- Theo trạng thái (Active, Acknowledged, Cleared)
- Theo entity
- Theo thời gian
Push Notification cho Alarm
Khi alarm mới được tạo → user nhận push notification:
📱 VieLang IoT
High Temperature Alert
Sensor-01 tại Building A báo 85°C
[Xem] [Bỏ qua]
Tap Xem → mở app và hiển thị Alarm Dashboard.
Cấu hình: Xem Push Notifications.
Alarm Comment trên Mobile
Thêm comment vào alarm:
Comment: "Đã cử kỹ thuật lên kiểm tra, ETA 30 phút"
Type: GENERAL / ACTION_REQUIRED / ESCALATION
Timeline:
09:23 ALARM CREATED system
09:25 ACKNOWLEDGED john@company.com
09:26 Comment: "Đã cử kỹ thuật..." john@company.com
10:05 CLEARED kythuatvien@company.com
Cấu hình Notification Rule
Để nhận alarm notification trên mobile, cần tạo rule:
Notification Center > Rules > Create:
Trigger: Alarm Created
Filter: Severity = CRITICAL, MAJOR
Template: [Alarm Template]
Recipients: [User groups]
Method: Mobile Push (FCM)
Alarm Severity Màu sắc
| Severity | Màu | Icon |
|---|---|---|
| CRITICAL | Đỏ đậm | 🔴 |
| MAJOR | Đỏ cam | 🟠 |
| MINOR | Vàng | 🟡 |
| WARNING | Xanh dương | 🔵 |
| INDETERMINATE | Xám | ⚪ |