Update schema json (#2041)

This commit is contained in:
rivengh 2021-12-14 12:39:48 +01:00 • committed by GitHub
parent cd842726ea
commit d690633020
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 103 additions and 7 deletions

View file

@ -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"
]