Update schema json (#2041)
This commit is contained in:
parent
cd842726ea
commit
d690633020
2 changed files with 103 additions and 7 deletions
100
schema.json
100
schema.json
|
|
@ -42,7 +42,47 @@
|
|||
"type": "array",
|
||||
"description": "List of vehicles",
|
||||
"items": {
|
||||
"$ref": "#/definitions/namedObject"
|
||||
"$ref": "#/definitions/namedObject",
|
||||
"properties": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"capacity": {
|
||||
"type": "integer"
|
||||
},
|
||||
"user": {
|
||||
"type": "string"
|
||||
},
|
||||
"password": {
|
||||
"type": "string"
|
||||
},
|
||||
"VIN": {
|
||||
"type": "string"
|
||||
},
|
||||
"cache": {
|
||||
"$ref": "#/definitions/duration"
|
||||
},
|
||||
"onIdentify": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"mode": {
|
||||
"$ref": "#/definitions/mode"
|
||||
},
|
||||
"minSoC": {
|
||||
"type": "integer"
|
||||
},
|
||||
"targetSoC": {
|
||||
"type": "integer"
|
||||
},
|
||||
"minCurrent": {
|
||||
"type": "integer"
|
||||
},
|
||||
"maxCurrent": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"site": {
|
||||
|
|
@ -63,10 +103,32 @@
|
|||
"pv": {
|
||||
"type": "string"
|
||||
},
|
||||
"pvs": {
|
||||
"description": "List of pv inverters/meters",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"minItems": 1,
|
||||
"uniqueItems": true
|
||||
},
|
||||
"battery": {
|
||||
"type": "string"
|
||||
},
|
||||
"batteries": {
|
||||
"description": "List of home batteries",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"minItems": 1,
|
||||
"uniqueItems": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"prioritySoC": {
|
||||
},
|
||||
"bufferSoC": {
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -129,6 +191,40 @@
|
|||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"phases": {
|
||||
"type": "integer"
|
||||
},
|
||||
"minCurrent": {
|
||||
"type": "integer"
|
||||
},
|
||||
"maxCurrent": {
|
||||
"type": "integer"
|
||||
},
|
||||
"guardDuration": {
|
||||
"$ref": "#/definitions/duration"
|
||||
},
|
||||
"enable": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"delay": {
|
||||
"$ref": "#/definitions/duration"
|
||||
},
|
||||
"threshold": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"disable": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"delay": {
|
||||
"$ref": "#/definitions/duration"
|
||||
},
|
||||
"threshold": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -176,7 +272,7 @@
|
|||
},
|
||||
"pollMode": {
|
||||
"enum": [
|
||||
"alway",
|
||||
"always",
|
||||
"charging",
|
||||
"connected"
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue