Raw schema
{
"type": "object",
"properties": {
"system": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 200
},
"version": {
"type": "number",
"const": 17
},
"nodes": {
"maxItems": 60,
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"position": {
"type": "object",
"properties": {
"x": {
"type": "number",
"minimum": -1000000,
"maximum": 1000000
},
"y": {
"type": "number",
"minimum": -1000000,
"maximum": 1000000
}
},
"required": [
"x",
"y"
],
"additionalProperties": false
},
"parentId": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"label": {
"type": "string",
"maxLength": 200
},
"kind": {
"type": "string",
"const": "component"
},
"definitionId": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"customDefinition": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"name": {
"type": "string",
"maxLength": 200
},
"shortName": {
"type": "string",
"maxLength": 120
},
"subtitle": {
"type": "string",
"maxLength": 200
},
"category": {
"type": "string",
"enum": [
"battery",
"charger",
"solar",
"source",
"engine",
"distribution",
"load",
"monitor"
]
},
"manufacturer": {
"type": "string",
"maxLength": 120
},
"model": {
"type": "string",
"maxLength": 120
},
"description": {
"type": "string",
"maxLength": 2000
},
"terminals": {
"maxItems": 64,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"label": {
"type": "string",
"maxLength": 120
},
"polarity": {
"type": "string",
"enum": [
"positive",
"negative",
"ground",
"signal",
"neutral"
]
},
"direction": {
"type": "string",
"enum": [
"input",
"output",
"bidi"
]
},
"maxAmp": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"side": {
"type": "string",
"enum": [
"left",
"right",
"top",
"bottom"
]
},
"offset": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"color": {
"type": "string",
"maxLength": 40
}
},
"required": [
"id",
"label",
"polarity",
"direction",
"maxAmp",
"side",
"offset"
],
"additionalProperties": false
}
},
"internalDcConnections": {
"maxItems": 64,
"type": "array",
"items": {
"type": "array",
"items": [
{
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
{
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
}
],
"additionalItems": false,
"minItems": 2,
"maxItems": 2
}
},
"oneWayDcConnections": {
"maxItems": 64,
"type": "array",
"items": {
"type": "array",
"items": [
{
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
{
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
}
],
"additionalItems": false,
"minItems": 2,
"maxItems": 2
}
},
"currentShunt": {
"type": "object",
"properties": {
"batteryTerminalId": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"systemTerminalId": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"referenceTerminalId": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
}
},
"required": [
"batteryTerminalId",
"systemTerminalId"
],
"additionalProperties": false
},
"width": {
"type": "number",
"minimum": 1,
"maximum": 10000
},
"height": {
"type": "number",
"minimum": 1,
"maximum": 10000
},
"image": {
"type": "string",
"maxLength": 2048
},
"capacityAh": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"voltage": {
"type": "number",
"minimum": 0.01,
"maximum": 1000
},
"inputVoltage": {
"type": "number",
"minimum": 0.01,
"maximum": 1000
},
"outputVoltage": {
"type": "number",
"minimum": 0.01,
"maximum": 1000
},
"conversionEfficiency": {
"type": "number",
"minimum": 0.001,
"maximum": 1
},
"maxInputA": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"hybridSourceOutputLimitA": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"acVoltage": {
"type": "number",
"minimum": 0.01,
"maximum": 1000
},
"watts": {
"type": "number",
"minimum": 0,
"maximum": 10000000
},
"loadCurrentModel": {
"type": "string",
"enum": [
"constant-current",
"constant-power"
]
},
"ampDraw": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"ampOutput": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"ampSurge": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"isFuseBlock": {
"type": "boolean"
},
"outputCurrentLimitsA": {
"type": "object",
"propertyNames": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"additionalProperties": {
"type": "number",
"minimum": 0,
"maximum": 100000
}
},
"equipmentLimitExemption": {
"type": "string",
"enum": [
"fuse",
"busbar"
]
},
"fuseSlotType": {
"type": "string",
"enum": [
"ATC",
"MIDI",
"MAXI",
"MEGA",
"ANL",
"MRBF",
"ClassT",
"NH"
]
},
"interchangeableTerminalGroups": {
"maxItems": 64,
"type": "array",
"items": {
"minItems": 1,
"maxItems": 64,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
}
}
},
"renderVariant": {
"type": "string",
"enum": [
"card",
"switch",
"busbar",
"junction",
"chassis-ground",
"fuse-holder"
]
},
"dutyHoursPerDay": {
"type": "number",
"minimum": 0,
"maximum": 24
},
"alwaysOn": {
"type": "boolean"
},
"peakSunHoursDefault": {
"type": "number",
"minimum": 0,
"maximum": 24
},
"chargeAmpsTypical": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"chemistry": {
"type": "string",
"enum": [
"lifepo4",
"agm",
"lead-acid",
"gel"
]
},
"maxDischargeA": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"maxChargeA": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"shortCircuitA": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"pvMaxVoc": {
"type": "number",
"minimum": 0.01,
"maximum": 1000
},
"pvVoc": {
"type": "number",
"minimum": 0.01,
"maximum": 1000
},
"pvMaxSeriesFuseA": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"compatibleVoltages": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "number",
"minimum": 0.01,
"maximum": 1000
}
},
"simulateStates": {
"type": "object",
"properties": {
"default": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"options": {
"minItems": 1,
"maxItems": 16,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"label": {
"type": "string",
"maxLength": 120
},
"ampMultiplier": {
"type": "number",
"minimum": 0,
"maximum": 100
},
"ampOverride": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"role": {
"type": "string",
"enum": [
"draw",
"output"
]
},
"intraLinks": {
"maxItems": 64,
"type": "array",
"items": {
"type": "array",
"items": [
{
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
{
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
}
],
"additionalItems": false,
"minItems": 2,
"maxItems": 2
}
}
},
"required": [
"id",
"label"
],
"additionalProperties": false
}
}
},
"required": [
"default",
"options"
],
"additionalProperties": false
},
"settings": {
"maxItems": 24,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"label": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 160
},
"vars": {
"type": "object",
"propertyNames": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"additionalProperties": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "number",
"minimum": -1000000000,
"maximum": 1000000000
}
]
}
}
},
"required": [
"key"
],
"additionalProperties": false
},
"help": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 160
},
"vars": {
"type": "object",
"propertyNames": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"additionalProperties": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "number",
"minimum": -1000000000,
"maximum": 1000000000
}
]
}
}
},
"required": [
"key"
],
"additionalProperties": false
},
"semantics": {
"type": "string",
"const": "disables-output"
},
"type": {
"type": "string",
"const": "toggle"
},
"default": {
"type": "boolean"
}
},
"required": [
"id",
"label",
"type",
"default"
],
"additionalProperties": false
}
},
"bms": {
"type": "object",
"properties": {
"placement": {
"type": "string",
"enum": [
"internal",
"external"
]
},
"switching": {
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"const": "signal"
}
},
"required": [
"mode"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"const": "fet"
},
"leg": {
"type": "string",
"enum": [
"negative",
"positive"
]
}
},
"required": [
"mode",
"leg"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"const": "contactor"
}
},
"required": [
"mode"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"const": "relay"
}
},
"required": [
"mode"
],
"additionalProperties": false
}
]
},
"continuousDischargeA": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"continuousChargeA": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"surge": {
"maxItems": 16,
"type": "array",
"items": {
"type": "object",
"properties": {
"amps": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"seconds": {
"anyOf": [
{
"type": "number",
"minimum": 0.000001,
"maximum": 86400
},
{
"type": "null"
}
]
}
},
"required": [
"amps",
"seconds"
],
"additionalProperties": false
}
},
"controls": {
"maxItems": 16,
"type": "array",
"items": {
"type": "object",
"properties": {
"role": {
"type": "string",
"enum": [
"charge-permit",
"discharge-permit",
"pre-alarm",
"alternator-field",
"heater",
"generic"
]
},
"kind": {
"type": "string",
"enum": [
"dry-contact",
"source",
"sink",
"opto"
]
},
"maxA": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"maxV": {
"type": "number",
"minimum": 0.01,
"maximum": 1000
}
},
"required": [
"role",
"kind"
],
"additionalProperties": false
}
},
"requiresExternalSwitchgear": {
"type": "boolean"
},
"busSeparation": {
"type": "string",
"enum": [
"single",
"dual"
]
},
"lowTempChargeCutoffC": {
"type": "number",
"minimum": -100,
"maximum": 100
},
"lowTempDischargeCutoffC": {
"type": "number",
"minimum": -100,
"maximum": 100
},
"lowTempCutoffConfigurable": {
"type": "boolean"
},
"chemistrySupport": {
"maxItems": 16,
"type": "array",
"items": {
"type": "object",
"properties": {
"chemistry": {
"type": "string",
"enum": [
"lifepo4",
"li-ion",
"nmc",
"lto"
]
},
"cellsMin": {
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"cellsMax": {
"type": "integer",
"minimum": 1,
"maximum": 1000
}
},
"required": [
"chemistry",
"cellsMin",
"cellsMax"
],
"additionalProperties": false
}
},
"alternatorControl": {
"maxItems": 5,
"type": "array",
"items": {
"type": "string",
"enum": [
"charge-relay",
"ignition-cut",
"field-cut",
"can-regulator",
"current-limit"
]
}
},
"compatibleBatteryIds": {
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
}
},
"unpublished": {
"maxItems": 40,
"type": "array",
"items": {
"type": "string",
"maxLength": 120
}
}
},
"required": [
"placement",
"switching",
"busSeparation"
],
"additionalProperties": false
},
"source": {
"type": "string",
"const": "ai"
},
"aiEstimatedFields": {
"maxItems": 60,
"type": "array",
"items": {
"type": "string",
"maxLength": 120
}
},
"aiAssumptions": {
"maxItems": 40,
"type": "array",
"items": {
"type": "string",
"maxLength": 500
}
}
},
"required": [
"id",
"name",
"category",
"terminals",
"width",
"height"
],
"additionalProperties": false
},
"notes": {
"type": "string",
"maxLength": 8000
},
"terminalOverrides": {
"type": "object",
"propertyNames": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"additionalProperties": {
"type": "object",
"properties": {
"side": {
"type": "string",
"enum": [
"left",
"right",
"top",
"bottom"
]
},
"offset": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"pinned": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"dutyHoursPerDayOverride": {
"type": "number",
"minimum": 0,
"maximum": 24
},
"alwaysOnOverride": {
"type": "boolean"
},
"rotation": {
"anyOf": [
{
"type": "number",
"const": 0
},
{
"type": "number",
"const": 90
},
{
"type": "number",
"const": 180
},
{
"type": "number",
"const": 270
}
]
},
"studCount": {
"type": "integer",
"minimum": 1,
"maximum": 64
},
"isFusebox": {
"type": "boolean"
},
"fuseAmp": {
"anyOf": [
{
"type": "number",
"minimum": 0,
"maximum": 100000
},
{
"type": "null"
}
]
},
"provisional": {
"type": "boolean"
},
"batteryFuse": {
"type": "object",
"properties": {
"ratingA": {
"type": "number",
"minimum": 0.01,
"maximum": 100000
},
"type": {
"type": "string",
"enum": [
"ATC",
"MIDI",
"MAXI",
"MEGA",
"ANL",
"MRBF",
"ClassT",
"NH"
]
}
},
"required": [
"ratingA"
],
"additionalProperties": false
},
"settings": {
"type": "object",
"propertyNames": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"additionalProperties": {
"type": "boolean"
}
},
"partEstimated": {
"type": "boolean"
}
},
"required": [
"id",
"position",
"kind",
"definitionId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"position": {
"type": "object",
"properties": {
"x": {
"type": "number",
"minimum": -1000000,
"maximum": 1000000
},
"y": {
"type": "number",
"minimum": -1000000,
"maximum": 1000000
}
},
"required": [
"x",
"y"
],
"additionalProperties": false
},
"parentId": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"label": {
"type": "string",
"maxLength": 200
},
"kind": {
"type": "string",
"const": "zone"
},
"width": {
"type": "number",
"minimum": 1,
"maximum": 1000000
},
"height": {
"type": "number",
"minimum": 1,
"maximum": 1000000
},
"color": {
"type": "string",
"maxLength": 40
},
"isEngineBay": {
"type": "boolean"
}
},
"required": [
"id",
"position",
"kind",
"width",
"height"
],
"additionalProperties": false
}
]
}
},
"cables": {
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"fromNodeId": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"fromTerminalId": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"toNodeId": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"toTerminalId": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.-]+$"
},
"lengthM": {
"type": "number",
"minimum": 0.01,
"maximum": 1000
},
"lengthEstimated": {
"type": "boolean"
},
"wireSizeMm2Override": {
"anyOf": [
{
"type": "number",
"minimum": 0.01,
"maximum": 1000
},
{
"type": "null"
}
]
},
"ampacityDerating": {
"type": "number",
"minimum": 0.01,
"maximum": 1
},
"fuseAmpOverride": {
"anyOf": [
{
"type": "number",
"minimum": 0,
"maximum": 100000
},
{
"type": "null"
}
]
},
"fuseAmpAuto": {
"type": "boolean"
},
"fuseTypeOverride": {
"type": "string",
"enum": [
"ATC",
"MIDI",
"MAXI",
"MEGA",
"ANL",
"MRBF",
"ClassT",
"NH"
]
},
"notes": {
"type": "string",
"maxLength": 8000
},
"label": {
"type": "string",
"maxLength": 200
},
"labelColor": {
"type": "string",
"maxLength": 100
},
"waypoints": {
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"x": {
"type": "number",
"minimum": -1000000,
"maximum": 1000000
},
"y": {
"type": "number",
"minimum": -1000000,
"maximum": 1000000
}
},
"required": [
"x",
"y"
],
"additionalProperties": false
}
},
"vdropClass": {
"anyOf": [
{
"type": "string",
"enum": [
"critical",
"non-critical"
]
},
{
"type": "null"
}
]
},
"seriesLink": {
"type": "boolean"
}
},
"required": [
"id",
"fromNodeId",
"fromTerminalId",
"toNodeId",
"toTerminalId",
"lengthM"
],
"additionalProperties": false
}
},
"zoneDistances": {
"type": "object",
"propertyNames": {
"type": "string",
"maxLength": 201
},
"additionalProperties": {
"type": "number",
"minimum": 0,
"maximum": 1000
}
}
},
"required": [
"name",
"version",
"nodes",
"cables",
"zoneDistances"
],
"additionalProperties": false
},
"autoSizeTargetPct": {
"anyOf": [
{
"type": "number",
"const": 3
},
{
"type": "number",
"const": 5
}
]
}
},
"required": [
"system"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}