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

@ -48,8 +48,8 @@ vehicles:
type: renault
title: Zoe
capacity: 60 # kWh
user: # user
password: # password
user: myuser # user
password: mypassword # password
vin: WREN...
onIdentify: # set defaults when vehicle is identified
minSoC: 20 # charge to at least 20% independent of charge mode
@ -100,9 +100,9 @@ loadpoints:
disable: # pv mode disable behavior
delay: 10m # threshold must be exceeded for this long
threshold: 200 # maximum import power (W)
guardduration: 5m # switch charger contactor not more often than this (default 10m)
mincurrent: 6 # minimum charge current (default 6A)
maxcurrent: 16 # maximum charge current (default 16A)
guardDuration: 5m # switch charger contactor not more often than this (default 10m)
minCurrent: 6 # minimum charge current (default 6A)
maxCurrent: 16 # maximum charge current (default 16A)
# tariffs are the fixed or variable tariffs
# cheap can be used to define a tariff rate considered cheap enough for charging

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