-
-
Notifications
You must be signed in to change notification settings - Fork 6
index
github-actions edited this page Jun 9, 2026
·
4 revisions
Home Assistant Solar Energy Management (HSEM) — version 5.1.0
| Document | Description |
|---|---|
| Home | User-facing overview: features, FAQ, working modes, battery schedules, excess export, consumption sensors |
| Battery Charging Economics | How to calculate the minimum charging price for a battery schedule |
| Architecture Overview | System context, layered architecture, module map, planning pipeline |
| Planner Specification | Normative — all planner invariants, rules, and constraints |
| Planner Technical Guide | How the planner works with worked examples |
| Cost Function Math | Complete mathematical formulation of the 8-term cost function |
| Energy Accounting | Physical energy flow model, SoC simulation, efficiency math |
| Candidate Generation | How candidates are generated, assumptions, partial-SoC, MILP |
| Consumption Prediction | Weighted-average model, IQR outlier detection, spike suppression |
| Safety Modes | Degraded mode, read-only gate, write-verify applier, runtime resolver |
| Price Scaling | EDS price scaling, eds_share conversion factor |
| Services Reference | All 4 HSEM services with examples |
| Sensors Reference | Complete entity reference: all sensor, select, switch, number, and time entities |
| Dashboard Setup | Step-by-step ApexCharts dashboard with full YAML, layout reference, and troubleshooting |
| Config Flow Reference | Every config/options flow step and field |
| EV Charge Plan Setup | EV planned load configuration guide |
| EV Optimal Charging Template | Legacy Home Assistant template sensor for cost-optimal EV charging |
| Forecast Accuracy Tracking | Forecast vs actual tracking system |
| Huawei Entities | Canonical HA entity ID reference |
| Troubleshooting Guide | Diagnose and fix common problems: missing data, wrong prices, write failures, battery behaviour |
| Quality Checks | Static quality tools and CI configuration |
| File | Purpose |
|---|---|
planner-spec.md |
Read this first before touching any planner code |
planner-guide.md |
Worked examples for 6 common scenarios |
huawei_entities.md |
Verified HA entity IDs — never guess |
architecture-overview.md |
Module responsibility map and dependency graph |
-
Always read
planner-spec.mdbefore modifying planner code -
Always check
huawei_entities.mdbefore using a battery/inverter value - Use Mermaid for architecture and flow diagrams; do not use ASCII/Markdown box diagrams
- Use math equations (
$$ ... $$) for formulas rather than plain text/code-block formulas - Run
tox -e lintbefore every commit - Run
tox -e qualityafter lint - Run
pytest tests/before every PR - See
AGENTS.mdandCLAUDE.mdfor full development rules
- Home — User-facing overview: features, FAQ, working modes, battery schedules, excess export, consumption sensors
- Battery Charging Economics — How to calculate the minimum charging price for a battery schedule
- Architecture Overview — System context, layered architecture, module map, planning pipeline
- Planner Specification — Normative — all planner invariants, rules, and constraints
- Planner Technical Guide — How the planner works with worked examples
- Cost Function Math — Complete mathematical formulation of the 8-term cost function
- Energy Accounting — Physical energy flow model, SoC simulation, efficiency math
- Candidate Generation — How candidates are generated, assumptions, partial-SoC
- MILP Optimization — Full LP formulation, variable layout, constraints, and solver pipeline
- Consumption Prediction — Weighted-average model, IQR outlier detection, spike suppression
- Safety Modes — Degraded mode, read-only gate, write-verify applier, runtime resolver
- Price Scaling — EDS price scaling, eds_share conversion factor
- Services Reference — All 4 HSEM services with examples
- Sensors Reference — Complete entity reference: all sensor, select, switch, number, and time entities
- Dashboard Setup — Step-by-step ApexCharts dashboard with full YAML, layout reference, and troubleshooting
- Config Flow Reference — Every config/options flow step and field
- EV Charge Plan Setup — EV planned load configuration guide
- EV Surplus Charging Automation — Wire your physical EV charger (go-e, Easee, Zaptec) to follow HSEM surplus recommendations
- EV Optimal Charging Template — Legacy Home Assistant template sensor for cost-optimal EV charging
- Forecast Accuracy Tracking — Forecast vs actual tracking system
- Huawei Entities — Canonical HA entity ID reference
- Troubleshooting Guide — Diagnose and fix common problems: missing data, wrong prices, write failures, battery behaviour
- Quality Checks — Static quality tools and CI configuration