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:
maximeandClaude Opus 5.5 committed 2026-10-13 17:22:16 +02:00
1 parent 28ed86baba
commit 9177982de1
18 files changed
+359 -43

No files matched your search

+58
View File
@@ -182,6 +182,64 @@
<mxCell id="TGVZEM_AKJCTuzFCSYRQ-4" parent="TGVZEM_AKJCTuzFCSYRQ-1" style="text;strokeColor=none;fillColor=light-dark(#FF0000,#FF0000);fontColor=#ffffff;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" value="Rouge : non soutenable" vertex="1">
<mxGeometry height="30" width="230" y="90" as="geometry" />
</mxCell>
<mxCell id="MAINS-legend" parent="1" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" value="Alimentation (DAILY_MAINS_POWER, 3 jours avant J)" vertex="1">
<mxGeometry height="90" width="330" x="820" y="200" as="geometry" />
</mxCell>
<mxCell id="MAINS-legend-i0" parent="MAINS-legend" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;fontSize=11;" value="&lt;font color=&quot;#2a78d6&quot;&gt;● MAINS&lt;/font&gt; : sur secteur (moyenne des 72 h ≥ 14,0 V)" vertex="1">
<mxGeometry height="30" width="330" y="30" as="geometry" />
</mxCell>
<mxCell id="MAINS-legend-i1" parent="MAINS-legend" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;fontSize=11;" value="&lt;font color=&quot;#8c8c8c&quot;&gt;○ NOT_MAINS&lt;/font&gt; : sur batterie (ou statut inconnu)" vertex="1">
<mxGeometry height="30" width="330" y="60" as="geometry" />
</mxCell>
<mxCell id="NOT-MAINS-title" parent="1" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;fontSize=12;" value="&lt;b&gt;&lt;font color=&quot;#8c8c8c&quot;&gt;○ NOT_MAINS&lt;/font&gt;&lt;/b&gt; (sur batterie, ou statut inconnu) : matrice état × tendance" vertex="1">
<mxGeometry height="30" width="760" x="40" y="236" as="geometry" />
</mxCell>
<mxCell id="MAINS-title" parent="1" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;fontSize=12;" value="&lt;b&gt;&lt;font color=&quot;#2a78d6&quot;&gt;● MAINS&lt;/font&gt;&lt;/b&gt; (sur secteur) : la perte du secteur décide, sans la matrice (D-043)" vertex="1">
<mxGeometry height="30" width="760" x="40" y="560" as="geometry" />
</mxCell>
<mxCell id="MAINS-table" parent="1" style="shape=table;startSize=0;container=1;collapsible=0;childLayout=tableLayout;fixedHeader=1;fontColor=#ffffff;strokeColor=light-dark(#FFFFFF,#FFFFFF);" value="" vertex="1">
<mxGeometry height="102" width="417" x="40" y="592" as="geometry" />
</mxCell>
<mxCell id="MAINS-table-r0" parent="MAINS-table" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fixedHeader=1;" value="" vertex="1">
<mxGeometry height="19" width="417" as="geometry" />
</mxCell>
<mxCell id="MAINS-table-r0-c0" parent="MAINS-table-r0" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;pointerEvents=1;fontStyle=1;align=center;verticalAlign=middle;fillColor=#f5f5f5;" value="" vertex="1">
<mxGeometry height="19" width="75" as="geometry">
<mxRectangle height="19" width="75" as="alternateBounds" />
</mxGeometry>
</mxCell>
<mxCell id="MAINS-table-r0-c1" parent="MAINS-table-r0" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;pointerEvents=1;fontStyle=1;align=center;verticalAlign=middle;fillColor=#f5f5f5;" value="aucune heure &amp;lt; 13,4 V" vertex="1">
<mxGeometry height="19" width="171" x="75" as="geometry">
<mxRectangle height="19" width="171" as="alternateBounds" />
</mxGeometry>
</mxCell>
<mxCell id="MAINS-table-r0-c2" parent="MAINS-table-r0" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;pointerEvents=1;fontStyle=1;align=center;verticalAlign=middle;fillColor=#f5f5f5;" value="une heure &amp;lt; 13,4 V" vertex="1">
<mxGeometry height="19" width="171" x="246" as="geometry">
<mxRectangle height="19" width="171" as="alternateBounds" />
</mxGeometry>
</mxCell>
<mxCell id="MAINS-table-r1" parent="MAINS-table" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fixedHeader=1;" value="" vertex="1">
<mxGeometry height="83" width="417" y="19" as="geometry" />
</mxCell>
<mxCell id="MAINS-table-r1-c0" parent="MAINS-table-r1" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;pointerEvents=1;fontStyle=1;align=center;verticalAlign=middle;fillColor=#f5f5f5;" value="&lt;font color=&quot;#2a78d6&quot;&gt;● MAINS&lt;/font&gt;" vertex="1">
<mxGeometry height="83" width="75" as="geometry">
<mxRectangle height="83" width="75" as="alternateBounds" />
</mxGeometry>
</mxCell>
<UserObject label="" tooltip="Vert : le secteur a tenu la batterie pleine toute la journée : soutenable ce jour-là.&#xa;&#xa;Sur secteur, toutes les heures mesurées de J ≥ 13,4 V.&#xa;Lecture : cas sain d&#39;une station sur secteur.&#xa;WEISSHORN : 52 j, NORDEND : 97 j, FLORIDA : 174 j, MISSISSIPPI : 150 j." id="MAINS-table-r1-c1">
<mxCell parent="MAINS-table-r1" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;pointerEvents=1;align=center;verticalAlign=middle;fontStyle=1;spacing=6;fontSize=11;fillColor=light-dark(#33FF33,#33FF33);fontColor=#ffffff;" vertex="1">
<mxGeometry height="83" width="171" x="75" as="geometry">
<mxRectangle height="83" width="171" as="alternateBounds" />
</mxGeometry>
</mxCell>
</UserObject>
<UserObject label="" tooltip="Rouge : la station a perdu le secteur : la batterie seule l&#39;alimente (UPS), coupure en 15 à 46 h (D-004).&#xa;&#xa;Sur secteur, au moins une heure mesurée de J &lt; 13,4 V.&#xa;Lecture : consistent with une perte du secteur ; rouge 1 à 2 h après la perte, sans attendre J+1 (29 à 40 h avec la matrice).&#xa;MISSISSIPPI : 10 j ; FLORIDA : 1 j (10/07, 2 h à 13,0 V)." id="MAINS-table-r1-c2">
<mxCell parent="MAINS-table-r1" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;pointerEvents=1;align=center;verticalAlign=middle;fontStyle=1;spacing=6;fontSize=11;fillColor=light-dark(#FF0000,#FF0000);fontColor=#ffffff;" vertex="1">
<mxGeometry height="83" width="171" x="246" as="geometry">
<mxRectangle height="83" width="171" as="alternateBounds" />
</mxGeometry>
</mxCell>
</UserObject>
</root>
</mxGraphModel>
</diagram>