diff --git a/.env b/.env index dadee38d..b12d570a 100644 --- a/.env +++ b/.env @@ -11,7 +11,7 @@ DOCKER_COMPOSE_DATA_DIR=${HOME}/.local/share/net.akkudoktor.eos # ----------------------------------------------------------------------------- # Image / build # ----------------------------------------------------------------------------- -VERSION=0.3.0.dev2610141333450667 +VERSION=0.3.0.dev2610201560628681 PYTHON_VERSION=3.13.15 # ----------------------------------------------------------------------------- diff --git a/config.yaml b/config.yaml index 041fd065..77bbe026 100644 --- a/config.yaml +++ b/config.yaml @@ -6,7 +6,7 @@ # the root directory (no add-on folder as usual). name: "Akkudoktor-EOS" -version: "0.3.0.dev2610141333450667" +version: "0.3.0.dev2610201560628681" slug: "eos" description: "Akkudoktor-EOS add-on" url: "https://github.com/Akkudoktor-EOS/EOS" diff --git a/docs/_generated/openapi.md b/docs/_generated/openapi.md index d6afea19..0d1cb18d 100644 --- a/docs/_generated/openapi.md +++ b/docs/_generated/openapi.md @@ -1,6 +1,6 @@ # Akkudoktor-EOS -**Version**: `v0.3.0.dev2610141333450667` +**Version**: `v0.3.0.dev2610201560628681` **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. diff --git a/openapi.json b/openapi.json index 79352046..a6ff4aaa 100644 --- a/openapi.json +++ b/openapi.json @@ -8,7 +8,7 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "version": "v0.3.0.dev2610141333450667" + "version": "v0.3.0.dev2610201560628681" }, "paths": { "/v1/measurement/battery-capacity/{battery_id}": { diff --git a/src/akkudoktoreos/optimization/genetic0/genetic0solution.py b/src/akkudoktoreos/optimization/genetic0/genetic0solution.py index e1dde0a7..ee97cdd5 100644 --- a/src/akkudoktoreos/optimization/genetic0/genetic0solution.py +++ b/src/akkudoktoreos/optimization/genetic0/genetic0solution.py @@ -547,11 +547,12 @@ class Genetic0Solution(ConfigMixin, Genetic0ParametersBaseModel): if headroom_wh <= 0.0: effective_ac = 0.0 else: - inv_list = self.config.devices.inverters - ac_to_dc_eff = float(inv_list[0].ac_to_dc_efficiency) if inv_list else 1.0 + inv_dict = self.config.devices.inverters + inv = list(inv_dict.values())[0] if inv_dict else None + ac_to_dc_eff = float(inv.ac_to_dc_efficiency) if inv else 1.0 max_ac_cp_w = ( - float(inv_list[0].max_ac_charge_power_w) - if inv_list and inv_list[0].max_ac_charge_power_w is not None + float(inv.max_ac_charge_power_w) + if inv and inv.max_ac_charge_power_w is not None else float(bat.max_charge_power_w) ) max_dc_per_h_wh = effective_ac * max_ac_cp_w * ac_to_dc_eff * ch_eff