mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-01-01 08:16:18 +00:00
feat: add Home Assistant and NodeRED adapters (#764)
Adapters for Home Assistant and NodeRED integration are added. Akkudoktor-EOS can now be run as Home Assistant add-on and standalone. As Home Assistant add-on EOS uses ingress to fully integrate the EOSdash dashboard in Home Assistant. The fix includes several bug fixes that are not directly related to the adapter implementation but are necessary to keep EOS running properly and to test and document the changes. * fix: development version scheme The development versioning scheme is adaptet to fit to docker and home assistant expectations. The new scheme is x.y.z and x.y.z.dev<hash>. Hash is only digits as expected by home assistant. Development version is appended by .dev as expected by docker. * fix: use mean value in interval on resampling for array When downsampling data use the mean value of all values within the new sampling interval. * fix: default battery ev soc and appliance wh Make the genetic simulation return default values for the battery SoC, electric vehicle SoC and appliance load if these assets are not used. * fix: import json string Strip outer quotes from JSON strings on import to be compliant to json.loads() expectation. * fix: default interval definition for import data Default interval must be defined in lowercase human definition to be accepted by pendulum. * fix: clearoutside schema change * feat: add adapters for integrations Adapters for Home Assistant and NodeRED integration are added. Akkudoktor-EOS can now be run as Home Assistant add-on and standalone. As Home Assistant add-on EOS uses ingress to fully integrate the EOSdash dashboard in Home Assistant. * feat: allow eos to be started with root permissions and drop priviledges Home assistant starts all add-ons with root permissions. Eos now drops root permissions if an applicable user is defined by paramter --run_as_user. The docker image defines the user eos to be used. * feat: make eos supervise and monitor EOSdash Eos now not only starts EOSdash but also monitors EOSdash during runtime and restarts EOSdash on fault. EOSdash logging is captured by EOS and forwarded to the EOS log to provide better visibility. * feat: add duration to string conversion Make to_duration to also return the duration as string on request. * chore: Use info logging to report missing optimization parameters In parameter preparation for automatic optimization an error was logged for missing paramters. Log is now down using the info level. * chore: make EOSdash use the EOS data directory for file import/ export EOSdash use the EOS data directory for file import/ export by default. This allows to use the configuration import/ export function also within docker images. * chore: improve EOSdash config tab display Improve display of JSON code and add more forms for config value update. * chore: make docker image file system layout similar to home assistant Only use /data directory for persistent data. This is handled as a docker volume. The /data volume is mapped to ~/.local/share/net.akkudoktor.eos if using docker compose. * chore: add home assistant add-on development environment Add VSCode devcontainer and task definition for home assistant add-on development. * chore: improve documentation
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
:maxdepth: 1
|
||||
:caption: Configuration Table
|
||||
|
||||
../_generated/configadapter.md
|
||||
../_generated/configcache.md
|
||||
../_generated/configdevices.md
|
||||
../_generated/configelecprice.md
|
||||
|
||||
223
docs/_generated/configadapter.md
Normal file
223
docs/_generated/configadapter.md
Normal file
@@ -0,0 +1,223 @@
|
||||
## Adapter Configuration
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
:::{table} adapter
|
||||
:widths: 10 20 10 5 5 30
|
||||
:align: left
|
||||
|
||||
| Name | Environment Variable | Type | Read-Only | Default | Description |
|
||||
| ---- | -------------------- | ---- | --------- | ------- | ----------- |
|
||||
| homeassistant | `EOS_ADAPTER__HOMEASSISTANT` | `HomeAssistantAdapterCommonSettings` | `rw` | `required` | Home Assistant adapter settings. |
|
||||
| nodered | `EOS_ADAPTER__NODERED` | `NodeREDAdapterCommonSettings` | `rw` | `required` | NodeRED adapter settings. |
|
||||
| provider | `EOS_ADAPTER__PROVIDER` | `Optional[list[str]]` | `rw` | `None` | List of adapter provider id(s) of provider(s) to be used. |
|
||||
| providers | | `list[str]` | `ro` | `N/A` | Available electricity price provider ids. |
|
||||
:::
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
<!-- pyml disable no-emphasis-as-heading -->
|
||||
**Example Input**
|
||||
<!-- pyml enable no-emphasis-as-heading -->
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
```json
|
||||
{
|
||||
"adapter": {
|
||||
"provider": [
|
||||
"HomeAssistant"
|
||||
],
|
||||
"homeassistant": {
|
||||
"config_entity_ids": null,
|
||||
"load_emr_entity_ids": null,
|
||||
"pv_production_emr_entity_ids": null,
|
||||
"device_measurement_entity_ids": null,
|
||||
"device_instruction_entity_ids": null,
|
||||
"solution_entity_ids": null,
|
||||
"homeassistant_entity_ids": [],
|
||||
"eos_solution_entity_ids": [],
|
||||
"eos_device_instruction_entity_ids": []
|
||||
},
|
||||
"nodered": {
|
||||
"host": "127.0.0.1",
|
||||
"port": 1880
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
<!-- pyml disable no-emphasis-as-heading -->
|
||||
**Example Output**
|
||||
<!-- pyml enable no-emphasis-as-heading -->
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
```json
|
||||
{
|
||||
"adapter": {
|
||||
"provider": [
|
||||
"HomeAssistant"
|
||||
],
|
||||
"homeassistant": {
|
||||
"config_entity_ids": null,
|
||||
"load_emr_entity_ids": null,
|
||||
"pv_production_emr_entity_ids": null,
|
||||
"device_measurement_entity_ids": null,
|
||||
"device_instruction_entity_ids": null,
|
||||
"solution_entity_ids": null,
|
||||
"homeassistant_entity_ids": [],
|
||||
"eos_solution_entity_ids": [],
|
||||
"eos_device_instruction_entity_ids": []
|
||||
},
|
||||
"nodered": {
|
||||
"host": "127.0.0.1",
|
||||
"port": 1880
|
||||
},
|
||||
"providers": [
|
||||
"HomeAssistant",
|
||||
"NodeRED"
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
### Common settings for the NodeRED adapter
|
||||
|
||||
The Node-RED adapter sends to HTTP IN nodes.
|
||||
|
||||
This is the example flow:
|
||||
|
||||
[HTTP In \\<URL\\>] -> [Function (parse payload)] -> [Debug] -> [HTTP Response]
|
||||
|
||||
There are two URLs that are used:
|
||||
|
||||
- GET /eos/data_aquisition
|
||||
The GET is issued before the optimization.
|
||||
- POST /eos/control_dispatch
|
||||
The POST is issued after the optimization.
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
:::{table} adapter::nodered
|
||||
:widths: 10 10 5 5 30
|
||||
:align: left
|
||||
|
||||
| Name | Type | Read-Only | Default | Description |
|
||||
| ---- | ---- | --------- | ------- | ----------- |
|
||||
| host | `Optional[str]` | `rw` | `127.0.0.1` | Node-RED server IP address. Defaults to 127.0.0.1. |
|
||||
| port | `Optional[int]` | `rw` | `1880` | Node-RED server IP port number. Defaults to 1880. |
|
||||
:::
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
<!-- pyml disable no-emphasis-as-heading -->
|
||||
**Example Input/Output**
|
||||
<!-- pyml enable no-emphasis-as-heading -->
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
```json
|
||||
{
|
||||
"adapter": {
|
||||
"nodered": {
|
||||
"host": "127.0.0.1",
|
||||
"port": 1880
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
### Common settings for the home assistant adapter
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
:::{table} adapter::homeassistant
|
||||
:widths: 10 10 5 5 30
|
||||
:align: left
|
||||
|
||||
| Name | Type | Read-Only | Default | Description |
|
||||
| ---- | ---- | --------- | ------- | ----------- |
|
||||
| config_entity_ids | `Optional[dict[str, str]]` | `rw` | `None` | Mapping of EOS config keys to Home Assistant entity IDs.
|
||||
The config key has to be given by a ‘/’-separated path
|
||||
e.g. devices/batteries/0/capacity_wh |
|
||||
| device_instruction_entity_ids | `Optional[list[str]]` | `rw` | `None` | Entity IDs for device (resource) instructions to be updated by EOS.
|
||||
The device ids (resource ids) have to be prepended by 'sensor.eos_' to build the entity_id.
|
||||
E.g. The instruction for device id 'battery1' becomes the entity_id 'sensor.eos_battery1'. |
|
||||
| device_measurement_entity_ids | `Optional[dict[str, str]]` | `rw` | `None` | Mapping of EOS measurement keys used by device (resource) simulations to Home Assistant entity IDs. |
|
||||
| eos_device_instruction_entity_ids | `list[str]` | `ro` | `N/A` | Entity IDs for energy management instructions available at EOS. |
|
||||
| eos_solution_entity_ids | `list[str]` | `ro` | `N/A` | Entity IDs for optimization solution available at EOS. |
|
||||
| homeassistant_entity_ids | `list[str]` | `ro` | `N/A` | Entity IDs available at Home Assistant. |
|
||||
| load_emr_entity_ids | `Optional[list[str]]` | `rw` | `None` | Entity ID(s) of load energy meter reading [kWh] |
|
||||
| pv_production_emr_entity_ids | `Optional[list[str]]` | `rw` | `None` | Entity ID(s) of PV production energy meter reading [kWh] |
|
||||
| solution_entity_ids | `Optional[list[str]]` | `rw` | `None` | Entity IDs for optimization solution keys to be updated by EOS.
|
||||
The solution keys have to be prepended by 'sensor.eos_' to build the entity_id.
|
||||
E.g. solution key 'battery1_idle_op_mode' becomes the entity_id 'sensor.eos_battery1_idle_op_mode'. |
|
||||
:::
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
<!-- pyml disable no-emphasis-as-heading -->
|
||||
**Example Input**
|
||||
<!-- pyml enable no-emphasis-as-heading -->
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
```json
|
||||
{
|
||||
"adapter": {
|
||||
"homeassistant": {
|
||||
"config_entity_ids": {
|
||||
"devices/batteries/0/capacity_wh": "sensor.battery1_capacity"
|
||||
},
|
||||
"load_emr_entity_ids": [
|
||||
"sensor.load_energy_total_kwh"
|
||||
],
|
||||
"pv_production_emr_entity_ids": [
|
||||
"sensor.pv_energy_total_kwh"
|
||||
],
|
||||
"device_measurement_entity_ids": {
|
||||
"ev11_soc_factor": "sensor.ev11_soc_factor",
|
||||
"battery1_soc_factor": "sensor.battery1_soc_factor"
|
||||
},
|
||||
"device_instruction_entity_ids": [
|
||||
"sensor.eos_battery1"
|
||||
],
|
||||
"solution_entity_ids": [
|
||||
"sensor.eos_battery1_idle_mode_mode"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
<!-- pyml disable no-emphasis-as-heading -->
|
||||
**Example Output**
|
||||
<!-- pyml enable no-emphasis-as-heading -->
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
```json
|
||||
{
|
||||
"adapter": {
|
||||
"homeassistant": {
|
||||
"config_entity_ids": {
|
||||
"devices/batteries/0/capacity_wh": "sensor.battery1_capacity"
|
||||
},
|
||||
"load_emr_entity_ids": [
|
||||
"sensor.load_energy_total_kwh"
|
||||
],
|
||||
"pv_production_emr_entity_ids": [
|
||||
"sensor.pv_energy_total_kwh"
|
||||
],
|
||||
"device_measurement_entity_ids": {
|
||||
"ev11_soc_factor": "sensor.ev11_soc_factor",
|
||||
"battery1_soc_factor": "sensor.battery1_soc_factor"
|
||||
},
|
||||
"device_instruction_entity_ids": [
|
||||
"sensor.eos_battery1"
|
||||
],
|
||||
"solution_entity_ids": [
|
||||
"sensor.eos_battery1_idle_mode_mode"
|
||||
],
|
||||
"homeassistant_entity_ids": [],
|
||||
"eos_solution_entity_ids": [],
|
||||
"eos_device_instruction_entity_ids": []
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
<!-- pyml enable line-length -->
|
||||
@@ -15,7 +15,7 @@
|
||||
| max_electric_vehicles | `EOS_DEVICES__MAX_ELECTRIC_VEHICLES` | `Optional[int]` | `rw` | `None` | Maximum number of electric vehicles that can be set |
|
||||
| max_home_appliances | `EOS_DEVICES__MAX_HOME_APPLIANCES` | `Optional[int]` | `rw` | `None` | Maximum number of home_appliances that can be set |
|
||||
| max_inverters | `EOS_DEVICES__MAX_INVERTERS` | `Optional[int]` | `rw` | `None` | Maximum number of inverters that can be set |
|
||||
| measurement_keys | | `Optional[list[str]]` | `ro` | `N/A` | None |
|
||||
| measurement_keys | | `Optional[list[str]]` | `ro` | `N/A` | Return the measurement keys for the resource/ device stati that are measurements. |
|
||||
:::
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
@@ -36,7 +36,19 @@
|
||||
"levelized_cost_of_storage_kwh": 0.0,
|
||||
"max_charge_power_w": 5000,
|
||||
"min_charge_power_w": 50,
|
||||
"charge_rates": "[0. 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1. ]",
|
||||
"charge_rates": [
|
||||
0.0,
|
||||
0.1,
|
||||
0.2,
|
||||
0.3,
|
||||
0.4,
|
||||
0.5,
|
||||
0.6,
|
||||
0.7,
|
||||
0.8,
|
||||
0.9,
|
||||
1.0
|
||||
],
|
||||
"min_soc_percentage": 0,
|
||||
"max_soc_percentage": 100,
|
||||
"measurement_key_soc_factor": "battery1-soc-factor",
|
||||
@@ -63,7 +75,19 @@
|
||||
"levelized_cost_of_storage_kwh": 0.0,
|
||||
"max_charge_power_w": 5000,
|
||||
"min_charge_power_w": 50,
|
||||
"charge_rates": "[0. 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1. ]",
|
||||
"charge_rates": [
|
||||
0.0,
|
||||
0.1,
|
||||
0.2,
|
||||
0.3,
|
||||
0.4,
|
||||
0.5,
|
||||
0.6,
|
||||
0.7,
|
||||
0.8,
|
||||
0.9,
|
||||
1.0
|
||||
],
|
||||
"min_soc_percentage": 0,
|
||||
"max_soc_percentage": 100,
|
||||
"measurement_key_soc_factor": "battery1-soc-factor",
|
||||
@@ -107,7 +131,19 @@
|
||||
"levelized_cost_of_storage_kwh": 0.0,
|
||||
"max_charge_power_w": 5000,
|
||||
"min_charge_power_w": 50,
|
||||
"charge_rates": "[0. 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1. ]",
|
||||
"charge_rates": [
|
||||
0.0,
|
||||
0.1,
|
||||
0.2,
|
||||
0.3,
|
||||
0.4,
|
||||
0.5,
|
||||
0.6,
|
||||
0.7,
|
||||
0.8,
|
||||
0.9,
|
||||
1.0
|
||||
],
|
||||
"min_soc_percentage": 0,
|
||||
"max_soc_percentage": 100,
|
||||
"measurement_key_soc_factor": "battery1-soc-factor",
|
||||
@@ -134,7 +170,19 @@
|
||||
"levelized_cost_of_storage_kwh": 0.0,
|
||||
"max_charge_power_w": 5000,
|
||||
"min_charge_power_w": 50,
|
||||
"charge_rates": "[0. 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1. ]",
|
||||
"charge_rates": [
|
||||
0.0,
|
||||
0.1,
|
||||
0.2,
|
||||
0.3,
|
||||
0.4,
|
||||
0.5,
|
||||
0.6,
|
||||
0.7,
|
||||
0.8,
|
||||
0.9,
|
||||
1.0
|
||||
],
|
||||
"min_soc_percentage": 0,
|
||||
"max_soc_percentage": 100,
|
||||
"measurement_key_soc_factor": "battery1-soc-factor",
|
||||
@@ -185,7 +233,7 @@
|
||||
| battery_id | `Optional[str]` | `rw` | `None` | ID of battery controlled by this inverter. |
|
||||
| device_id | `str` | `rw` | `<unknown>` | ID of device |
|
||||
| max_power_w | `Optional[float]` | `rw` | `None` | Maximum power [W]. |
|
||||
| measurement_keys | `Optional[list[str]]` | `ro` | `N/A` | None |
|
||||
| measurement_keys | `Optional[list[str]]` | `ro` | `N/A` | Measurement keys for the inverter stati that are measurements. |
|
||||
:::
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
@@ -242,7 +290,7 @@
|
||||
| consumption_wh | `int` | `rw` | `required` | Energy consumption [Wh]. |
|
||||
| device_id | `str` | `rw` | `<unknown>` | ID of device |
|
||||
| duration_h | `int` | `rw` | `required` | Usage duration in hours [0 ... 24]. |
|
||||
| measurement_keys | `Optional[list[str]]` | `ro` | `N/A` | None |
|
||||
| measurement_keys | `Optional[list[str]]` | `ro` | `N/A` | Measurement keys for the home appliance stati that are measurements. |
|
||||
| time_windows | `Optional[akkudoktoreos.utils.datetimeutil.TimeWindowSequence]` | `rw` | `None` | Sequence of allowed time windows. Defaults to optimization general time window. |
|
||||
:::
|
||||
<!-- pyml enable line-length -->
|
||||
@@ -320,19 +368,19 @@
|
||||
| Name | Type | Read-Only | Default | Description |
|
||||
| ---- | ---- | --------- | ------- | ----------- |
|
||||
| capacity_wh | `int` | `rw` | `8000` | Capacity [Wh]. |
|
||||
| charge_rates | `Optional[numpydantic.vendor.npbase_meta_classes.NDArray]` | `rw` | `[0. 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1. ]` | Charge rates as factor of maximum charging power [0.00 ... 1.00]. None triggers fallback to default charge-rates. |
|
||||
| charge_rates | `Optional[list[float]]` | `rw` | `[0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]` | Charge rates as factor of maximum charging power [0.00 ... 1.00]. None triggers fallback to default charge-rates. |
|
||||
| charging_efficiency | `float` | `rw` | `0.88` | Charging efficiency [0.01 ... 1.00]. |
|
||||
| device_id | `str` | `rw` | `<unknown>` | ID of device |
|
||||
| discharging_efficiency | `float` | `rw` | `0.88` | Discharge efficiency [0.01 ... 1.00]. |
|
||||
| levelized_cost_of_storage_kwh | `float` | `rw` | `0.0` | Levelized cost of storage (LCOS), the average lifetime cost of delivering one kWh [€/kWh]. |
|
||||
| max_charge_power_w | `Optional[float]` | `rw` | `5000` | Maximum charging power [W]. |
|
||||
| max_soc_percentage | `int` | `rw` | `100` | Maximum state of charge (SOC) as percentage of capacity [%]. |
|
||||
| measurement_key_power_3_phase_sym_w | `str` | `ro` | `N/A` | None |
|
||||
| measurement_key_power_l1_w | `str` | `ro` | `N/A` | None |
|
||||
| measurement_key_power_l2_w | `str` | `ro` | `N/A` | None |
|
||||
| measurement_key_power_l3_w | `str` | `ro` | `N/A` | None |
|
||||
| measurement_key_soc_factor | `str` | `ro` | `N/A` | None |
|
||||
| measurement_keys | `Optional[list[str]]` | `ro` | `N/A` | None |
|
||||
| measurement_key_power_3_phase_sym_w | `str` | `ro` | `N/A` | Measurement key for the symmetric 3 phase power the battery is charged or discharged with [W]. |
|
||||
| measurement_key_power_l1_w | `str` | `ro` | `N/A` | Measurement key for the L1 power the battery is charged or discharged with [W]. |
|
||||
| measurement_key_power_l2_w | `str` | `ro` | `N/A` | Measurement key for the L2 power the battery is charged or discharged with [W]. |
|
||||
| measurement_key_power_l3_w | `str` | `ro` | `N/A` | Measurement key for the L3 power the battery is charged or discharged with [W]. |
|
||||
| measurement_key_soc_factor | `str` | `ro` | `N/A` | Measurement key for the battery state of charge (SoC) as factor of total capacity [0.0 ... 1.0]. |
|
||||
| measurement_keys | `Optional[list[str]]` | `ro` | `N/A` | Measurement keys for the battery stati that are measurements. |
|
||||
| min_charge_power_w | `Optional[float]` | `rw` | `50` | Minimum charging power [W]. |
|
||||
| min_soc_percentage | `int` | `rw` | `0` | Minimum state of charge (SOC) as percentage of capacity [%]. This is the target SoC for charging |
|
||||
:::
|
||||
@@ -355,7 +403,13 @@
|
||||
"levelized_cost_of_storage_kwh": 0.12,
|
||||
"max_charge_power_w": 5000.0,
|
||||
"min_charge_power_w": 50.0,
|
||||
"charge_rates": "[0. 0.25 0.5 0.75 1. ]",
|
||||
"charge_rates": [
|
||||
0.0,
|
||||
0.25,
|
||||
0.5,
|
||||
0.75,
|
||||
1.0
|
||||
],
|
||||
"min_soc_percentage": 10,
|
||||
"max_soc_percentage": 100
|
||||
}
|
||||
@@ -382,7 +436,13 @@
|
||||
"levelized_cost_of_storage_kwh": 0.12,
|
||||
"max_charge_power_w": 5000.0,
|
||||
"min_charge_power_w": 50.0,
|
||||
"charge_rates": "[0. 0.25 0.5 0.75 1. ]",
|
||||
"charge_rates": [
|
||||
0.0,
|
||||
0.25,
|
||||
0.5,
|
||||
0.75,
|
||||
1.0
|
||||
],
|
||||
"min_soc_percentage": 10,
|
||||
"max_soc_percentage": 100,
|
||||
"measurement_key_soc_factor": "battery1-soc-factor",
|
||||
|
||||
@@ -11,12 +11,13 @@
|
||||
| elecpriceimport | `EOS_ELECPRICE__ELECPRICEIMPORT` | `ElecPriceImportCommonSettings` | `rw` | `required` | Import provider settings. |
|
||||
| energycharts | `EOS_ELECPRICE__ENERGYCHARTS` | `ElecPriceEnergyChartsCommonSettings` | `rw` | `required` | Energy Charts provider settings. |
|
||||
| provider | `EOS_ELECPRICE__PROVIDER` | `Optional[str]` | `rw` | `None` | Electricity price provider id of provider to be used. |
|
||||
| providers | | `list[str]` | `ro` | `N/A` | Available electricity price provider ids. |
|
||||
| vat_rate | `EOS_ELECPRICE__VAT_RATE` | `Optional[float]` | `rw` | `1.19` | VAT rate factor applied to electricity price when charges are used. |
|
||||
:::
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
<!-- pyml disable no-emphasis-as-heading -->
|
||||
**Example Input/Output**
|
||||
**Example Input**
|
||||
<!-- pyml enable no-emphasis-as-heading -->
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
@@ -38,6 +39,34 @@
|
||||
```
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
<!-- pyml disable no-emphasis-as-heading -->
|
||||
**Example Output**
|
||||
<!-- pyml enable no-emphasis-as-heading -->
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
```json
|
||||
{
|
||||
"elecprice": {
|
||||
"provider": "ElecPriceAkkudoktor",
|
||||
"charges_kwh": 0.21,
|
||||
"vat_rate": 1.19,
|
||||
"elecpriceimport": {
|
||||
"import_file_path": null,
|
||||
"import_json": null
|
||||
},
|
||||
"energycharts": {
|
||||
"bidding_zone": "DE-LU"
|
||||
},
|
||||
"providers": [
|
||||
"ElecPriceAkkudoktor",
|
||||
"ElecPriceEnergyCharts",
|
||||
"ElecPriceImport"
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
### Common settings for Energy Charts electricity price provider
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
|
||||
@@ -3,6 +3,26 @@
|
||||
<!-- pyml disable line-length -->
|
||||
```json
|
||||
{
|
||||
"adapter": {
|
||||
"provider": [
|
||||
"HomeAssistant"
|
||||
],
|
||||
"homeassistant": {
|
||||
"config_entity_ids": null,
|
||||
"load_emr_entity_ids": null,
|
||||
"pv_production_emr_entity_ids": null,
|
||||
"device_measurement_entity_ids": null,
|
||||
"device_instruction_entity_ids": null,
|
||||
"solution_entity_ids": null,
|
||||
"homeassistant_entity_ids": [],
|
||||
"eos_solution_entity_ids": [],
|
||||
"eos_device_instruction_entity_ids": []
|
||||
},
|
||||
"nodered": {
|
||||
"host": "127.0.0.1",
|
||||
"port": 1880
|
||||
}
|
||||
},
|
||||
"cache": {
|
||||
"subpath": "cache",
|
||||
"cleanup_interval": 300.0
|
||||
@@ -17,7 +37,19 @@
|
||||
"levelized_cost_of_storage_kwh": 0.0,
|
||||
"max_charge_power_w": 5000,
|
||||
"min_charge_power_w": 50,
|
||||
"charge_rates": "[0. 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1. ]",
|
||||
"charge_rates": [
|
||||
0.0,
|
||||
0.1,
|
||||
0.2,
|
||||
0.3,
|
||||
0.4,
|
||||
0.5,
|
||||
0.6,
|
||||
0.7,
|
||||
0.8,
|
||||
0.9,
|
||||
1.0
|
||||
],
|
||||
"min_soc_percentage": 0,
|
||||
"max_soc_percentage": 100,
|
||||
"measurement_key_soc_factor": "battery1-soc-factor",
|
||||
@@ -44,7 +76,19 @@
|
||||
"levelized_cost_of_storage_kwh": 0.0,
|
||||
"max_charge_power_w": 5000,
|
||||
"min_charge_power_w": 50,
|
||||
"charge_rates": "[0. 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1. ]",
|
||||
"charge_rates": [
|
||||
0.0,
|
||||
0.1,
|
||||
0.2,
|
||||
0.3,
|
||||
0.4,
|
||||
0.5,
|
||||
0.6,
|
||||
0.7,
|
||||
0.8,
|
||||
0.9,
|
||||
1.0
|
||||
],
|
||||
"min_soc_percentage": 0,
|
||||
"max_soc_percentage": 100,
|
||||
"measurement_key_soc_factor": "battery1-soc-factor",
|
||||
@@ -92,7 +136,7 @@
|
||||
}
|
||||
},
|
||||
"general": {
|
||||
"version": "0.2.0+dev.4dbc2d",
|
||||
"version": "0.2.0.dev70048701",
|
||||
"data_folder_path": null,
|
||||
"data_output_subpath": "output",
|
||||
"latitude": 52.52,
|
||||
|
||||
@@ -9,11 +9,12 @@
|
||||
| ---- | -------------------- | ---- | --------- | ------- | ----------- |
|
||||
| provider | `EOS_FEEDINTARIFF__PROVIDER` | `Optional[str]` | `rw` | `None` | Feed in tariff provider id of provider to be used. |
|
||||
| provider_settings | `EOS_FEEDINTARIFF__PROVIDER_SETTINGS` | `FeedInTariffCommonProviderSettings` | `rw` | `required` | Provider settings |
|
||||
| providers | | `list[str]` | `ro` | `N/A` | Available feed in tariff provider ids. |
|
||||
:::
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
<!-- pyml disable no-emphasis-as-heading -->
|
||||
**Example Input/Output**
|
||||
**Example Input**
|
||||
<!-- pyml enable no-emphasis-as-heading -->
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
@@ -30,6 +31,28 @@
|
||||
```
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
<!-- pyml disable no-emphasis-as-heading -->
|
||||
**Example Output**
|
||||
<!-- pyml enable no-emphasis-as-heading -->
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
```json
|
||||
{
|
||||
"feedintariff": {
|
||||
"provider": "FeedInTariffFixed",
|
||||
"provider_settings": {
|
||||
"FeedInTariffFixed": null,
|
||||
"FeedInTariffImport": null
|
||||
},
|
||||
"providers": [
|
||||
"FeedInTariffFixed",
|
||||
"FeedInTariffImport"
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
### Common settings for feed in tariff data import from file or JSON string
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
|
||||
@@ -1,17 +1,4 @@
|
||||
## Settings for common configuration
|
||||
|
||||
General configuration to set directories of cache and output files and system location (latitude
|
||||
and longitude).
|
||||
Validators ensure each parameter is within a specified range. A computed property, `timezone`,
|
||||
determines the time zone based on latitude and longitude.
|
||||
|
||||
Attributes:
|
||||
latitude (Optional[float]): Latitude in degrees, must be between -90 and 90.
|
||||
longitude (Optional[float]): Longitude in degrees, must be between -180 and 180.
|
||||
|
||||
Properties:
|
||||
timezone (Optional[str]): Computed time zone string based on the specified latitude
|
||||
and longitude.
|
||||
## General settings
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
:::{table} general
|
||||
@@ -20,15 +7,16 @@ Properties:
|
||||
|
||||
| Name | Environment Variable | Type | Read-Only | Default | Description |
|
||||
| ---- | -------------------- | ---- | --------- | ------- | ----------- |
|
||||
| config_file_path | | `Optional[pathlib.Path]` | `ro` | `N/A` | None |
|
||||
| config_folder_path | | `Optional[pathlib.Path]` | `ro` | `N/A` | None |
|
||||
| config_file_path | | `Optional[pathlib.Path]` | `ro` | `N/A` | Path to EOS configuration file. |
|
||||
| config_folder_path | | `Optional[pathlib.Path]` | `ro` | `N/A` | Path to EOS configuration directory. |
|
||||
| data_folder_path | `EOS_GENERAL__DATA_FOLDER_PATH` | `Optional[pathlib.Path]` | `rw` | `None` | Path to EOS data directory. |
|
||||
| data_output_path | | `Optional[pathlib.Path]` | `ro` | `N/A` | None |
|
||||
| data_output_path | | `Optional[pathlib.Path]` | `ro` | `N/A` | Computed data_output_path based on data_folder_path. |
|
||||
| data_output_subpath | `EOS_GENERAL__DATA_OUTPUT_SUBPATH` | `Optional[pathlib.Path]` | `rw` | `output` | Sub-path for the EOS output data directory. |
|
||||
| latitude | `EOS_GENERAL__LATITUDE` | `Optional[float]` | `rw` | `52.52` | Latitude in decimal degrees, between -90 and 90, north is positive (ISO 19115) (°) |
|
||||
| longitude | `EOS_GENERAL__LONGITUDE` | `Optional[float]` | `rw` | `13.405` | Longitude in decimal degrees, within -180 to 180 (°) |
|
||||
| timezone | | `Optional[str]` | `ro` | `N/A` | None |
|
||||
| version | `EOS_GENERAL__VERSION` | `str` | `rw` | `0.2.0+dev.4dbc2d` | Configuration file version. Used to check compatibility. |
|
||||
| home_assistant_addon | | `bool` | `ro` | `N/A` | EOS is running as home assistant add-on. |
|
||||
| latitude | `EOS_GENERAL__LATITUDE` | `Optional[float]` | `rw` | `52.52` | Latitude in decimal degrees between -90 and 90. North is positive (ISO 19115) (°) |
|
||||
| longitude | `EOS_GENERAL__LONGITUDE` | `Optional[float]` | `rw` | `13.405` | Longitude in decimal degrees within -180 to 180 (°) |
|
||||
| timezone | | `Optional[str]` | `ro` | `N/A` | Computed timezone based on latitude and longitude. |
|
||||
| version | `EOS_GENERAL__VERSION` | `str` | `rw` | `0.2.0.dev70048701` | Configuration file version. Used to check compatibility. |
|
||||
:::
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
@@ -40,7 +28,7 @@ Properties:
|
||||
```json
|
||||
{
|
||||
"general": {
|
||||
"version": "0.2.0+dev.4dbc2d",
|
||||
"version": "0.2.0.dev70048701",
|
||||
"data_folder_path": null,
|
||||
"data_output_subpath": "output",
|
||||
"latitude": 52.52,
|
||||
@@ -58,7 +46,7 @@ Properties:
|
||||
```json
|
||||
{
|
||||
"general": {
|
||||
"version": "0.2.0+dev.4dbc2d",
|
||||
"version": "0.2.0.dev70048701",
|
||||
"data_folder_path": null,
|
||||
"data_output_subpath": "output",
|
||||
"latitude": 52.52,
|
||||
@@ -66,7 +54,8 @@ Properties:
|
||||
"timezone": "Europe/Berlin",
|
||||
"data_output_path": null,
|
||||
"config_folder_path": "/home/user/.config/net.akkudoktoreos.net",
|
||||
"config_file_path": "/home/user/.config/net.akkudoktoreos.net/EOS.config.json"
|
||||
"config_file_path": "/home/user/.config/net.akkudoktoreos.net/EOS.config.json",
|
||||
"home_assistant_addon": false
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -9,11 +9,12 @@
|
||||
| ---- | -------------------- | ---- | --------- | ------- | ----------- |
|
||||
| provider | `EOS_LOAD__PROVIDER` | `Optional[str]` | `rw` | `None` | Load provider id of provider to be used. |
|
||||
| provider_settings | `EOS_LOAD__PROVIDER_SETTINGS` | `LoadCommonProviderSettings` | `rw` | `required` | Provider settings |
|
||||
| providers | | `list[str]` | `ro` | `N/A` | Available load provider ids. |
|
||||
:::
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
<!-- pyml disable no-emphasis-as-heading -->
|
||||
**Example Input/Output**
|
||||
**Example Input**
|
||||
<!-- pyml enable no-emphasis-as-heading -->
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
@@ -31,6 +32,31 @@
|
||||
```
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
<!-- pyml disable no-emphasis-as-heading -->
|
||||
**Example Output**
|
||||
<!-- pyml enable no-emphasis-as-heading -->
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
```json
|
||||
{
|
||||
"load": {
|
||||
"provider": "LoadAkkudoktor",
|
||||
"provider_settings": {
|
||||
"LoadAkkudoktor": null,
|
||||
"LoadVrm": null,
|
||||
"LoadImport": null
|
||||
},
|
||||
"providers": [
|
||||
"LoadAkkudoktor",
|
||||
"LoadAkkudoktorAdjusted",
|
||||
"LoadVrm",
|
||||
"LoadImport"
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
### Common settings for load data import from file or JSON string
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
@@ -64,7 +90,7 @@
|
||||
```
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
### Common settings for VRM API
|
||||
### Common settings for load forecast VRM API
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
:::{table} load::provider_settings::LoadVrm
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
| ---- | -------------------- | ---- | --------- | ------- | ----------- |
|
||||
| console_level | `EOS_LOGGING__CONSOLE_LEVEL` | `Optional[str]` | `rw` | `None` | Logging level when logging to console. |
|
||||
| file_level | `EOS_LOGGING__FILE_LEVEL` | `Optional[str]` | `rw` | `None` | Logging level when logging to file. |
|
||||
| file_path | | `Optional[pathlib.Path]` | `ro` | `N/A` | None |
|
||||
| file_path | | `Optional[pathlib.Path]` | `ro` | `N/A` | Computed log file path based on data output path. |
|
||||
:::
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
| ---- | -------------------- | ---- | --------- | ------- | ----------- |
|
||||
| grid_export_emr_keys | `EOS_MEASUREMENT__GRID_EXPORT_EMR_KEYS` | `Optional[list[str]]` | `rw` | `None` | The keys of the measurements that are energy meter readings of energy export to grid [kWh]. |
|
||||
| grid_import_emr_keys | `EOS_MEASUREMENT__GRID_IMPORT_EMR_KEYS` | `Optional[list[str]]` | `rw` | `None` | The keys of the measurements that are energy meter readings of energy import from grid [kWh]. |
|
||||
| keys | | `list[str]` | `ro` | `N/A` | None |
|
||||
| keys | | `list[str]` | `ro` | `N/A` | The keys of the measurements that can be stored. |
|
||||
| load_emr_keys | `EOS_MEASUREMENT__LOAD_EMR_KEYS` | `Optional[list[str]]` | `rw` | `None` | The keys of the measurements that are energy meter readings of a load [kWh]. |
|
||||
| pv_production_emr_keys | `EOS_MEASUREMENT__PV_PRODUCTION_EMR_KEYS` | `Optional[list[str]]` | `rw` | `None` | The keys of the measurements that are PV production energy meter readings [kWh]. |
|
||||
:::
|
||||
|
||||
@@ -11,11 +11,12 @@
|
||||
| genetic | `EOS_OPTIMIZATION__GENETIC` | `Optional[akkudoktoreos.optimization.optimization.GeneticCommonSettings]` | `rw` | `None` | Genetic optimization algorithm configuration. |
|
||||
| horizon_hours | `EOS_OPTIMIZATION__HORIZON_HOURS` | `Optional[int]` | `rw` | `24` | The general time window within which the energy optimization goal shall be achieved [h]. Defaults to 24 hours. |
|
||||
| interval | `EOS_OPTIMIZATION__INTERVAL` | `Optional[int]` | `rw` | `3600` | The optimization interval [sec]. |
|
||||
| keys | | `list[str]` | `ro` | `N/A` | The keys of the solution. |
|
||||
:::
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
<!-- pyml disable no-emphasis-as-heading -->
|
||||
**Example Input/Output**
|
||||
**Example Input**
|
||||
<!-- pyml enable no-emphasis-as-heading -->
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
@@ -38,6 +39,31 @@
|
||||
```
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
<!-- pyml disable no-emphasis-as-heading -->
|
||||
**Example Output**
|
||||
<!-- pyml enable no-emphasis-as-heading -->
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
```json
|
||||
{
|
||||
"optimization": {
|
||||
"horizon_hours": 24,
|
||||
"interval": 3600,
|
||||
"algorithm": "GENETIC",
|
||||
"genetic": {
|
||||
"individuals": 400,
|
||||
"generations": 400,
|
||||
"seed": null,
|
||||
"penalties": {
|
||||
"ev_soc_miss": 10
|
||||
}
|
||||
},
|
||||
"keys": []
|
||||
}
|
||||
}
|
||||
```
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
### General Genetic Optimization Algorithm Configuration
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
|
||||
@@ -1,19 +1,5 @@
|
||||
## General Prediction Configuration
|
||||
|
||||
This class provides configuration for prediction settings, allowing users to specify
|
||||
parameters such as the forecast duration (in hours).
|
||||
Validators ensure each parameter is within a specified range.
|
||||
|
||||
Attributes:
|
||||
hours (Optional[int]): Number of hours into the future for predictions.
|
||||
Must be non-negative.
|
||||
historic_hours (Optional[int]): Number of hours into the past for historical data.
|
||||
Must be non-negative.
|
||||
|
||||
Validators:
|
||||
validate_hours (int): Ensures `hours` is a non-negative integer.
|
||||
validate_historic_hours (int): Ensures `historic_hours` is a non-negative integer.
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
:::{table} prediction
|
||||
:widths: 10 20 10 5 5 30
|
||||
|
||||
@@ -9,13 +9,14 @@
|
||||
| ---- | -------------------- | ---- | --------- | ------- | ----------- |
|
||||
| max_planes | `EOS_PVFORECAST__MAX_PLANES` | `Optional[int]` | `rw` | `0` | Maximum number of planes that can be set |
|
||||
| planes | `EOS_PVFORECAST__PLANES` | `Optional[list[akkudoktoreos.prediction.pvforecast.PVForecastPlaneSetting]]` | `rw` | `None` | Plane configuration. |
|
||||
| planes_azimuth | | `List[float]` | `ro` | `N/A` | None |
|
||||
| planes_inverter_paco | | `Any` | `ro` | `N/A` | None |
|
||||
| planes_peakpower | | `List[float]` | `ro` | `N/A` | None |
|
||||
| planes_tilt | | `List[float]` | `ro` | `N/A` | None |
|
||||
| planes_userhorizon | | `Any` | `ro` | `N/A` | None |
|
||||
| planes_azimuth | | `List[float]` | `ro` | `N/A` | Compute a list of the azimuths per active planes. |
|
||||
| planes_inverter_paco | | `Any` | `ro` | `N/A` | Compute a list of the maximum power rating of the inverter per active planes. |
|
||||
| planes_peakpower | | `List[float]` | `ro` | `N/A` | Compute a list of the peak power per active planes. |
|
||||
| planes_tilt | | `List[float]` | `ro` | `N/A` | Compute a list of the tilts per active planes. |
|
||||
| planes_userhorizon | | `Any` | `ro` | `N/A` | Compute a list of the user horizon per active planes. |
|
||||
| provider | `EOS_PVFORECAST__PROVIDER` | `Optional[str]` | `rw` | `None` | PVForecast provider id of provider to be used. |
|
||||
| provider_settings | `EOS_PVFORECAST__PROVIDER_SETTINGS` | `PVForecastCommonProviderSettings` | `rw` | `required` | Provider settings |
|
||||
| providers | | `list[str]` | `ro` | `N/A` | Available PVForecast provider ids. |
|
||||
:::
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
@@ -144,6 +145,11 @@
|
||||
}
|
||||
],
|
||||
"max_planes": 1,
|
||||
"providers": [
|
||||
"PVForecastAkkudoktor",
|
||||
"PVForecastVrm",
|
||||
"PVForecastImport"
|
||||
],
|
||||
"planes_peakpower": [
|
||||
5.0,
|
||||
3.5
|
||||
@@ -177,7 +183,7 @@
|
||||
```
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
### Common settings for VRM API
|
||||
### Common settings for PV forecast VRM API
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
:::{table} pvforecast::provider_settings::PVForecastVrm
|
||||
|
||||
@@ -9,11 +9,12 @@
|
||||
| ---- | -------------------- | ---- | --------- | ------- | ----------- |
|
||||
| provider | `EOS_WEATHER__PROVIDER` | `Optional[str]` | `rw` | `None` | Weather provider id of provider to be used. |
|
||||
| provider_settings | `EOS_WEATHER__PROVIDER_SETTINGS` | `WeatherCommonProviderSettings` | `rw` | `required` | Provider settings |
|
||||
| providers | | `list[str]` | `ro` | `N/A` | Available weather provider ids. |
|
||||
:::
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
<!-- pyml disable no-emphasis-as-heading -->
|
||||
**Example Input/Output**
|
||||
**Example Input**
|
||||
<!-- pyml enable no-emphasis-as-heading -->
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
@@ -29,6 +30,28 @@
|
||||
```
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
<!-- pyml disable no-emphasis-as-heading -->
|
||||
**Example Output**
|
||||
<!-- pyml enable no-emphasis-as-heading -->
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
```json
|
||||
{
|
||||
"weather": {
|
||||
"provider": "WeatherImport",
|
||||
"provider_settings": {
|
||||
"WeatherImport": null
|
||||
},
|
||||
"providers": [
|
||||
"BrightSky",
|
||||
"ClearOutside",
|
||||
"WeatherImport"
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
<!-- pyml enable line-length -->
|
||||
|
||||
### Common settings for weather data import from file or JSON string
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Akkudoktor-EOS
|
||||
|
||||
**Version**: `v0.2.0+dev.4dbc2d`
|
||||
**Version**: `v0.2.0.dev70048701`
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
**Description**: This project provides a comprehensive solution for simulating and optimizing an energy system based on renewable energy sources. With a focus on photovoltaic (PV) systems, battery storage (batteries), load management (consumer requirements), heat pumps, electric vehicles, and consideration of electricity price data, this system enables forecasting and optimization of energy flow and costs over a specified period.
|
||||
|
||||
BIN
docs/_static/azimuth.gif
vendored
Normal file
BIN
docs/_static/azimuth.gif
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
BIN
docs/_static/horizon_eyefish_en.png
vendored
Normal file
BIN
docs/_static/horizon_eyefish_en.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 406 KiB |
BIN
docs/_static/slope.gif
vendored
Normal file
BIN
docs/_static/slope.gif
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
23
docs/akkudoktoreos/adapter.md
Normal file
23
docs/akkudoktoreos/adapter.md
Normal file
@@ -0,0 +1,23 @@
|
||||
% SPDX-License-Identifier: Apache-2.0
|
||||
(adapter-page)=
|
||||
|
||||
# Adapter
|
||||
|
||||
Adapters provide simplyfied integrations for home energy management systems. Besides
|
||||
the standard REST interface of EOS, the adapters extend EOS by specific integration
|
||||
interfaces for Home Assistant and NodeRED.
|
||||
|
||||
:::{admonition} Warning
|
||||
:class: warning
|
||||
Adapter execution is part of the energy management run. The adapters are only working
|
||||
properly if cyclic energy management runs are configured.
|
||||
:::
|
||||
|
||||
```{toctree}
|
||||
:maxdepth: 2
|
||||
:caption: Adapters
|
||||
|
||||
adapter/adapterhomeassistant.md
|
||||
adapter/adapternodered.md
|
||||
|
||||
```
|
||||
126
docs/akkudoktoreos/adapter/adapterhomeassistant.md
Normal file
126
docs/akkudoktoreos/adapter/adapterhomeassistant.md
Normal file
@@ -0,0 +1,126 @@
|
||||
% SPDX-License-Identifier: Apache-2.0
|
||||
(adapter-homeassistant-page)=
|
||||
|
||||
# Home Assistant Adapter
|
||||
|
||||
The Home Assistant adapter provides a bidirectional interface between
|
||||
**Home Assistant (HA)** and the **Akkudoktor-EOS (EOS)** energy optimisation system.
|
||||
|
||||
It allows EOS to:
|
||||
|
||||
- **Read** entity states and attributes from Home Assistant
|
||||
- **Write** optimisation results and control instructions back to Home Assistant
|
||||
|
||||
This enables EOS to integrate seamlessly with Home Assistant–managed devices,
|
||||
sensors, and energy meters, while keeping EOS device simulations and optimisation
|
||||
logic decoupled from HA-specific implementations.
|
||||
|
||||
## Configuration entity IDs
|
||||
|
||||
EOS can synchronise parts of its configuration from Home Assistant entity states.
|
||||
This is particularly useful for **device (resource) parameters** that are already
|
||||
provided by Home Assistant integrations, such as:
|
||||
|
||||
- Battery capacity
|
||||
- Maximum charge or discharge power
|
||||
- Nominal device ratings
|
||||
|
||||
These configuration values are typically consumed by EOS **device simulations**
|
||||
during optimisation.
|
||||
|
||||
### Entity state conversion rules
|
||||
|
||||
When reading configuration values from entity states, the adapter applies the
|
||||
following heuristics to convert the HA state into a suitable EOS value:
|
||||
|
||||
- **Boolean `True`**: `["y", "yes", "on", "true", "home", "open"]`
|
||||
- **Boolean `False`**: `["n", "no", "off", "false", "closed"]`
|
||||
- **`None`**: `["unavailable", "none"]`
|
||||
- **`float`**: if the value can be converted to a floating-point number
|
||||
- **`str`**: if none of the above apply
|
||||
|
||||
## Device instruction entity IDs
|
||||
|
||||
After each energy optimisation run, EOS produces **device instructions** for the
|
||||
controlled resources. These instructions are written back to Home Assistant via
|
||||
dedicated entities.
|
||||
|
||||
- The **entity state** represents the selected **operation mode** of the device.
|
||||
- **Entity attributes** provide additional parameters for the operation mode, such as:
|
||||
|
||||
- `operation_mode_factor`
|
||||
- Power or rate limits
|
||||
- Mode-specific control parameters
|
||||
|
||||
Home Assistant automations or device integrations can then react to these entity
|
||||
updates to perform the actual control actions.
|
||||
|
||||
## Device measurement entity IDs
|
||||
|
||||
Before starting an energy optimisation run, EOS retrieves **measurement values**
|
||||
from Home Assistant that describe the *current state* of devices.
|
||||
|
||||
Typical examples include:
|
||||
|
||||
- Battery state of charge (SoC)
|
||||
- Current power or energy levels
|
||||
- Device availability or readiness indicators
|
||||
|
||||
These measurements are used as input for EOS **device simulations** and strongly
|
||||
influence optimisation results.
|
||||
|
||||
## Load EMR entity IDs
|
||||
|
||||
Load **Energy Meter Readings (EMR)** are used to adapt and refine the **load
|
||||
prediction**.
|
||||
|
||||
EOS retrieves these readings from Home Assistant **before** each energy management
|
||||
run to align forecasts with actual consumption.
|
||||
|
||||
## PV production EMR entity IDs
|
||||
|
||||
PV production **Energy Meter Readings (EMR)** are used to adapt and refine the
|
||||
**photovoltaic generation forecast**.
|
||||
|
||||
EOS retrieves these readings from Home Assistant **before** each optimisation run
|
||||
to improve forecast accuracy based on real production data.
|
||||
|
||||
## Solution entity IDs
|
||||
|
||||
Each energy management run produces an **optimisation solution**.
|
||||
|
||||
In addition to device-level instructions, EOS can publish solution-level details to
|
||||
dedicated Home Assistant entities. These entities are useful for:
|
||||
|
||||
- Debugging and validation
|
||||
- Visualisation and dashboards
|
||||
- Gaining deeper insight into optimisation decisions
|
||||
|
||||
EOS updates these entities **after** each energy management run.
|
||||
|
||||
## Entity state and value conversion
|
||||
|
||||
To adapt, scale, or transform Home Assistant entity values to match EOS
|
||||
expectations, it is recommended to use
|
||||
[template sensors](https://www.home-assistant.io/integrations/template/#sensor).
|
||||
|
||||
This allows value conversion to remain fully within Home Assistant, keeping the EOS
|
||||
configuration clean and consistent.
|
||||
|
||||
### Example: Battery SoC conversion
|
||||
|
||||
Convert a battery state of charge from percentage `[0..100]` to a normalised factor
|
||||
`[0.0..1.0]`:
|
||||
|
||||
<!-- pyml disable line-length -->
|
||||
```yaml
|
||||
template:
|
||||
- sensor:
|
||||
- name: "Battery1 SoC Factor"
|
||||
unique_id: "battery1_soc_factor"
|
||||
state: >
|
||||
{% set bat_charge_soc = states('sensor.battery1_soc_percent') | float(100) -%}
|
||||
{{ bat_charge_soc / 100.0 }}
|
||||
state_class: measurement
|
||||
```
|
||||
<!-- pyml enable line-length -->
|
||||
4
docs/akkudoktoreos/adapter/adapternodered.md
Normal file
4
docs/akkudoktoreos/adapter/adapternodered.md
Normal file
@@ -0,0 +1,4 @@
|
||||
% SPDX-License-Identifier: Apache-2.0
|
||||
(adapter-nodered-page)=
|
||||
|
||||
# NodeRED Adapter
|
||||
@@ -1,7 +1,7 @@
|
||||
% SPDX-License-Identifier: Apache-2.0
|
||||
(configuration-page)=
|
||||
|
||||
# Configuration Guideline
|
||||
# Configuration Guide
|
||||
|
||||
The configuration controls all aspects of EOS: optimization, prediction, measurement, and energy
|
||||
management.
|
||||
|
||||
@@ -36,7 +36,8 @@ Through an iterative process of selection, crossover, and mutation, the algorith
|
||||
more effective solutions. The final result is an optimized control strategy that balances multiple
|
||||
system goals within the constraints of the input data and configuration.
|
||||
|
||||
:::{note}
|
||||
:::{admonition} Note
|
||||
:class: note
|
||||
You don’t need to understand the internal workings of the genetic algorithm to benefit from
|
||||
automatic optimization. EOS handles everything behind the scenes based on your configuration.
|
||||
However, advanced users can fine-tune the optimization behavior using additional settings like
|
||||
|
||||
@@ -51,13 +51,16 @@ A dictionary with the following structure:
|
||||
```json
|
||||
{
|
||||
"start_datetime": "2024-01-01 00:00:00",
|
||||
"interval": "1 Hour",
|
||||
"interval": "1 hour",
|
||||
"<prediction key>": [value, value, ...],
|
||||
"<prediction key>": [value, value, ...],
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
If `start_datetime` is not provided EOS defaults to the `start_datetime` of the current energy
|
||||
management run. If `interval` is not provided EOS defaults to one hour.
|
||||
|
||||
#### 2. DateTimeDataFrame
|
||||
|
||||
A JSON string created from a [pandas](https://pandas.pydata.org/docs/index.html) dataframe with a
|
||||
@@ -402,10 +405,11 @@ represent equal angular distance around the horizon. For instance, if you have 3
|
||||
point is due north, the next is 10 degrees east of north, and so on, until the last point, 10
|
||||
degrees west of north.
|
||||
|
||||
---
|
||||

|
||||
|
||||
Most of the configuration options are in line with the
|
||||
[PVLib](https://pvlib-python.readthedocs.io/en/stable/_modules/pvlib/iotools/pvgis.html) definition for PVGIS data.
|
||||
[PVLib](https://pvlib-python.readthedocs.io/en/stable/_modules/pvlib/iotools/pvgis.html) definition
|
||||
for PVGIS data.
|
||||
|
||||
Detailed definitions from **PVLib** for PVGIS data.
|
||||
|
||||
@@ -413,12 +417,14 @@ Detailed definitions from **PVLib** for PVGIS data.
|
||||
|
||||
Tilt angle from horizontal plane.
|
||||
|
||||

|
||||
|
||||
- `surface_azimuth`
|
||||
|
||||
Orientation (azimuth angle) of the (fixed) plane. Clockwise from north (north=0, east=90, south=180,
|
||||
west=270). This is offset 180 degrees from the convention used by PVGIS.
|
||||
|
||||
---
|
||||

|
||||
|
||||
### PVForecastAkkudoktor Provider
|
||||
|
||||
|
||||
@@ -253,6 +253,6 @@ the home appliance can be operated in two operation modes:
|
||||
|-----------------------|-------------------------------------------------------------------------|
|
||||
| **RUN** | The home appliance is started and runs until the end of it's power |
|
||||
| | sequence. |
|
||||
| **IDLE** | The home appliance does not run. |
|
||||
| **OFF** | The home appliance does not run. |
|
||||
|
||||
The **operation mode factor** (0.0–1.0) is ignored.
|
||||
|
||||
@@ -328,8 +328,11 @@ For detailed Docker instructions, refer to [Installation Guideline](install-page
|
||||
|
||||
#### Step 4.1 - Create a development branch
|
||||
|
||||
Create a local development branch and make it know on your GitHub repo.
|
||||
|
||||
```bash
|
||||
git checkout -b <MY_DEVELOPMENT_BRANCH>
|
||||
git push --set-upstream origin <MY_DEVELOPMENT_BRANCH>
|
||||
```
|
||||
|
||||
Replace `<MY_DEVELOPMENT_BRANCH>` with the development branch name. The branch name shall be of the
|
||||
@@ -591,6 +594,10 @@ Ensure your changes do not break existing functionality:
|
||||
|
||||
Keep your code consistent with existing style and conventions.
|
||||
|
||||
#### Keep Python Docstrings RST Compatible
|
||||
|
||||
The docstrings will be parsed by Sphinx in automatic documentation generation.
|
||||
|
||||
### Use Issues for Discussion
|
||||
|
||||
Before making major changes, open an issue or discuss with maintainers.
|
||||
@@ -598,3 +605,100 @@ Before making major changes, open an issue or discuss with maintainers.
|
||||
### Document Changes
|
||||
|
||||
Update docstrings, comments, and any relevant documentation.
|
||||
|
||||
### Start or Reopen the Home Assistant Dev Container in VS Code
|
||||
|
||||
### 1. Open Visual Studio Code
|
||||
|
||||
Start Visual Studio Code.
|
||||
|
||||
### 2. Open the Command Palette
|
||||
|
||||
Open the Command Palette:
|
||||
|
||||
- **Windows / Linux:** `Ctrl + Shift + P`
|
||||
- **macOS:** `Cmd + Shift + P`
|
||||
|
||||
### 3. Reopen the Workspace in the Dev Container
|
||||
|
||||
In the Command Palette, select:
|
||||
|
||||
```text
|
||||
Dev Containers: Reopen in Container
|
||||
```
|
||||
|
||||
VS Code will:
|
||||
|
||||
- Build the dev container (if required)
|
||||
- Start the container
|
||||
- Reopen the workspace inside the container
|
||||
|
||||
### 4. Start Home Assistant
|
||||
|
||||
Open the Command Palette again and select:
|
||||
|
||||
```text
|
||||
Dev Terminal: Run Task... → Start Home Assistant
|
||||
```
|
||||
|
||||
:::{admonition} Note
|
||||
:class: note
|
||||
Startup may take several minutes while the Home Assistant Supervisor initializes.
|
||||
:::
|
||||
|
||||
If startup fails you may retry with container rebuild before:
|
||||
|
||||
```text
|
||||
Dev Containers: Rebuild Container without Cache
|
||||
```
|
||||
|
||||
### 5. Open Home Assistant
|
||||
|
||||
Once startup is complete, open your browser and navigate to:
|
||||
|
||||
```text
|
||||
http://localhost:7123/
|
||||
```
|
||||
|
||||
If this is your first start, complete the standard Home Assistant onboarding process.
|
||||
|
||||
### 6. Install the Local Akkudoktor-EOS Add-on
|
||||
|
||||
#### 6.1 Open the Add-on Store
|
||||
|
||||
In Home Assistant, navigate to:
|
||||
|
||||
```text
|
||||
Settings → Add-ons → Add-on Store
|
||||
```
|
||||
|
||||
Open the top-right menu (⋮), then select:
|
||||
|
||||
```text
|
||||
Repositories → Local add-ons
|
||||
```
|
||||
|
||||
Choose **Akkudoktor-EOS**.
|
||||
|
||||
#### 6.2 Install the Add-on
|
||||
|
||||
The Akkudoktor-EOS add-on is automatically available.
|
||||
Click **Install** to begin installation.
|
||||
|
||||
#### 6.3 Start the Add-on
|
||||
|
||||
After installation completes, click **Start** in the add-on panel.
|
||||
|
||||
#### 6.4 Open the EOS Web Interface
|
||||
|
||||
In the add-on panel, click **Open Web UI** to access the EOS dashboard.
|
||||
|
||||
#### 6.5 Configure EOS (Optional)
|
||||
|
||||
In the EOS dashboard, navigate to:
|
||||
|
||||
```text
|
||||
Config
|
||||
```
|
||||
|
||||
to adjust configuration settings as needed.
|
||||
|
||||
@@ -3,12 +3,13 @@
|
||||
|
||||
# Installation Guide
|
||||
|
||||
This guide provides different methods to install AkkudoktorEOS:
|
||||
This guide provides different methods to install Akkudoktor-EOS:
|
||||
|
||||
- Installation from Source (GitHub) (M1)
|
||||
- Installation from Release Package (GitHub) (M2)
|
||||
- Installation with Docker (DockerHub) (M3)
|
||||
- Installation with Docker (docker-compose) (M4)
|
||||
- Installation in Home Assistant (M5)
|
||||
|
||||
Choose the method that best suits your needs.
|
||||
|
||||
@@ -22,20 +23,34 @@ release see the [Revert Guideline](revert-page).
|
||||
|
||||
Before installing, ensure you have the following:
|
||||
|
||||
### For Source / Release Installation
|
||||
### For Source / Release Installation (M1/M2)
|
||||
|
||||
- Python 3.10 or higher
|
||||
- pip
|
||||
- Git (only for source)
|
||||
- Tar/Zip (for release package)
|
||||
|
||||
### For Docker Installation
|
||||
### For Docker Installation (M3/M4)
|
||||
|
||||
- Docker Engine 20.10 or higher
|
||||
- Docker Compose (optional, recommended)
|
||||
|
||||
:::{admonition} Tip
|
||||
:class: Note
|
||||
See [Install Docker Engine](https://docs.docker.com/engine/install/) on how to install docker on
|
||||
your Linux distro.
|
||||
:::
|
||||
|
||||
### For Installation in Home Assistant (M5)
|
||||
|
||||
- [Home Assistant Operating System](https://www.home-assistant.io/installation/)
|
||||
|
||||
:::{admonition} Warning
|
||||
:class: Warning
|
||||
Akkudoktor-EOS is a [Home Assistant add-on](https://www.home-assistant.io/addons/).
|
||||
[Home Assistant Container](https://www.home-assistant.io/installation/) installations don’t
|
||||
have access to add-ons.
|
||||
:::
|
||||
|
||||
## Installation from Source (GitHub) (M1)
|
||||
|
||||
@@ -214,7 +229,12 @@ should be available at [http://localhost:8504](http://localhost:8504).
|
||||
|
||||
### 4) Configure EOS (M3)
|
||||
|
||||
Use EOSdash at [http://localhost:8504](http://localhost:8504) to configure EOS.
|
||||
Use EOSdash at [http://localhost:8504](http://localhost:8504) to configure EOS. In the dashboard,
|
||||
go to:
|
||||
|
||||
```bash
|
||||
Config
|
||||
```
|
||||
|
||||
## Installation with Docker (docker-compose) (M4)
|
||||
|
||||
@@ -251,37 +271,85 @@ docker logs akkudoktoreos
|
||||
EOS should now be accessible at [http://localhost:8503/docs](http://localhost:8503/docs) and EOSdash
|
||||
should be available at [http://localhost:8504](http://localhost:8504).
|
||||
|
||||
### 4) Configure EOS
|
||||
The configuration file is in `${HOME}/.local/share/net.akkudoktor.eos/config/EOS.config.json`.
|
||||
|
||||
Use EOSdash at [http://localhost:8504](http://localhost:8504) to configure EOS.
|
||||
### 4) Configure EOS (M4)
|
||||
|
||||
Use EOSdash at [http://localhost:8504](http://localhost:8504) to configure EOS. In the dashboard,
|
||||
go to:
|
||||
|
||||
```bash
|
||||
Config
|
||||
```
|
||||
|
||||
You may edit the configuration file directly at
|
||||
`${HOME}/.local/share/net.akkudoktor.eos/config/EOS.config.json`.
|
||||
|
||||
## Installation in Home Assistant (M5)
|
||||
|
||||
[](https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgithub.com%2FAkkudoktor-EOS%2FEOS)
|
||||
|
||||
### 1) Add the repository URL (M5)
|
||||
|
||||
In Home Assistant, go to:
|
||||
|
||||
```bash
|
||||
Settings → Add-ons → Add-on Store → ⋮ (top-right menu) → Repositories
|
||||
```
|
||||
|
||||
and enter the URL of this Git repository:
|
||||
|
||||
```bash
|
||||
https://github.com/Akkudoktor-EOS/EOS
|
||||
```
|
||||
|
||||
### 2) Install the add-on (M5)
|
||||
|
||||
After adding the repository, the add-on will appear in the Add-on Store. Click `Install`.
|
||||
|
||||
### 3) Start the add-on (M5)
|
||||
|
||||
Once installed, click `Start` in the add-on panel.
|
||||
|
||||
### 4) Access the dashboard (M5)
|
||||
|
||||
Click `Open Web UI` in the add-on panel.
|
||||
|
||||
### 5) Configure EOS (M5)
|
||||
|
||||
In the dashboard, go to:
|
||||
|
||||
```bash
|
||||
Config
|
||||
```
|
||||
|
||||
## Helpful Docker Commands
|
||||
|
||||
**View logs:**
|
||||
### View logs
|
||||
|
||||
```bash
|
||||
docker logs -f akkudoktoreos
|
||||
```
|
||||
|
||||
**Stop the container:**
|
||||
### Stop the container
|
||||
|
||||
```bash
|
||||
docker stop akkudoktoreos
|
||||
```
|
||||
|
||||
**Start the container:**
|
||||
### Start the container
|
||||
|
||||
```bash
|
||||
docker start akkudoktoreos
|
||||
```
|
||||
|
||||
**Remove the container:**
|
||||
### Remove the container
|
||||
|
||||
```bash
|
||||
docker rm -f akkudoktoreos
|
||||
```
|
||||
|
||||
**Update to latest version:**
|
||||
### Update to latest version
|
||||
|
||||
```bash
|
||||
docker pull Akkudoktor-EOS/EOS:latest
|
||||
@@ -289,3 +357,29 @@ docker stop akkudoktoreos
|
||||
docker rm akkudoktoreos
|
||||
# Then run the container again with the run command
|
||||
```
|
||||
|
||||
### Solve docker DNS not working
|
||||
|
||||
Switch Docker to use the real resolv.conf, not the stub.
|
||||
|
||||
1️⃣ Replace /etc/resolv.conf symlink
|
||||
|
||||
```bash
|
||||
sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
|
||||
```
|
||||
|
||||
This file contains the actual upstream DNS servers (e.g. your Fritz!Box).
|
||||
|
||||
2️⃣ Restart Docker
|
||||
|
||||
```bash
|
||||
sudo systemctl restart docker
|
||||
```
|
||||
|
||||
3️⃣ Verify
|
||||
|
||||
```bash
|
||||
docker run --rm busybox nslookup registry-1.docker.io
|
||||
```
|
||||
|
||||
You should now see a valid IP address.
|
||||
|
||||
@@ -10,7 +10,7 @@ and how to set a **development version** after the release.
|
||||
|
||||
| Step | Actor | Action |
|
||||
|------|-------------|--------|
|
||||
| 1 | Contributor | Prepare a release branch **in your fork** using Commitizen |
|
||||
| 1 | Contributor | Prepare a release branch **in your fork** |
|
||||
| 2 | Contributor | Open a **Pull Request to upstream** (`Akkudoktor-EOS/EOS`) |
|
||||
| 3 | Maintainer | Review and **merge the release PR** |
|
||||
| 4 | CI | Create the **GitHub Release and tag** |
|
||||
@@ -48,7 +48,7 @@ __version__ = 0.3.0
|
||||
|
||||
Prepare version by updating versioned files, e.g.:
|
||||
|
||||
- haaddon/config.yaml
|
||||
- config.yaml
|
||||
|
||||
and the generated documentation:
|
||||
|
||||
@@ -132,7 +132,7 @@ See `.github/workflwows/bump-version.yml`for details.
|
||||
|
||||
### 5️⃣ CI: Prepare the Development Version Marker
|
||||
|
||||
The development version marker will automatically be set by the GitHub CI action.
|
||||
The development version marker `.dev` will automatically be set by the GitHub CI action.
|
||||
|
||||
See `.github/workflwows/bump-version.yml`for details.
|
||||
|
||||
|
||||
109
docs/develop/update.md
Normal file
109
docs/develop/update.md
Normal file
@@ -0,0 +1,109 @@
|
||||
% SPDX-License-Identifier: Apache-2.0
|
||||
(update-page)=
|
||||
|
||||
# Update Guide
|
||||
|
||||
This guide explains how to update AkkudoktorEOS to a newer version.
|
||||
|
||||
- Updating from Source (M1)
|
||||
- Updating from Release Package (M2)
|
||||
- Updating Docker Installation (M3)
|
||||
- Updating Docker Compose Installation (M4)
|
||||
- Updating Home Assistant Add-on Installation (M5)
|
||||
|
||||
Choose the section based on how you originally [installed EOS](install-page).
|
||||
|
||||
:::{admonition} Tip
|
||||
:class: Note
|
||||
If you need to revert instead, see the see the [Revert Guideline](revert-page).
|
||||
:::
|
||||
|
||||
## Updating from Source (M1)
|
||||
|
||||
```{eval-rst}
|
||||
.. tabs::
|
||||
|
||||
.. tab:: Windows
|
||||
|
||||
.. code-block:: powershell
|
||||
|
||||
git pull origin main
|
||||
.venv\Scripts\pip install -r requirements.txt --upgrade
|
||||
|
||||
.. tab:: Linux
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
git pull origin main
|
||||
.venv/bin/pip install -r requirements.txt --upgrade
|
||||
```
|
||||
|
||||
Restart EOS normally.
|
||||
|
||||
## Updating from Release Package (M2)
|
||||
|
||||
1. Download new release
|
||||
2. Extract to a new directory
|
||||
3. Recreate virtual environment & reinstall dependencies
|
||||
4. Optionally remove previous directory
|
||||
|
||||
Follow steps from [Installation from Release Package (GitHub) (M2)](install-page).
|
||||
|
||||
## Updating Docker Installation (M3)
|
||||
|
||||
```bash
|
||||
docker pull akkudoktor/eos:latest
|
||||
docker stop akkudoktoreos
|
||||
docker rm akkudoktoreos
|
||||
```
|
||||
|
||||
Then start the container again using your normal `docker run` command.
|
||||
|
||||
## Updating Docker Compose Installation (M4)
|
||||
|
||||
1. Stop & remove existing container
|
||||
|
||||
```bash
|
||||
docker stop akkudoktoreos
|
||||
docker rm akkudoktoreos
|
||||
```
|
||||
|
||||
2. Update source (if using source checkout) — see M1 or M2
|
||||
3. Rebuild & start
|
||||
|
||||
```bash
|
||||
docker compose up --build
|
||||
```
|
||||
|
||||
## Verify Docker Update (M3/M4)
|
||||
|
||||
Check logs:
|
||||
|
||||
```bash
|
||||
docker logs akkudoktoreos
|
||||
```
|
||||
|
||||
Then visit:
|
||||
|
||||
- API: [http://localhost:8503/docs](http://localhost:8503/docs)
|
||||
- UI: [http://localhost:8504](http://localhost:8504)
|
||||
|
||||
## Updating Home Assistant Add-on Installation (M5)
|
||||
|
||||
1. Open 'Home Assistant' and navigate to 'Settings → Add-ons'.
|
||||
2. Select the 'Akkudoktor-EOS' add-on from your installed add-ons.
|
||||
3. If an update is available, click 'Update'.
|
||||
4. Wait for the update process to finish, then restart the add-on if prompted.
|
||||
|
||||
If you installed Akkudoktor-EOS from a custom repository and no update appears, open the Add-on
|
||||
Store, click the '⋮' menu in the top right, and choose 'Reload' to refresh the repository.
|
||||
|
||||
## Backup Recommendation
|
||||
|
||||
Before updating, back up your config:
|
||||
|
||||
```bash
|
||||
EOS.config.json
|
||||
```
|
||||
|
||||
EOS also maintains internal configuration backups.
|
||||
@@ -28,6 +28,7 @@ develop/getting_started.md
|
||||
|
||||
develop/CONTRIBUTING.md
|
||||
develop/install.md
|
||||
akkudoktoreos/configuration.md
|
||||
develop/update.md
|
||||
develop/revert.md
|
||||
|
||||
|
||||
Reference in New Issue
Block a user