How a control cycle decides¶
Each loop is sense → decide → execute → verify.
- Inputs — telemetry, forecast, grid stats (digest stored on the decision).
- Reserve — rules compute solar-bridge vs autonomy floor; MPC or an operator pin may replace the target (
source:rules|mpc|operator), but an MPC pin cannot undercut the rules target. Risk uses the effective target. When adaptive load is on, both the autonomy floor and solar-bridge hour loads use a smoothed signal: max(30‑minute meanload_power, mean battery discharge), blended toward configuredcritical_load_wby priority order. Explanation fields includeeffective_critical_w,smoothed_load_w,smoothed_discharge_w, andadaptive_blend_a. - Grid charge — reactive/ramp cap chain sets enable + amps; the binding factor is the lowest ceiling.
- Shedding — SOC/grid policy; restores only for entities with a shed snapshot.
- Execute — HA writes when not shadow and not write-paused (
paused_grid_charge/paused_shedding). Planning still runs when optimization is “paused.” - Verify — Overview shows intended vs applied for reserve and grid charge; join history by
cycle_id.
If Overview disagrees with expected behavior, use Live forensics (admin) or MCP solar_explain_decision with the causality section — see mcp.md.