<mxfile host="app.diagrams.net">
  <diagram id="SICFrEjqF4r-kjEoC5Ca" name="Page-1">
    <mxGraphModel dx="1071" dy="647" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />
        <mxCell id="100" parent="1" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontStyle=1;fontColor=#023d6b;" value="Fermax REF 3303 — Shelly Gen4 Final Installation Wiring" vertex="1">
          <mxGeometry height="40" width="769" x="200" y="20" as="geometry" />
        </mxCell>
        <mxCell id="200" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=11;fontStyle=1;verticalAlign=top;" value="FERMAX REF 3303&#xa;Terminal Block&#xa;18V DC" vertex="1">
          <mxGeometry height="250" width="160" x="40" y="88" as="geometry" />
        </mxCell>
        <mxCell id="201" parent="1" style="text;html=1;strokeColor=#FF0000;fillColor=#ffe6cc;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=10;fontStyle=1;" value="+ (18V power)" vertex="1">
          <mxGeometry height="30" width="120" x="50" y="140" as="geometry" />
        </mxCell>
        <mxCell id="202" parent="1" style="text;html=1;strokeColor=#666666;fillColor=#f5f5f5;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=10;fontStyle=1;fontColor=#333333;" value="− (GND)" vertex="1">
          <mxGeometry height="30" width="120" x="50" y="180" as="geometry" />
        </mxCell>
        <mxCell id="203" parent="1" style="text;html=1;strokeColor=#9673a6;fillColor=#e1d5e7;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=10;fontStyle=1;" value="4 (ring signal)" vertex="1">
          <mxGeometry height="30" width="120" x="50" y="220" as="geometry" />
        </mxCell>
        <mxCell id="204" parent="1" style="text;html=1;strokeColor=#d6b656;fillColor=#fff2cc;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=10;fontStyle=1;" value="1 (unlock)" vertex="1">
          <mxGeometry height="30" width="120" x="50" y="260" as="geometry" />
        </mxCell>
        <mxCell id="205" parent="1" style="text;html=1;strokeColor=#d6b656;fillColor=#fff2cc;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=10;fontStyle=1;" value="3 (unlock)" vertex="1">
          <mxGeometry height="30" width="120" x="50" y="300" as="geometry" />
        </mxCell>
        <mxCell id="300" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d6b656;fontSize=11;fontStyle=1;verticalAlign=top;" value="LM2596 Buck Converter&#xa;18V → 12V DC&#xa;(adjust trimpot to 12.0V)" vertex="1">
          <mxGeometry height="120" width="180" x="380" y="91" as="geometry" />
        </mxCell>
        <mxCell id="301" parent="1" style="text;html=1;strokeColor=#FF0000;fillColor=#ffe6cc;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=10;fontStyle=1;" value="VIN+" vertex="1">
          <mxGeometry height="30" width="60" x="390" y="141" as="geometry" />
        </mxCell>
        <mxCell id="302" parent="1" style="text;html=1;strokeColor=#666666;fillColor=#f5f5f5;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=10;fontStyle=1;fontColor=#333333;" value="VIN−" vertex="1">
          <mxGeometry height="25" width="60" x="390" y="176" as="geometry" />
        </mxCell>
        <mxCell id="303" parent="1" style="text;html=1;strokeColor=#d6b656;fillColor=#fff2cc;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=10;fontStyle=1;" value="VOUT+" vertex="1">
          <mxGeometry height="30" width="60" x="490" y="141" as="geometry" />
        </mxCell>
        <mxCell id="304" parent="1" style="text;html=1;strokeColor=#666666;fillColor=#f5f5f5;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=10;fontStyle=1;fontColor=#333333;" value="VOUT−" vertex="1">
          <mxGeometry height="25" width="60" x="490" y="176" as="geometry" />
        </mxCell>
        <mxCell id="400" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;fontStyle=1;verticalAlign=top;" value="Shelly 1 Gen4&#xa;Wi-Fi Smart Relay&#xa;Button · Detached · Auto-OFF 1s" vertex="1">
          <mxGeometry height="360" width="200" x="900" y="80" as="geometry" />
        </mxCell>
        <mxCell id="401" parent="1" style="text;html=1;strokeColor=#d6b656;fillColor=#fff2cc;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=10;fontStyle=1;" value="O (relay out)" vertex="1">
          <mxGeometry height="30" width="120" x="910" y="260" as="geometry" />
        </mxCell>
        <mxCell id="402" parent="1" style="text;html=1;strokeColor=#d6b656;fillColor=#fff2cc;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=10;fontStyle=1;" value="I (relay in)" vertex="1">
          <mxGeometry height="30" width="120" x="910" y="300" as="geometry" />
        </mxCell>
        <mxCell id="403" parent="1" style="text;html=1;strokeColor=#9673a6;fillColor=#e1d5e7;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=10;fontStyle=1;" value="SW (input)" vertex="1">
          <mxGeometry height="30" width="120" x="910" y="384" as="geometry" />
        </mxCell>
        <mxCell id="404" parent="1" style="text;html=1;strokeColor=#d6b656;fillColor=#fff2cc;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=10;fontStyle=1;" value="12V (power +)" vertex="1">
          <mxGeometry height="30" width="120" x="910" y="140" as="geometry" />
        </mxCell>
        <mxCell id="405" parent="1" style="text;html=1;strokeColor=#666666;fillColor=#f5f5f5;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=10;fontStyle=1;fontColor=#333333;" value="L (power − / GND)" vertex="1">
          <mxGeometry height="30" width="120" x="910" y="176" as="geometry" />
        </mxCell>
        <mxCell id="500" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=11;fontStyle=1;" value="1N4007 Diode&lt;br&gt;→| stripe faces PC817&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;" vertex="1">
          <mxGeometry height="70" width="180" x="320" y="570" as="geometry" />
        </mxCell>
        <mxCell id="501" parent="1" style="text;html=1;strokeColor=#b85450;fillColor=#f8cecc;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=9;" value="Anode&#xa;(no stripe)" vertex="1">
          <mxGeometry height="25" width="70" x="330" y="610" as="geometry" />
        </mxCell>
        <mxCell id="502" parent="1" style="text;html=1;strokeColor=#b85450;fillColor=#f8cecc;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=9;" value="Cathode&#xa;(stripe)" vertex="1">
          <mxGeometry height="25" width="60" x="430" y="610" as="geometry" />
        </mxCell>
        <mxCell id="600" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;fontStyle=1;verticalAlign=top;" value="PC817 Optocoupler Module&#xa;2-Channel · 3.6-30V input&#xa;LED lights when ring detected" vertex="1">
          <mxGeometry height="140" width="200" x="540" y="450" as="geometry" />
        </mxCell>
        <mxCell id="601" parent="1" style="text;html=1;strokeColor=#9673a6;fillColor=#e1d5e7;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=10;fontStyle=1;" value="IN1+" vertex="1">
          <mxGeometry height="30" width="60" x="550" y="550" as="geometry" />
        </mxCell>
        <mxCell id="602" parent="1" style="text;html=1;strokeColor=#666666;fillColor=#f5f5f5;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=10;fontStyle=1;fontColor=#333333;" value="GND in" vertex="1">
          <mxGeometry height="30" width="60" x="550" y="505" as="geometry" />
        </mxCell>
        <mxCell id="603" parent="1" style="text;html=1;strokeColor=#9673a6;fillColor=#e1d5e7;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=10;fontStyle=1;" value="V1" vertex="1">
          <mxGeometry height="30" width="60" x="670" y="550" as="geometry" />
        </mxCell>
        <mxCell id="604" parent="1" style="text;html=1;strokeColor=#666666;fillColor=#f5f5f5;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontSize=10;fontStyle=1;fontColor=#333333;" value="GND out" vertex="1">
          <mxGeometry height="30" width="60" x="670" y="505" as="geometry" />
        </mxCell>
        <mxCell id="700" edge="1" parent="1" source="201" style="edgeStyle=orthogonalEdgeStyle;html=1;strokeColor=#FF0000;strokeWidth=2;fontColor=#FF0000;fontStyle=1;fontSize=9;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="301" value="18V+">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="701" edge="1" parent="1" source="202" style="edgeStyle=orthogonalEdgeStyle;html=1;strokeColor=#666666;strokeWidth=2;fontColor=#666666;fontStyle=1;fontSize=9;dashed=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="302" value="GND">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="702" edge="1" parent="1" source="303" style="edgeStyle=orthogonalEdgeStyle;html=1;strokeColor=#d6b656;strokeWidth=2;fontColor=#d6b656;fontStyle=1;fontSize=9;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="404" value="12V">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="703" edge="1" parent="1" source="304" style="edgeStyle=orthogonalEdgeStyle;html=1;strokeColor=#666666;strokeWidth=2;fontColor=#666666;fontStyle=1;fontSize=9;dashed=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="405" value="GND">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="704" edge="1" parent="1" source="204" style="edgeStyle=orthogonalEdgeStyle;html=1;strokeColor=#FF8000;strokeWidth=2;fontColor=#FF8000;fontStyle=1;fontSize=9;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="401" value="unlock 1">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="705" edge="1" parent="1" source="205" style="edgeStyle=orthogonalEdgeStyle;html=1;strokeColor=#FFA500;strokeWidth=2;fontColor=#FFA500;fontStyle=1;fontSize=9;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="402" value="unlock 2">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="706" edge="1" parent="1" source="203" style="edgeStyle=orthogonalEdgeStyle;html=1;strokeColor=#9673a6;strokeWidth=2;fontColor=#9673a6;fontStyle=1;fontSize=9;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="501" value="ring signal">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="707" edge="1" parent="1" source="502" style="edgeStyle=orthogonalEdgeStyle;html=1;strokeColor=#9673a6;strokeWidth=2;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="601" value="">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="708" edge="1" parent="1" source="202" style="edgeStyle=orthogonalEdgeStyle;html=1;strokeColor=#666666;strokeWidth=2;fontColor=#666666;fontStyle=1;fontSize=9;dashed=1;exitX=1;exitY=0.75;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="602" value="GND shared">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="170" y="210" />
              <mxPoint x="340" y="210" />
              <mxPoint x="340" y="520" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="709" edge="1" parent="1" source="603" style="edgeStyle=orthogonalEdgeStyle;html=1;strokeColor=#6c8ebf;strokeWidth=2;fontColor=#6c8ebf;fontStyle=1;fontSize=9;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" target="403" value="SW signal">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="970" y="565" />
            </Array>
          </mxGeometry>
        </mxCell>
        <mxCell id="710" edge="1" parent="1" source="604" style="edgeStyle=orthogonalEdgeStyle;html=1;strokeColor=#666666;strokeWidth=2;fontColor=#666666;fontStyle=1;fontSize=9;dashed=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="405" value="GND">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="790" y="520" />
              <mxPoint x="790" y="200" />
              <mxPoint x="910" y="200" />
            </Array>
          </mxGeometry>
        </mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
