Add DAILY_MAINS_POWER: on mains, a mains loss turns the day red at once
A station is on mains when its BusVoltage mean over the 3 days before the day is >= 14.0 V (solar never exceeds 13.50 V on VERMONT; mains stays >= 14.08 V). On mains, the mains loss decides the day color instead of the state x trend matrix: red as soon as an hour falls under 13.4 V (top of the OCV plateau; mains-on hours stay >= 13.65 V, mains-off hours are 13.1-13.3 V). On MISSISSIPPI the day turns red 1-2 h after the loss instead of 29-40 h with the matrix; WEISSHORN and NORDEND (mains) raise no false alert, VERMONT (solar) is unchanged (D-043). The matrix drawio gets the mains case, the site figure a third panel, and the support notification and the client Energy block header show "On mains" / "Not on mains" / "Mains unknown". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
28ed86baba
commit
9177982de1
18 files changed
+359
-43
No files matched your search
@@ -14,7 +14,7 @@ paths:
|
||||
- **Contrat commun** :
|
||||
- `run(series) -> {analysis, rule, points: [{t, value, anomaly, facts}]}` ;
|
||||
- calcul **causal** : le point t n'utilise que les données ≤ t ;
|
||||
- `anomaly = None` signifie UNKNOWN (exception : `DAILY_BATTERY_STATE` en phase C, `DAILY_BATTERY_TREND`, `DAILY_LINK_STATE`, `DAILY_SIGNAL_STATE`, `DAILY_STORAGE_STATE` et `DAYS_UNTIL_STORAGE_FULL`, où `None` = pas de verdict ; l'UNKNOWN est dans `facts.state`, `facts.trend` ou `facts.filling`) ;
|
||||
- `anomaly = None` signifie UNKNOWN (exception : `DAILY_BATTERY_STATE` en phase C, `DAILY_BATTERY_TREND`, `DAILY_LINK_STATE`, `DAILY_SIGNAL_STATE`, `DAILY_STORAGE_STATE`, `DAYS_UNTIL_STORAGE_FULL` et `DAILY_MAINS_POWER`, où `None` = pas de verdict ; l'UNKNOWN est dans `facts.state`, `facts.trend`, `facts.filling` ou `facts.power`) ;
|
||||
- une analyse seule conclut au plus `consistent with`.
|
||||
- **Code de calcul** (`src/<domaine>/`) : bibliothèque standard uniquement et aucun import de `src/common/`, car il doit tourner sur la station. Plotly ne sert qu'aux graphiques, sur le poste de dev (`.venv`). Le chargement des CSV est dans `common.stations`.
|
||||
- **Constantes** : chacune a sa source, en commentaire dans le code et dans le tableau de la fiche. Aucun seuil sans source.
|
||||
|
||||
Reference in new issue
Block a user