Demand Electrical — Maximum

+---------------------+------------------+ | Period | Peak Demand (kW) | +---------------------+------------------+ | 2026-04-01 to 07 | 142.3 | | 2026-03-25 to 31 | 138.9 | +---------------------+------------------+ | Condition | Handling | |-----------|----------| | Power loss | Persist buffer & peak to EEPROM. On restart, wait for full window before reliable demand. | | Incomplete window at startup | Use partial window average with a flag. | | Meter rollover | Detect by comparing readings; adjust delta with max meter reading. | | Communication delay | Timestamp each reading; interpolate if needed. | 9. Sample API / Interface (for system integration) // GET /api/max_demand/current

// POST /api/max_demand/config

# Calculate total kWh in complete window total_kwh = sum(self.buffer) demand_kw = total_kwh / (self.window_size / 60.0) maximum demand electrical

# Update peak if demand_kw > self.peak_demand_kw: self.peak_demand_kw = demand_kw self.peak_timestamp = now_timestamp | | Meter rollover | Detect by comparing

Two‑stage shedding + restoration.

"timestamp": "2026-04-14T10:15:00Z", "demand_kw": 134.7, "limit_kw": 150.0, "demand_percent": 89.8, "peak_kw": 148.2, "peak_timestamp": "2026-04-13T18:30:00Z", "warning_level": "none", "shedding_active": false Sample API / Interface (for system integration) //

We wish you a very Merry Christmas and a Happy New Year!

The entire team at MTS Systemtechnik thanks you for an exciting and successful year in 2025. We look forward to standing by your side in the new year 2026, brimming with fresh energy and new ideas. A note on our operating hours: Our company will be closed from 19/12/2025 until 06/01/2026. We will be back to our usual business hours from 07/01/2026. Your team at MTS Systemtechnik