mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-10-31 23:06:20 +00:00
fix: ensure EV charge rates settings available
Some checks failed
Close stale pull requests/issues / Find Stale issues and PRs (push) Has been cancelled
docker-build / platform-excludes (push) Has been cancelled
pre-commit / pre-commit (push) Has been cancelled
Run Pytest on Pull Request / test (push) Has been cancelled
docker-build / build (push) Has been cancelled
docker-build / merge (push) Has been cancelled
Some checks failed
Close stale pull requests/issues / Find Stale issues and PRs (push) Has been cancelled
docker-build / platform-excludes (push) Has been cancelled
pre-commit / pre-commit (push) Has been cancelled
Run Pytest on Pull Request / test (push) Has been cancelled
docker-build / build (push) Has been cancelled
docker-build / merge (push) Has been cancelled
Allow charge rates for electric vehicle to be provided by the POST optimize endpoint. Create a default value in case neither the parameters nor the configuration provide charge rates. This is also to allow to migrate from 0.1.0 configuration format to actual one. Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
This commit is contained in:
29
openapi.json
29
openapi.json
@@ -2067,7 +2067,7 @@
|
||||
"maximum": 100.0,
|
||||
"minimum": 0.0,
|
||||
"title": "Min Soc Percentage",
|
||||
"description": "Minimum state of charge (SOC) as percentage of capacity [%].",
|
||||
"description": "Minimum state of charge (SOC) as percentage of capacity [%]. This is the target SoC for charging",
|
||||
"default": 0,
|
||||
"examples": [
|
||||
10
|
||||
@@ -2208,7 +2208,7 @@
|
||||
"maximum": 100.0,
|
||||
"minimum": 0.0,
|
||||
"title": "Min Soc Percentage",
|
||||
"description": "Minimum state of charge (SOC) as percentage of capacity [%].",
|
||||
"description": "Minimum state of charge (SOC) as percentage of capacity [%]. This is the target SoC for charging",
|
||||
"default": 0,
|
||||
"examples": [
|
||||
10
|
||||
@@ -3184,6 +3184,31 @@
|
||||
"title": "Max Soc Percentage",
|
||||
"description": "An integer representing the maximum state of charge (SOC) of the battery in percentage.",
|
||||
"default": 100
|
||||
},
|
||||
"charge_rates": {
|
||||
"anyOf": [
|
||||
{
|
||||
"items": {
|
||||
"type": "number"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Charge Rates",
|
||||
"description": "Charge rates as factor of maximum charging power [0.00 ... 1.00]. None denotes all charge rates are available.",
|
||||
"examples": [
|
||||
[
|
||||
0.0,
|
||||
0.25,
|
||||
0.5,
|
||||
0.75,
|
||||
1.0
|
||||
],
|
||||
null
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
|
||||
Reference in New Issue
Block a user