Open
–
unacknowledged
Open conditions, thresholds and delivery channels
–
unacknowledged
–
–
WhatsApp is out of scope for this build. Alerts go to the log channel plus an optional generic
webhook (MP_ALERT_WEBHOOK_URL), signed with X-MeterPLN-Signature so the
receiver can verify authenticity. Any gateway that accepts JSON works: a Telegram bot bridge,
n8n, Home Assistant, or your own notifier.
| Rule | Condition | Severity | Cooldown | Config |
|---|---|---|---|---|
| device_offline | no upload for N × upload interval | warning → critical | 6 h | MP_DEVICE_OFFLINE_MULTIPLIER |
| daily_spike | day above ratio × median of 13 prior days | warning | 24 h | MP_ALERT_DAILY_SPIKE_RATIO |
| low_balance | projected quota empty within N days | warning → critical | 12 h | MP_ALERT_LOW_BALANCE_DAYS |
| quota_pace | projection exceeds monthly quota | info | 24 h | device.monthly_quota_kwh |
| ocr_failures | ≥ N unreadable images in 24 h | warning | 6 h | MP_ALERT_LOW_CONFIDENCE_COUNT |
| reading_stalled | queue items older than 2 h | warning | 3 h | MP_OCR_MAX_ATTEMPTS |