Skip to content

Commit a5bcaad

Browse files
committed
Prepared new version v0.8.5
1 parent f8e82ff commit a5bcaad

File tree

7 files changed

+26
-8
lines changed

7 files changed

+26
-8
lines changed

emhass/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## 0.8.5 - 2024-04-01
4+
### Improvement
5+
- Simplified fetch urls to relatives
6+
- Improved code for passed forecast data error handling in utils.py
7+
- Added new tests for forecast longer than 24h by changing parameter `delta_forecast`
8+
- Added new files for updated PV modules and inverters database for use with PVLib
9+
- Added a new webapp to help configuring modules and inverters: [https://emhass-pvlib-database.streamlit.app/](https://emhass-pvlib-database.streamlit.app/)
10+
- Added a new `P_to_grid_max` variable, different from the current `P_from_grid_max` option
11+
### Fix
12+
- style.css auto format and adjusted table styling
13+
- Changed pandas datetime rounding to nonexistent='shift_forward' to help survive DST change
14+
- Dropped support for Python 3.9
15+
316
## 0.8.4 - 2024-03-13
417
### Improvement
518
- Improved documentation

emhass/DOCS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ In the default configuration example the first peak hour will start at 02:54 and
7777

7878
The following parameters are associated with the technical specifications of the PV power plant and the batteries.
7979

80-
- maximum_power_from_grid: The maximum power that can be supplied by the utility grid in Watts. Defaults to 9000.
80+
- maximum_power_from_grid: The maximum power that can be supplied by the utility grid in Watts (consumption). Defaults to 9000.
81+
- maximum_power_to_grid: The maximum power that can be supplied to the utility grid in Watts (injection). Defaults to 9000.
8182

8283
We will define the technical parameters of the PV installation. For the modeling task we rely on the PVLib Python package. For more information see: [https://pvlib-python.readthedocs.io/en/stable/](https://pvlib-python.readthedocs.io/en/stable/)
8384
The complete list of supported modules can be found here: [https://github.com/davidusb-geek/emhass-add-on/files/9234460/sam-library-cec-modules-2019-03-05.csv](https://github.com/davidusb-geek/emhass-add-on/files/9234460/sam-library-cec-modules-2019-03-05.csv)

emhass/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ FROM ${BUILD_FROM} AS base
1010
ARG BUILD_ARCH
1111
ENV BUILD_ARCH=${BUILD_ARCH}
1212

13-
1413
WORKDIR /app
1514
COPY requirements.txt /app/
1615

@@ -66,7 +65,6 @@ RUN apt-get purge -y --auto-remove \
6665
libnetcdf-dev \
6766
&& rm -rf /var/lib/apt/lists/*
6867

69-
7068
#copy config file (on all builds)
7169
COPY config_emhass.yaml /app/
7270

emhass/config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: EMHASS
22
description: Energy Management for Home Assistant
33
url: https://github.com/davidusb-geek/emhass
4-
version: 0.8.4
4+
version: 0.8.5
55
slug: emhass
66
arch:
77
- aarch64
@@ -39,6 +39,7 @@ options:
3939
set_nocharge_from_grid: false
4040
set_nodischarge_to_grid: false
4141
maximum_power_from_grid: 9000
42+
maximum_power_to_grid: 9000
4243
number_of_deferrable_loads: 2
4344
list_nominal_power_of_deferrable_loads:
4445
- nominal_power_of_deferrable_loads: 3000
@@ -89,7 +90,7 @@ schema:
8990
costfun: "list(profit|cost|self-consumption)?"
9091
sensor_power_photovoltaics: "str?"
9192
sensor_power_load_no_var_loads: "str?"
92-
optimization_time_step: "int(10,1440)?" #optional
93+
optimization_time_step: "int(5,1440)?" #optional
9394
historic_days_to_retrieve: "int(2,365)?" #optional
9495
method_ts_round: "list(nearest|first|last)?" #optional
9596
set_total_pv_sell: "bool?"
@@ -112,6 +113,7 @@ schema:
112113
optional_solcast_rooftop_id: "str?" #optional
113114
optional_solar_forecast_kwp: "float?" #optional
114115
maximum_power_from_grid: "int(0,)?"
116+
maximum_power_to_grid: "int(0,)?"
115117
number_of_deferrable_loads: "int(1,10)?"
116118
list_nominal_power_of_deferrable_loads:
117119
- nominal_power_of_deferrable_loads: "int(0,)?"

emhass/config_emhass.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ optim_conf:
6262
weight_battery_charge: 0.0 # weight applied in cost function to battery usage for charge
6363

6464
plant_conf:
65-
P_grid_max: 9000 # The maximum power that can be supplied by the utility grid in Watts
65+
P_from_grid_max: 9000 # The maximum power that can be supplied by the utility grid in Watts
66+
P_to_grid_max: 9000 # The maximum power that can be supplied to the utility grid in Watts
6667
module_model: # The PV module model
6768
- 'CSUN_Eurasia_Energy_Systems_Industry_and_Trade_CSUN295_60M'
6869
inverter_model: # The PV inverter model

emhass/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ flask>=2.0.3
1616
waitress>=2.1.1
1717
plotly>=5.6.0
1818
#EMHASS
19-
emhass==0.8.4
19+
emhass==0.8.5
2020
#git+https://github.com/davidusb-geek/emhass

emhass/translations/en.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ configuration:
139139
description: (Default 0.065). The paid price for energy injected to the grid from excedent PV production in €/kWh.
140140
maximum_power_from_grid:
141141
name: maximum_power_from_grid, The maximum power from the grid
142-
description: (Default 9000). The maximum power that can be supplied by the utility grid in Watts.
142+
description: (Default 9000). The maximum power that can be supplied by the utility grid in Watts (consumption).
143+
maximum_power_to_grid:
144+
name: maximum_power_to_grid, The maximum power to the grid
145+
description: (Default 9000). The maximum power that can be supplied to the utility grid in Watts (injection).
143146
list_pv_module_model:
144147
name: list_pv_module_model, (method=scrapper/solar.forecast) A list of the PV module model
145148
description: For example 'CSUN_Eurasia_Energy_Systems_Industry_and_Trade_CSUN295_60M'. This parameter can be a list of strings to enable the simulation of mixed orientation systems, for example one east-facing array (azimuth=90) and one west-facing array (azimuth=270). When finding the correct model for your installation remember to replace all the special characters in the model name by '_'.

0 commit comments

Comments
 (0)