Microgrid energy flow
Buildings & energy · None — flow diagram
Solar, a battery, the building, car chargers and the utility grid meeting at the switchboard, each line showing the power on it now — its width the amount, dashed when idle, which way it flows (charging or discharging, importing or exporting) on the battery’s and the grid’s cards; beside it the day’s self-sufficiency, what came from and went to the grid, and solar output against the load since morning. Example data.
A board drawn with U-Board. Its values are example data written for it, not readings from a real site.
Board definition (JSON)
Everything that draws this board — where each value is read from (data), what is shown (parts), and where it sits and over what background (layout), in the same format U-Board’s editor and AI assistant write. The background drawing is long, so it is shortened here; the downloaded file has it whole.
Download — board.json{
"statuses": {
"idle-hatch": {
"tone": "warn",
"emphasis": "hatch"
},
"idle-hatch-idle": {
"tone": "idle",
"emphasis": "hatch"
},
"idle-hatch-info": {
"tone": "info",
"emphasis": "hatch"
},
"idle-hatch-past": {
"tone": "past",
"emphasis": "hatch"
}
},
"elements": {
"asset": {
"template": "<div class=\"a {{tone}}\" role=\"img\" aria-label=\"{{name}} {{kw}} kW, {{note}}\">\n <b>{{name}}</b>\n <span class=\"kw\">{{kw | fixed:0}}<small> kW</small></span>\n <span class=\"n\">{{note}}</span>\n</div>",
"style": ".a{box-sizing:border-box;height:100%;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:10px 14px;\nborder:1px solid var(--u-widget-border);border-left:5px solid var(--c);border-radius:6px;background:var(--u-widget-surface);\nfont-family:var(--u-widget-font-family);color:var(--u-widget-text);--c:var(--u-widget-text-secondary)}\nb{font-size:13px;font-weight:600;color:var(--u-widget-text-secondary)}\n.kw{font-size:24px;font-weight:600;font-variant-numeric:tabular-nums}\n.kw small{font-size:12px;font-weight:500;color:var(--u-widget-text-secondary)}\n.n{font-size:12px;color:var(--u-widget-text-secondary)}\n.sun{--c:#d89a00}\n.grid{--c:#6b7780}\n.load{--c:#4a555b}\n.bus{--c:var(--u-widget-text)}",
"props": {
"name": "string",
"kw": "number",
"note": "string",
"tone": "string"
}
},
"battery": {
"template": "<div class=\"a\" style=\"--soc: {{soc}}\" role=\"img\" aria-label=\"{{name}} {{state}} {{kw}} kW, {{soc}}%\">\n <b>{{name}}</b>\n <span class=\"kw\">{{kw | fixed:0}}<small> kW</small></span>\n <span class=\"n\">{{state}} · 충전량 {{soc | fixed:0}}%</span>\n <span class=\"bar\"><span></span></span>\n</div>",
"style": ".a{box-sizing:border-box;height:100%;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:10px 14px;\nborder:1px solid var(--u-widget-border);border-left:5px solid var(--c);border-radius:6px;background:var(--u-widget-surface);\nfont-family:var(--u-widget-font-family);color:var(--u-widget-text);--c:var(--u-widget-text-secondary);--c:#3f7fbf}\nb{font-size:13px;font-weight:600;color:var(--u-widget-text-secondary)}\n.kw{font-size:24px;font-weight:600;font-variant-numeric:tabular-nums}\n.kw small{font-size:12px;font-weight:500;color:var(--u-widget-text-secondary)}\n.n{font-size:12px;color:var(--u-widget-text-secondary)}\n.bar{height:5px;border-radius:3px;background:var(--u-widget-border);overflow:hidden}\n.bar span{display:block;height:100%;width:calc(var(--soc) * 1%);background:var(--c)}",
"props": {
"name": "string",
"kw": "number",
"state": "string",
"soc": "number"
}
}
},
"data": {
"assets": {
"from": "ems",
"path": "/site/assets",
"list": "/value",
"key": "id",
"time": "updatedAt",
"fresh": 300,
"fields": {
"kw": {
"format": "number:0"
},
"note": {},
"dir": {
"names": {
"forward": "충전 중",
"reverse": "방전 중",
"*": "대기"
}
},
"socPct": {},
"dir-2": {
"at": "/dir",
"state": {
"idle": "idle-hatch",
"*": "warn"
}
},
"dir-3": {
"at": "/dir",
"state": {
"idle": "idle-hatch-idle",
"*": "idle"
}
},
"dir-4": {
"at": "/dir",
"state": {
"idle": "idle-hatch-info",
"*": "info"
}
},
"dir-5": {
"at": "/dir",
"state": {
"idle": "idle-hatch-past",
"*": "past"
}
}
}
},
"summary": {
"from": "ems",
"path": "/site/summary",
"time": "updatedAt",
"fresh": 300,
"fields": {
"selfSufficiencyPct": {
"unit": "%"
},
"pvKwhToday": {
"label": "오늘 태양광 발전",
"unit": "kWh"
},
"importKwhToday": {
"label": "계통에서",
"unit": "kWh"
},
"exportKwhToday": {
"label": "계통으로",
"unit": "kWh"
}
}
},
"history": {
"from": "ems",
"path": "/site/history",
"list": "/value",
"fresh": 300,
"answerTime": "/updatedAt"
}
},
"parts": {
"pv": {
"as": "element",
"element": "asset",
"of": "assets[pv]",
"props": {
"name": "태양광 (300 kWp)",
"tone": "sun"
},
"bind": {
"kw": "kw",
"note": "note"
}
},
"grid": {
"as": "element",
"element": "asset",
"of": "assets[grid]",
"props": {
"name": "한전 계통",
"tone": "grid"
},
"bind": {
"kw": "kw",
"note": "note"
}
},
"switchboard": {
"as": "element",
"element": "asset",
"of": "assets[switchboard]",
"props": {
"name": "수배전반",
"tone": "bus"
},
"bind": {
"kw": "kw",
"note": "note"
}
},
"building": {
"as": "element",
"element": "asset",
"of": "assets[building]",
"props": {
"name": "건물 부하",
"tone": "load"
},
"bind": {
"kw": "kw",
"note": "note"
}
},
"ev": {
"as": "element",
"element": "asset",
"of": "assets[ev]",
"props": {
"name": "전기차 충전",
"tone": "load"
},
"bind": {
"kw": "kw",
"note": "note"
}
},
"ess": {
"as": "element",
"element": "battery",
"of": "assets[ess]",
"props": {
"name": "ESS (500 kWh)"
},
"bind": {
"kw": "kw",
"state": "dir",
"soc": "socPct"
}
},
"self-sufficiency": {
"as": "gauge",
"of": "summary",
"show": "selfSufficiencyPct",
"min": 0,
"max": 100,
"subtitle": "오늘 자립률",
"thresholds": [
{
"to": 40,
"color": "red"
},
{
"to": 70,
"color": "yellow"
},
{
"to": 100,
"color": "green"
}
]
},
"pv-today": {
"as": "stat",
"of": "summary",
"show": "pvKwhToday"
},
"import-today": {
"as": "stat",
"of": "summary",
"show": "importKwhToday"
},
"export-today": {
"as": "stat",
"of": "summary",
"show": "exportKwhToday"
},
"history": {
"as": "chart.line",
"of": "history",
"title": "태양광과 부하 (kW)",
"x": "time",
"y": [
"pvKw",
"loadKw"
],
"xFormat": "time",
"series": [
{
"label": "태양광",
"color": "#d89a00"
},
{
"label": "부하",
"color": "#4a555b"
}
]
}
},
"layout": {
"kind": "canvas",
"size": [
1250,
748
],
"place": {
"pv": [
400,
120,
200,
100
],
"grid": [
60,
384,
200,
100
],
"switchboard": [
400,
384,
200,
100
],
"building": [
740,
290,
200,
100
],
"ev": [
740,
478,
200,
100
],
"ess": [
400,
640,
200,
108
],
"self-sufficiency": [
1000,
100,
250,
150
],
"pv-today": [
1000,
266,
250,
70
],
"import-today": [
1000,
350,
120,
70
],
"export-today": [
1130,
350,
120,
70
],
"history": [
1000,
436,
250,
250
]
},
"shapes": {
"title": {
"text": "마이크로그리드 에너지 흐름",
"at": [
24,
22
],
"size": 24,
"tone": "next"
},
"note": {
"text": "선마다 지금 흐르는 전력 — 굵기는 크기, 점선은 멈춤 · 화살표는 흐르는 쪽 · 예시 데이터",
"at": [
24,
56
],
"size": 13,
"tone": "past"
},
"site": {
"box": [
30,
92,
940,
680
],
"label": "사이트",
"width": 1.5,
"dash": true
},
"side": {
"box": [
984,
72,
282,
632
],
"label": "오늘",
"width": 1
}
},
"links": {
"flow-pv": {
"from": "pv",
"to": "switchboard",
"label": "{{kw}} kW",
"show": "dir-2",
"weight": {
"field": "kw",
"bands": [
1.5,
5,
2.5,
60,
4.5,
150,
7
]
},
"of": "assets[pv]",
"width": 2.5,
"route": "orthogonal",
"arrow": {
"field": "dir",
"map": {
"forward": "end",
"reverse": "start",
"*": "none"
}
}
},
"flow-grid": {
"from": "grid",
"to": "switchboard",
"label": "{{kw}} kW",
"show": "dir-3",
"weight": {
"field": "kw",
"bands": [
1.5,
5,
2.5,
60,
4.5,
150,
7
]
},
"of": "assets[grid]",
"width": 2.5,
"route": "orthogonal",
"arrow": {
"field": "dir",
"map": {
"forward": "end",
"reverse": "start",
"*": "none"
}
}
},
"flow-ess": {
"from": "switchboard",
"to": "ess",
"label": "{{kw}} kW",
"show": "dir-4",
"weight": {
"field": "kw",
"bands": [
1.5,
5,
2.5,
60,
4.5,
150,
7
]
},
"of": "assets[ess]",
"width": 2.5,
"route": "orthogonal",
"arrow": {
"field": "dir",
"map": {
"forward": "end",
"reverse": "start",
"*": "none"
}
}
},
"flow-building": {
"from": "switchboard",
"to": "building",
"label": "{{kw}} kW",
"show": "dir-5",
"weight": {
"field": "kw",
"bands": [
1.5,
5,
2.5,
60,
4.5,
150,
7
]
},
"of": "assets[building]",
"width": 2.5,
"route": "orthogonal",
"arrow": {
"field": "dir",
"map": {
"forward": "end",
"reverse": "start",
"*": "none"
}
}
},
"flow-ev": {
"from": "switchboard",
"to": "ev",
"label": "{{kw}} kW",
"show": "dir-5",
"weight": {
"field": "kw",
"bands": [
1.5,
5,
2.5,
60,
4.5,
150,
7
]
},
"of": "assets[ev]",
"width": 2.5,
"route": "orthogonal",
"arrow": {
"field": "dir",
"map": {
"forward": "end",
"reverse": "start",
"*": "none"
}
}
}
}
}
}Data (source answers JSON)
The sources the board reads and what they answered — only the fields the board reads. This page draws the board from these answers, with no server.
Download — data.json{
"connectors": [
{
"key": "ems",
"name": "예시 EMS API",
"example": true,
"attribution": {
"text": "예시 데이터 — 실제 사이트가 아닙니다"
}
}
],
"capturedAt": "2026-10-20T04:01:00.000Z",
"responses": {
"ems": {
"/site/assets": {
"value": [
{
"id": "pv",
"kw": 182,
"dir": "forward",
"note": "발전 중 · 일사 812 W/m²",
"updatedAt": "2026-10-20T04:00:00Z"
},
{
"id": "grid",
"kw": 8,
"dir": "reverse",
"note": "역송 중",
"updatedAt": "2026-10-20T04:00:00Z"
},
{
"id": "switchboard",
"kw": 182,
"dir": "forward",
"note": "들어온 전력 합",
"updatedAt": "2026-10-20T04:00:00Z"
},
{
"id": "ess",
"kw": 28,
"dir": "forward",
"socPct": 64,
"updatedAt": "2026-10-20T04:00:00Z"
},
{
"id": "building",
"kw": 126,
"dir": "forward",
"note": "냉방 44 kW 포함",
"updatedAt": "2026-10-20T04:00:00Z"
},
{
"id": "ev",
"kw": 20,
"dir": "forward",
"note": "4기 중 2기 충전 중",
"updatedAt": "2026-10-20T04:00:00Z"
}
],
"updatedAt": "2026-10-20T04:00:00Z"
},
"/site/summary": {
"selfSufficiencyPct": 76,
"pvKwhToday": 812,
"importKwhToday": 248,
"exportKwhToday": 36,
"updatedAt": "2026-10-20T04:00:00Z"
},
"/site/history": {
"value": [
{
"time": "2026-10-19T21:00:00Z",
"pvKw": 0,
"loadKw": 64
},
{
"time": "2026-10-19T22:00:00Z",
"pvKw": 18,
"loadKw": 88
},
{
"time": "2026-10-19T23:00:00Z",
"pvKw": 62,
"loadKw": 121
},
{
"time": "2026-10-20T00:00:00Z",
"pvKw": 108,
"loadKw": 138
},
{
"time": "2026-10-20T01:00:00Z",
"pvKw": 146,
"loadKw": 142
},
{
"time": "2026-10-20T02:00:00Z",
"pvKw": 171,
"loadKw": 151
},
{
"time": "2026-10-20T03:00:00Z",
"pvKw": 184,
"loadKw": 139
},
{
"time": "2026-10-20T04:00:00Z",
"pvKw": 182,
"loadKw": 146
}
],
"updatedAt": "2026-10-20T04:00:00Z"
}
}
}
}