[{"data":1,"prerenderedAt":1351},["ShallowReactive",2],{"post-\u002Fblog\u002F2026\u002Femolecad-wiring-diagrams-from-yaml":3},{"id":4,"title":5,"body":6,"categories":1325,"date":1329,"description":1330,"extension":1331,"image":1332,"meta":1333,"navigation":1334,"path":1335,"seo":1336,"stem":1337,"tags":1338,"__hash__":1350},"blog\u002Fblog\u002F2026\u002Femolecad-wiring-diagrams-from-yaml.md","EMoleCAD – Wiring Diagrams From YAML, Drawn by a Mole",{"type":7,"value":8,"toc":1309},"minimark",[9,39,48,51,59,66,88,93,201,204,208,219,222,238,244,247,631,645,649,660,666,676,682,685,693,696,701,751,755,776,780,783,1009,1012,1016,1023,1160,1170,1174,1185,1189,1206,1223,1227,1287,1295,1298,1302,1305],[10,11,13,14],"div",{"style":12},"display: flex; justify-content: flex-end; margin: 0 0 1rem;","\n  ",[15,16,23,24,23,35,13],"a",{"href":17,"target":18,"rel":19,"style":22},"https:\u002F\u002Fgithub.com\u002Fthe78mole\u002FEMoleCAD","_blank",[20,21],"noopener","noreferrer","display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; color: inherit; font-size: 0.9rem; padding: 0.35rem 0.7rem; border: 1px solid #d0d7de; border-radius: 0.5rem;","\n    ",[25,26,31],"svg",{"height":27,"width":27,"viewBox":28,"fill":29,"ariaHidden":30},"18","0 0 16 16","currentColor","true",[32,33],"path",{"d":34},"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z",[36,37,38],"span",{},"the78mole\u002FEMoleCAD",[40,41,42,43,47],"p",{},"Every burrow has a fuse box, and every fuse box eventually needs a drawing. Mine got one the hard way: a wallbox, a heat pump, a PV inverter with a battery, a smart meter gateway and a §14a control box all want to be registered with the grid operator, and every one of those forms asks for the same thing – an ",[44,45,46],"em",{},"Übersichtsschaltplan",", the single-line overview diagram of the installation.",[40,49,50],{},"The professionals draw these in dedicated electrical CAD packages. They are good, they are Windows-only, and they are priced for companies that bill by the hour. I bill by the earthworm. Drawing the same thing in a generic diagram editor works, but every new circuit means pushing thirty boxes around, renumbering half of them, and hoping the table at the bottom still matches the picture.",[40,52,53,54,58],{},"So I did what moles do: I dug a new tunnel. The result is ",[55,56,57],"strong",{},"EMoleCAD",", a browser tool that takes a structured description of an installation and draws the schematic for you.",[40,60,61],{},[62,63],"img",{"alt":64,"src":65},"EMoleCAD with the graphical editor on the left and the generated single-line diagram on the right","\u002Fimages\u002Fblog\u002F2026\u002F11\u002Femolecad-editor.png",[40,67,68,69,77,78,83,84,87],{},"It runs at ",[55,70,71],{},[15,72,76],{"href":73,"rel":74},"https:\u002F\u002Fthe78mole.github.io\u002FEMoleCAD\u002F",[75],"nofollow","the78mole.github.io\u002FEMoleCAD",", and there is an offline single-file build (",[15,79,82],{"href":80,"rel":81},"https:\u002F\u002Fthe78mole.github.io\u002FEMoleCAD\u002Femolecad.html",[75],"emolecad.html",") you can download and open without any server. The source is MIT-licensed on GitHub at ",[15,85,38],{"href":17,"rel":86},[75],". Fair warning for surface-dwellers: the user interface is German, because the whole thing is aimed at the German grid and its paperwork.",[89,90,92],"h2",{"id":91},"the-stack-at-a-glance","The Stack at a Glance",[94,95,96,112],"table",{},[97,98,99],"thead",{},[100,101,102,106,109],"tr",{},[103,104,105],"th",{},"Layer",[103,107,108],{},"Choice",[103,110,111],{},"Why",[113,114,115,127,143,154,168,179,190],"tbody",{},[100,116,117,121,124],{},[118,119,120],"td",{},"UI",[118,122,123],{},"React 19 + Vite",[118,125,126],{},"Fast to build, static output for GitHub Pages",[100,128,129,132,140],{},[118,130,131],{},"Graphical editor",[118,133,134,135,139],{},"React Flow (",[136,137,138],"code",{},"@xyflow\u002Freact",")",[118,141,142],{},"Node-RED-style boxes and wires for free",[100,144,145,148,151],{},[118,146,147],{},"Text editor",[118,149,150],{},"CodeMirror with YAML mode",[118,152,153],{},"Syntax highlighting, folding, good keyboard feel",[100,155,156,159,165],{},[118,157,158],{},"Model",[118,160,161,162],{},"Plain TypeScript + ",[136,163,164],{},"yaml",[118,166,167],{},"One data model, two views on it",[100,169,170,173,176],{},[118,171,172],{},"Schematic",[118,174,175],{},"Hand-written SVG generator",[118,177,178],{},"Full control over symbols and layout",[100,180,181,184,187],{},[118,182,183],{},"Export",[118,185,186],{},"jsPDF + svg2pdf.js",[118,188,189],{},"Vector PDF straight from the SVG",[100,191,192,195,198],{},[118,193,194],{},"Storage",[118,196,197],{},"File System Access API, localStorage",[118,199,200],{},"Save into the open file, draw.io style",[40,202,203],{},"No backend. Nothing leaves the browser.",[89,205,207],{"id":206},"one-model-two-views","One Model, Two Views",[40,209,210,211,214,215,218],{},"The core idea is that the installation is a ",[55,212,213],{},"tree",". Every component has an ID and a ",[136,216,217],{},"quelle"," (source) – the component directly upstream of it. The house connection box feeds a busbar, the busbar feeds the main switch, which feeds the meter, which feeds the distribution, which feeds an RCD, which feeds a circuit breaker, which feeds the kitchen sockets. Write that down and the drawing follows.",[40,220,221],{},"You can write it down in two ways, and both edit the same model:",[223,224,225,232],"ul",{},[226,227,228,231],"li",{},[55,229,230],{},"Graphical editor:"," drag building blocks from the library onto the canvas and wire the bottom port (outgoing) of one block to the top port (incoming) of the next. Double-clicking a library entry attaches the new block straight to the selected one.",[226,233,234,237],{},[55,235,236],{},"YAML:"," the same data as text. Changes apply as you type, and if you produce a syntax error the last valid state stays on screen instead of the drawing blowing up.",[40,239,240],{},[62,241],{"alt":242,"src":243},"The YAML view of the example project next to the generated plan","\u002Fimages\u002Fblog\u002F2026\u002F11\u002Femolecad-yaml.png",[40,245,246],{},"A minimal project looks like this:",[248,249,253],"pre",{"className":250,"code":251,"language":164,"meta":252,"style":252},"language-yaml shiki shiki-themes github-dark","projekt:\n  titel: Einfamilienhaus Muster\n  ersteller: Elektro Maulwurf\n  zeichnungsnummer: EFH-001\nnetz:\n  form: TN-C-S\n  spannung: 230\u002F400 V\nkomponenten:\n  - id: XD1\n    typ: hausanschluss\n    params: { sicherung: 63, sicherungstyp: NH00 gG }\n  - id: FB1\n    typ: rcd\n    quelle: XD1\n    params: { nennstrom: 40, fehlerstrom: 30, rcdtyp: A }\n  - id: FC5\n    typ: ls\n    quelle: FB1\n    phase: L1\n    params: { charakteristik: B, nennstrom: 16 }\n  - id: EA1\n    typ: verbraucher\n    name: Licht EG\n    quelle: FC5\n    params: { verwendung: Beleuchtung }\n    kabel: { typ: NYM-J, querschnitt: \"3x1,5\", laenge: 12 }\n","",[136,254,255,267,280,291,302,310,321,332,340,354,365,397,409,419,429,466,478,488,497,508,534,546,556,567,576,593],{"__ignoreMap":252},[36,256,259,263],{"class":257,"line":258},"line",1,[36,260,262],{"class":261},"s4JwU","projekt",[36,264,266],{"class":265},"s95oV",":\n",[36,268,270,273,276],{"class":257,"line":269},2,[36,271,272],{"class":261},"  titel",[36,274,275],{"class":265},": ",[36,277,279],{"class":278},"sU2Wk","Einfamilienhaus Muster\n",[36,281,283,286,288],{"class":257,"line":282},3,[36,284,285],{"class":261},"  ersteller",[36,287,275],{"class":265},[36,289,290],{"class":278},"Elektro Maulwurf\n",[36,292,294,297,299],{"class":257,"line":293},4,[36,295,296],{"class":261},"  zeichnungsnummer",[36,298,275],{"class":265},[36,300,301],{"class":278},"EFH-001\n",[36,303,305,308],{"class":257,"line":304},5,[36,306,307],{"class":261},"netz",[36,309,266],{"class":265},[36,311,313,316,318],{"class":257,"line":312},6,[36,314,315],{"class":261},"  form",[36,317,275],{"class":265},[36,319,320],{"class":278},"TN-C-S\n",[36,322,324,327,329],{"class":257,"line":323},7,[36,325,326],{"class":261},"  spannung",[36,328,275],{"class":265},[36,330,331],{"class":278},"230\u002F400 V\n",[36,333,335,338],{"class":257,"line":334},8,[36,336,337],{"class":261},"komponenten",[36,339,266],{"class":265},[36,341,343,346,349,351],{"class":257,"line":342},9,[36,344,345],{"class":265},"  - ",[36,347,348],{"class":261},"id",[36,350,275],{"class":265},[36,352,353],{"class":278},"XD1\n",[36,355,357,360,362],{"class":257,"line":356},10,[36,358,359],{"class":261},"    typ",[36,361,275],{"class":265},[36,363,364],{"class":278},"hausanschluss\n",[36,366,368,371,374,377,379,383,386,389,391,394],{"class":257,"line":367},11,[36,369,370],{"class":261},"    params",[36,372,373],{"class":265},": { ",[36,375,376],{"class":261},"sicherung",[36,378,275],{"class":265},[36,380,382],{"class":381},"sDLfK","63",[36,384,385],{"class":265},", ",[36,387,388],{"class":261},"sicherungstyp",[36,390,275],{"class":265},[36,392,393],{"class":278},"NH00 gG",[36,395,396],{"class":265}," }\n",[36,398,400,402,404,406],{"class":257,"line":399},12,[36,401,345],{"class":265},[36,403,348],{"class":261},[36,405,275],{"class":265},[36,407,408],{"class":278},"FB1\n",[36,410,412,414,416],{"class":257,"line":411},13,[36,413,359],{"class":261},[36,415,275],{"class":265},[36,417,418],{"class":278},"rcd\n",[36,420,422,425,427],{"class":257,"line":421},14,[36,423,424],{"class":261},"    quelle",[36,426,275],{"class":265},[36,428,353],{"class":278},[36,430,432,434,436,439,441,444,446,449,451,454,456,459,461,464],{"class":257,"line":431},15,[36,433,370],{"class":261},[36,435,373],{"class":265},[36,437,438],{"class":261},"nennstrom",[36,440,275],{"class":265},[36,442,443],{"class":381},"40",[36,445,385],{"class":265},[36,447,448],{"class":261},"fehlerstrom",[36,450,275],{"class":265},[36,452,453],{"class":381},"30",[36,455,385],{"class":265},[36,457,458],{"class":261},"rcdtyp",[36,460,275],{"class":265},[36,462,463],{"class":278},"A",[36,465,396],{"class":265},[36,467,469,471,473,475],{"class":257,"line":468},16,[36,470,345],{"class":265},[36,472,348],{"class":261},[36,474,275],{"class":265},[36,476,477],{"class":278},"FC5\n",[36,479,481,483,485],{"class":257,"line":480},17,[36,482,359],{"class":261},[36,484,275],{"class":265},[36,486,487],{"class":278},"ls\n",[36,489,491,493,495],{"class":257,"line":490},18,[36,492,424],{"class":261},[36,494,275],{"class":265},[36,496,408],{"class":278},[36,498,500,503,505],{"class":257,"line":499},19,[36,501,502],{"class":261},"    phase",[36,504,275],{"class":265},[36,506,507],{"class":278},"L1\n",[36,509,511,513,515,518,520,523,525,527,529,532],{"class":257,"line":510},20,[36,512,370],{"class":261},[36,514,373],{"class":265},[36,516,517],{"class":261},"charakteristik",[36,519,275],{"class":265},[36,521,522],{"class":278},"B",[36,524,385],{"class":265},[36,526,438],{"class":261},[36,528,275],{"class":265},[36,530,531],{"class":381},"16",[36,533,396],{"class":265},[36,535,537,539,541,543],{"class":257,"line":536},21,[36,538,345],{"class":265},[36,540,348],{"class":261},[36,542,275],{"class":265},[36,544,545],{"class":278},"EA1\n",[36,547,549,551,553],{"class":257,"line":548},22,[36,550,359],{"class":261},[36,552,275],{"class":265},[36,554,555],{"class":278},"verbraucher\n",[36,557,559,562,564],{"class":257,"line":558},23,[36,560,561],{"class":261},"    name",[36,563,275],{"class":265},[36,565,566],{"class":278},"Licht EG\n",[36,568,570,572,574],{"class":257,"line":569},24,[36,571,424],{"class":261},[36,573,275],{"class":265},[36,575,477],{"class":278},[36,577,579,581,583,586,588,591],{"class":257,"line":578},25,[36,580,370],{"class":261},[36,582,373],{"class":265},[36,584,585],{"class":261},"verwendung",[36,587,275],{"class":265},[36,589,590],{"class":278},"Beleuchtung",[36,592,396],{"class":265},[36,594,596,599,601,604,606,609,611,614,616,619,621,624,626,629],{"class":257,"line":595},26,[36,597,598],{"class":261},"    kabel",[36,600,373],{"class":265},[36,602,603],{"class":261},"typ",[36,605,275],{"class":265},[36,607,608],{"class":278},"NYM-J",[36,610,385],{"class":265},[36,612,613],{"class":261},"querschnitt",[36,615,275],{"class":265},[36,617,618],{"class":278},"\"3x1,5\"",[36,620,385],{"class":265},[36,622,623],{"class":261},"laenge",[36,625,275],{"class":265},[36,627,628],{"class":381},"12",[36,630,396],{"class":265},[40,632,633,634,636,637,640,641,644],{},"The ",[136,635,262],{}," block fills the title block of the drawing sheet. Components can also carry ",[136,638,639],{},"produkt"," (manufacturer and part number), which ends up in the circuit table. If you leave out ",[136,642,643],{},"pole",", the tool picks the default for the type and automatically goes single-phase underneath a single-phase feed.",[89,646,648],{"id":647},"single-line-and-all-pole-from-the-same-data","Single-Line and All-Pole From the Same Data",[40,650,651,652,655,656,659],{},"The plan view on the right renders the model in two flavours. The ",[55,653,654],{},"single-line diagram"," (",[44,657,658],{},"einpolig",") is what grid operators usually want: the feed-in on the left, one column per outgoing circuit, and a circuit table underneath listing protection device, RCD, connection, cable type, cross-section, length and ratings for every circuit.",[40,661,662],{},[62,663],{"alt":664,"src":665},"Single-line overview diagram of the example house with title block and circuit table","\u002Fimages\u002Fblog\u002F2026\u002F11\u002Femolecad-einpolig.png",[40,667,668,669,655,672,675],{},"Flip the switch to ",[55,670,671],{},"all-pole",[44,673,674],{},"allpolig",") and the same model becomes a full circuit diagram with every conductor drawn separately and colour-coded: L1 brown, L2 black, L3 grey, N blue, PE green, and red\u002Fblue for DC on the PV and battery side.",[40,677,678],{},[62,679],{"alt":680,"src":681},"All-pole circuit diagram with colour-coded L1, L2, L3, N and PE conductors","\u002Fimages\u002Fblog\u002F2026\u002F11\u002Femolecad-allpolig.png",[40,683,684],{},"There are sheet templates for DIN A3 and A4 landscape with a full title block, compact variants, and a frameless version for the screen. Export goes to SVG, PDF, or a single PDF with both plans – which is exactly the attachment the grid operator's portal asks for.",[89,686,688,689,692],{"id":687},"the-bits-that-make-it-an-installers-tool","The Bits That Make It an ",[44,690,691],{},"Installer's"," Tool",[40,694,695],{},"Drawing boxes is easy. What took the digging was teaching the tool how a German meter cabinet is actually built.",[697,698,700],"h3",{"id":699},"device-designations-by-the-book","Device designations by the book",[40,702,703,704,275,707,710,711,714,715,718,719,722,723,726,727,730,731,734,735,738,739,742,743,746,747,750],{},"Every component gets its letter code according to ",[55,705,706],{},"DIN EN IEC 81346-2:2019",[136,708,709],{},"FC"," for circuit breakers and fuses, ",[136,712,713],{},"FB"," for RCDs, ",[136,716,717],{},"FA"," for surge protection, ",[136,720,721],{},"PG"," for the meter, ",[136,724,725],{},"QB"," for disconnectors, ",[136,728,729],{},"TB"," for the inverter, ",[136,732,733],{},"KE"," for the smart meter gateway and control box. Consumers get their code from their purpose – ",[136,736,737],{},"XD"," for sockets, ",[136,740,741],{},"EA"," for lighting, ",[136,744,745],{},"EB"," for heating and cookers, ",[136,748,749],{},"MA"," for motors. Conductor symbols in the single-line plan follow IEC 60617.",[697,752,754],{"id":753},"renumbering-that-respects-your-fixed-ids","Renumbering that respects your fixed IDs",[40,756,757,758,761,762,385,765,768,769,655,772,775],{},"Add a circuit in the middle and the numbering is off. ",[55,759,760],{},"Neu nummerieren"," (renumber) walks the editor row by row, top to bottom, left to right, and hands out ",[136,763,764],{},"FC1",[136,766,767],{},"FC2",", … per letter code. Sources and data links are renamed along with it. Components marked with ",[44,770,771],{},"ID festschreiben",[136,773,774],{},"fest: true"," in YAML, shown with a 🔒 in the editor) keep their ID, and that ID is reserved – nobody else gets it.",[697,777,779],{"id":778},"the-unmetered-area","The unmetered area",[40,781,782],{},"The part in front of the meter is where it gets interesting. Components hanging off the house connection or the feed-in chain – surge protection, a 6 A breaker for the smart meter gateway and the control box – are drawn as parallel taps next to the feed-in instead of as regular outgoing circuits:",[248,784,786],{"className":250,"code":785,"language":164,"meta":252,"style":252},"  - { id: WD1, typ: sammelschiene, quelle: XD1 }\n  - { id: FA1, typ: spd,   quelle: WD1 }\n  - { id: FC1, typ: sls,   quelle: WD1 }   # on to meter PG1, then main terminal XD2\n  - { id: FC2, typ: ls,    quelle: WD1, phase: L1, params: { charakteristik: B, nennstrom: 6 } }\n  - { id: KE1, typ: smgw,      quelle: FC2 }\n  - { id: KE2, typ: steuerbox, quelle: FC2 }\n",[136,787,788,820,851,885,948,979],{"__ignoreMap":252},[36,789,790,793,795,797,800,802,804,806,809,811,813,815,818],{"class":257,"line":258},[36,791,792],{"class":265},"  - { ",[36,794,348],{"class":261},[36,796,275],{"class":265},[36,798,799],{"class":278},"WD1",[36,801,385],{"class":265},[36,803,603],{"class":261},[36,805,275],{"class":265},[36,807,808],{"class":278},"sammelschiene",[36,810,385],{"class":265},[36,812,217],{"class":261},[36,814,275],{"class":265},[36,816,817],{"class":278},"XD1",[36,819,396],{"class":265},[36,821,822,824,826,828,831,833,835,837,840,843,845,847,849],{"class":257,"line":269},[36,823,792],{"class":265},[36,825,348],{"class":261},[36,827,275],{"class":265},[36,829,830],{"class":278},"FA1",[36,832,385],{"class":265},[36,834,603],{"class":261},[36,836,275],{"class":265},[36,838,839],{"class":278},"spd",[36,841,842],{"class":265},",   ",[36,844,217],{"class":261},[36,846,275],{"class":265},[36,848,799],{"class":278},[36,850,396],{"class":265},[36,852,853,855,857,859,861,863,865,867,870,872,874,876,878,881],{"class":257,"line":282},[36,854,792],{"class":265},[36,856,348],{"class":261},[36,858,275],{"class":265},[36,860,764],{"class":278},[36,862,385],{"class":265},[36,864,603],{"class":261},[36,866,275],{"class":265},[36,868,869],{"class":278},"sls",[36,871,842],{"class":265},[36,873,217],{"class":261},[36,875,275],{"class":265},[36,877,799],{"class":278},[36,879,880],{"class":265}," }   ",[36,882,884],{"class":883},"sAwPA","# on to meter PG1, then main terminal XD2\n",[36,886,887,889,891,893,895,897,899,901,904,907,909,911,913,915,918,920,923,925,928,930,932,934,936,938,940,942,945],{"class":257,"line":293},[36,888,792],{"class":265},[36,890,348],{"class":261},[36,892,275],{"class":265},[36,894,767],{"class":278},[36,896,385],{"class":265},[36,898,603],{"class":261},[36,900,275],{"class":265},[36,902,903],{"class":278},"ls",[36,905,906],{"class":265},",    ",[36,908,217],{"class":261},[36,910,275],{"class":265},[36,912,799],{"class":278},[36,914,385],{"class":265},[36,916,917],{"class":261},"phase",[36,919,275],{"class":265},[36,921,922],{"class":278},"L1",[36,924,385],{"class":265},[36,926,927],{"class":261},"params",[36,929,373],{"class":265},[36,931,517],{"class":261},[36,933,275],{"class":265},[36,935,522],{"class":278},[36,937,385],{"class":265},[36,939,438],{"class":261},[36,941,275],{"class":265},[36,943,944],{"class":381},"6",[36,946,947],{"class":265}," } }\n",[36,949,950,952,954,956,959,961,963,965,968,971,973,975,977],{"class":257,"line":304},[36,951,792],{"class":265},[36,953,348],{"class":261},[36,955,275],{"class":265},[36,957,958],{"class":278},"KE1",[36,960,385],{"class":265},[36,962,603],{"class":261},[36,964,275],{"class":265},[36,966,967],{"class":278},"smgw",[36,969,970],{"class":265},",      ",[36,972,217],{"class":261},[36,974,275],{"class":265},[36,976,767],{"class":278},[36,978,396],{"class":265},[36,980,981,983,985,987,990,992,994,996,999,1001,1003,1005,1007],{"class":257,"line":312},[36,982,792],{"class":265},[36,984,348],{"class":261},[36,986,275],{"class":265},[36,988,989],{"class":278},"KE2",[36,991,385],{"class":265},[36,993,603],{"class":261},[36,995,275],{"class":265},[36,997,998],{"class":278},"steuerbox",[36,1000,385],{"class":265},[36,1002,217],{"class":261},[36,1004,275],{"class":265},[36,1006,767],{"class":278},[36,1008,396],{"class":265},[40,1010,1011],{},"The feed-in chain runs busbar → selective main circuit breaker → meter → main conductor terminal; the first real branch afterwards becomes the main busbar of the distribution.",[697,1013,1015],{"id":1014},"data-links-and-equipotential-bonding","Data links and equipotential bonding",[40,1017,1018,1019,1022],{},"Since §14a EnWG, a meter cabinet also carries data. Communication links live separately in ",[136,1020,1021],{},"datenverbindungen"," and are drawn as dash-dotted violet lines – LMN between gateway and meter, CLS between control box and gateway, Modbus to the inverter, and so on. In the editor, communication-capable blocks have violet ports on their sides.",[248,1024,1026],{"className":250,"code":1025,"language":164,"meta":252,"style":252},"datenverbindungen:\n  - { von: KE1, nach: PG1, art: LMN }\n  - { von: KE2, nach: KE1, art: CLS }\npotentialausgleich:\n  - { von: PAS1, nach: XD1, querschnitt: 16 }\n  - { von: PAS1, nach: FA1, querschnitt: 16 }\n",[136,1027,1028,1034,1067,1096,1103,1132],{"__ignoreMap":252},[36,1029,1030,1032],{"class":257,"line":258},[36,1031,1021],{"class":261},[36,1033,266],{"class":265},[36,1035,1036,1038,1041,1043,1045,1047,1050,1052,1055,1057,1060,1062,1065],{"class":257,"line":269},[36,1037,792],{"class":265},[36,1039,1040],{"class":261},"von",[36,1042,275],{"class":265},[36,1044,958],{"class":278},[36,1046,385],{"class":265},[36,1048,1049],{"class":261},"nach",[36,1051,275],{"class":265},[36,1053,1054],{"class":278},"PG1",[36,1056,385],{"class":265},[36,1058,1059],{"class":261},"art",[36,1061,275],{"class":265},[36,1063,1064],{"class":278},"LMN",[36,1066,396],{"class":265},[36,1068,1069,1071,1073,1075,1077,1079,1081,1083,1085,1087,1089,1091,1094],{"class":257,"line":282},[36,1070,792],{"class":265},[36,1072,1040],{"class":261},[36,1074,275],{"class":265},[36,1076,989],{"class":278},[36,1078,385],{"class":265},[36,1080,1049],{"class":261},[36,1082,275],{"class":265},[36,1084,958],{"class":278},[36,1086,385],{"class":265},[36,1088,1059],{"class":261},[36,1090,275],{"class":265},[36,1092,1093],{"class":278},"CLS",[36,1095,396],{"class":265},[36,1097,1098,1101],{"class":257,"line":293},[36,1099,1100],{"class":261},"potentialausgleich",[36,1102,266],{"class":265},[36,1104,1105,1107,1109,1111,1114,1116,1118,1120,1122,1124,1126,1128,1130],{"class":257,"line":304},[36,1106,792],{"class":265},[36,1108,1040],{"class":261},[36,1110,275],{"class":265},[36,1112,1113],{"class":278},"PAS1",[36,1115,385],{"class":265},[36,1117,1049],{"class":261},[36,1119,275],{"class":265},[36,1121,817],{"class":278},[36,1123,385],{"class":265},[36,1125,613],{"class":261},[36,1127,275],{"class":265},[36,1129,531],{"class":381},[36,1131,396],{"class":265},[36,1133,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1154,1156,1158],{"class":257,"line":312},[36,1135,792],{"class":265},[36,1137,1040],{"class":261},[36,1139,275],{"class":265},[36,1141,1113],{"class":278},[36,1143,385],{"class":265},[36,1145,1049],{"class":261},[36,1147,275],{"class":265},[36,1149,830],{"class":278},[36,1151,385],{"class":265},[36,1153,613],{"class":261},[36,1155,275],{"class":265},[36,1157,531],{"class":381},[36,1159,396],{"class":265},[40,1161,1162,1163,1166,1167,1169],{},"The equipotential bonding bar (",[136,1164,1165],{},"typ: pas",") has no source at all. Its connections are listed under ",[136,1168,1100],{}," and drawn in green with their cross-section. At the surge arrester the bonding line replaces the plain earth symbol.",[697,1171,1173],{"id":1172},"checks-while-you-type","Checks while you type",[40,1175,1176,1177,1180,1181,1184],{},"The badge in the top right says ",[44,1178,1179],{},"Keine Probleme"," (no problems) as long as the model is sane. Otherwise it complains about missing sources, loops, duplicate IDs, phase conflicts – and about ",[55,1182,1183],{},"unbalanced load above 4.6 kVA"," between the phases from single-phase consumers, which is the classic limit the grid operators care about.",[89,1186,1188],{"id":1187},"saving-like-a-desktop-app","Saving Like a Desktop App",[40,1190,633,1191,1194,1195,1198,1199,1198,1202,1205],{},[55,1192,1193],{},"Datei"," menu has Open, Save, Save as and Recent files, with the usual ",[136,1196,1197],{},"Ctrl+O"," \u002F ",[136,1200,1201],{},"Ctrl+S",[136,1203,1204],{},"Ctrl+Shift+S",". In Chrome, Edge and Opera the tool writes straight back into the file you opened, using the File System Access API – the same trick draw.io uses. The file handle survives a page reload. Firefox and Safari don't support that API, so there Save falls back to downloading the YAML. Unsaved changes get a ● next to the file name, closing the tab warns you, and a draft always sits in localStorage in case the browser crashes.",[40,1207,1208,1209,385,1212,385,1215,1218,1219,1222],{},"The storage layer is pluggable: each location implements ",[136,1210,1211],{},"oeffnen",[136,1213,1214],{},"laden",[136,1216,1217],{},"speichern"," and ",[136,1220,1221],{},"speichernUnter",". Local files are done; GitHub, Nextcloud via WebDAV and Google Drive are the next tunnels to dig.",[89,1224,1226],{"id":1225},"try-it","Try It",[248,1228,1232],{"className":1229,"code":1230,"language":1231,"meta":252,"style":252},"language-bash shiki shiki-themes github-dark","git clone https:\u002F\u002Fgithub.com\u002Fthe78mole\u002FEMoleCAD.git\ncd EMoleCAD\nnpm install\nnpm run dev          # http:\u002F\u002Flocalhost:5173\nnpm run build:single # one self-contained HTML file in dist-single\u002F\n","bash",[136,1233,1234,1246,1254,1262,1275],{"__ignoreMap":252},[36,1235,1236,1240,1243],{"class":257,"line":258},[36,1237,1239],{"class":1238},"svObZ","git",[36,1241,1242],{"class":278}," clone",[36,1244,1245],{"class":278}," https:\u002F\u002Fgithub.com\u002Fthe78mole\u002FEMoleCAD.git\n",[36,1247,1248,1251],{"class":257,"line":269},[36,1249,1250],{"class":381},"cd",[36,1252,1253],{"class":278}," EMoleCAD\n",[36,1255,1256,1259],{"class":257,"line":282},[36,1257,1258],{"class":1238},"npm",[36,1260,1261],{"class":278}," install\n",[36,1263,1264,1266,1269,1272],{"class":257,"line":293},[36,1265,1258],{"class":1238},[36,1267,1268],{"class":278}," run",[36,1270,1271],{"class":278}," dev",[36,1273,1274],{"class":883},"          # http:\u002F\u002Flocalhost:5173\n",[36,1276,1277,1279,1281,1284],{"class":257,"line":304},[36,1278,1258],{"class":1238},[36,1280,1268],{"class":278},[36,1282,1283],{"class":278}," build:single",[36,1285,1286],{"class":883}," # one self-contained HTML file in dist-single\u002F\n",[40,1288,1289,1290,1294],{},"Or just open the ",[15,1291,1293],{"href":73,"rel":1292},[75],"hosted version",", which starts with the example house shown above.",[40,1296,1297],{},"One serious note before the mole goes back underground: EMoleCAD is a drawing aid. The plans it produces don't replace planning and testing by a qualified electrician, and they don't replace talking to your grid operator.",[89,1299,1301],{"id":1300},"whats-next","What's Next",[40,1303,1304],{},"The shopping list is long: more storage backends, multi-sheet plans for bigger installations with sub-distributions, and more symbols for whatever the next §14a device turns out to be. If you draw meter cabinets for a living and something in the plan looks wrong to you, open an issue – I'd rather be corrected by a surface-dweller with a VDE certificate than by an inspector with a red pen.",[1306,1307,1308],"style",{},"html pre.shiki code .s4JwU, html code.shiki .s4JwU{--shiki-default:#85E89D}html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}",{"title":252,"searchDepth":269,"depth":269,"links":1310},[1311,1312,1313,1314,1322,1323,1324],{"id":91,"depth":269,"text":92},{"id":206,"depth":269,"text":207},{"id":647,"depth":269,"text":648},{"id":687,"depth":269,"text":1315,"children":1316},"The Bits That Make It an Installer's Tool",[1317,1318,1319,1320,1321],{"id":699,"depth":282,"text":700},{"id":753,"depth":282,"text":754},{"id":778,"depth":282,"text":779},{"id":1014,"depth":282,"text":1015},{"id":1172,"depth":282,"text":1173},{"id":1187,"depth":269,"text":1188},{"id":1225,"depth":269,"text":1226},{"id":1300,"depth":269,"text":1301},[1326,1327,1328],"Tools","Dev","Energy","2026-11-15","Electrical overview diagrams for German installations without a Windows-only CAD licence: a browser tool that turns YAML or a Node-RED-style editor into single-line and all-pole schematics, ready for the grid operator.","md","\u002Fimages\u002Fblog\u002F2026\u002F11\u002Femolecad-title.jpeg",{},true,"\u002Fblog\u002F2026\u002Femolecad-wiring-diagrams-from-yaml",{"title":5,"description":1330},"blog\u002F2026\u002Femolecad-wiring-diagrams-from-yaml",[1339,1340,1341,1342,1343,1344,1345,1346,164,1347,1348,1349],"emolecad","wiring-diagram","schematic","electrical-installation","din-en-iec-81346","iec-60617","smart-meter","par14a","react","vite","pdf","Cs3QFD393R2zOxrrnW190MNDkjyeON_MTHEdXoEURR0",1794863575845]