Skip to content

Commit 09f972c

Browse files
committedAug 31, 2024
updated add-on to match PR, commented actions that wont be used
1 parent 523e1e1 commit 09f972c

13 files changed

+206
-625
lines changed
 

‎.devcontainer/devcontainer.json

+18-14
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,22 @@
77
"containerEnv": {
88
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}"
99
},
10-
"extensions": ["timonwong.shellcheck", "esbenp.prettier-vscode"],
11-
"mounts": [ "type=volume,target=/var/lib/docker" ],
12-
"settings": {
13-
"terminal.integrated.profiles.linux": {
14-
"zsh": {
15-
"path": "/usr/bin/zsh"
10+
"customizations": {
11+
"vscode": {
12+
"extensions": ["timonwong.shellcheck", "esbenp.prettier-vscode"],
13+
"settings": {
14+
"terminal.integrated.profiles.linux": {
15+
"zsh": {
16+
"path": "/usr/bin/zsh"
17+
}
18+
},
19+
"terminal.integrated.defaultProfile.linux": "zsh",
20+
"editor.formatOnPaste": false,
21+
"editor.formatOnSave": true,
22+
"editor.formatOnType": true,
23+
"files.trimTrailingWhitespace": true
1624
}
17-
},
18-
"terminal.integrated.defaultProfile.linux": "zsh",
19-
"editor.formatOnPaste": false,
20-
"editor.formatOnSave": true,
21-
"editor.formatOnType": true,
22-
"files.trimTrailingWhitespace": true
23-
}
24-
}
25+
}
26+
},
27+
"mounts": ["type=volume,target=/var/lib/docker"]
28+
}

‎.github/workflows/build_test.yaml

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
name: "EMHASS-Add-on Build Test"
1+
# name: "EMHASS-Add-on Build Test"
22

3-
on:
4-
pull_request:
5-
workflow_dispatch: #on manuall trigger
6-
jobs:
7-
build:
8-
strategy:
9-
fail-fast: false
10-
matrix:
11-
architecture: [amd64,aarch64,armhf,armv7]
12-
name: Test action build
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Checkout the repository
16-
uses: actions/checkout@v4
17-
- name: Test_Build_${{ matrix.architecture }}
18-
uses: home-assistant/builder@master
19-
with:
20-
args: |
21-
--test \
22-
--${{ matrix.architecture }} \
23-
--target emhass
3+
# on:
4+
# pull_request:
5+
# workflow_dispatch: #on manuall trigger
6+
# jobs:
7+
# build:
8+
# strategy:
9+
# fail-fast: false
10+
# matrix:
11+
# architecture: [amd64,aarch64,armhf,armv7]
12+
# name: Test action build
13+
# runs-on: ubuntu-latest
14+
# steps:
15+
# - name: Checkout the repository
16+
# uses: actions/checkout@v4
17+
# - name: Test_Build_${{ matrix.architecture }}
18+
# uses: home-assistant/builder@master
19+
# with:
20+
# args: |
21+
# --test \
22+
# --${{ matrix.architecture }} \
23+
# --target emhass

‎.github/workflows/publish_docker.yaml

+28-28
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
name: "Publish"
1+
# name: "Publish"
22

3-
on:
4-
release:
5-
types: [published]
3+
# on:
4+
# release:
5+
# types: [published]
66

7-
jobs:
8-
publish:
9-
timeout-minutes: 40
10-
strategy:
11-
fail-fast: false
12-
matrix:
13-
architecture: [amd64,aarch64,armhf,armv7]
14-
name: Publish-${{ matrix.architecture }}
15-
runs-on: ubuntu-latest
16-
steps:
17-
- name: Checkout the repository
18-
uses: actions/checkout@v4
19-
- name: Login to DockerHub
20-
uses: docker/login-action@v3
21-
with:
22-
username: ${{ secrets.DOCKERHUB_USERNAME }}
23-
password: ${{ secrets.DOCKERHUB_TOKEN }}
24-
- name: Publish
25-
uses: home-assistant/builder@master
26-
with:
27-
args: |
28-
--${{ matrix.architecture }} \
29-
--target emhass \
30-
--docker-hub davidusb
7+
# jobs:
8+
# publish:
9+
# timeout-minutes: 40
10+
# strategy:
11+
# fail-fast: false
12+
# matrix:
13+
# architecture: [amd64,aarch64,armhf,armv7]
14+
# name: Publish-${{ matrix.architecture }}
15+
# runs-on: ubuntu-latest
16+
# steps:
17+
# - name: Checkout the repository
18+
# uses: actions/checkout@v4
19+
# - name: Login to DockerHub
20+
# uses: docker/login-action@v3
21+
# with:
22+
# username: ${{ secrets.DOCKERHUB_USERNAME }}
23+
# password: ${{ secrets.DOCKERHUB_TOKEN }}
24+
# - name: Publish
25+
# uses: home-assistant/builder@master
26+
# with:
27+
# args: |
28+
# --${{ matrix.architecture }} \
29+
# --target emhass \
30+
# --docker-hub davidusb
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
name: "Publish Manual Dispatch amd64/aarch64"
1+
# name: "Publish Manual Dispatch amd64/aarch64"
22

3-
on: [workflow_dispatch]
3+
# on: [workflow_dispatch]
44

5-
jobs:
6-
publish_amd64:
7-
name: Publish-amd64
8-
runs-on: ubuntu-latest
9-
steps:
10-
- name: Checkout the repository
11-
uses: actions/checkout@v4
12-
- name: Login to DockerHub
13-
uses: docker/login-action@v3
14-
with:
15-
username: ${{ secrets.DOCKERHUB_USERNAME }}
16-
password: ${{ secrets.DOCKERHUB_TOKEN }}
17-
- name: Publish
18-
uses: home-assistant/builder@master
19-
with:
20-
args: |
21-
--amd64 \
22-
--target emhass \
23-
--docker-hub davidusb
24-
publish_aarch64:
25-
name: Publish-aarch64
26-
runs-on: ubuntu-latest
27-
steps:
28-
- name: Checkout the repository
29-
uses: actions/checkout@v4
30-
- name: Login to DockerHub
31-
uses: docker/login-action@v3
32-
with:
33-
username: ${{ secrets.DOCKERHUB_USERNAME }}
34-
password: ${{ secrets.DOCKERHUB_TOKEN }}
35-
- name: Publish
36-
uses: home-assistant/builder@master
37-
with:
38-
args: |
39-
--aarch64 \
40-
--target emhass \
41-
--docker-hub davidusb
5+
# jobs:
6+
# publish_amd64:
7+
# name: Publish-amd64
8+
# runs-on: ubuntu-latest
9+
# steps:
10+
# - name: Checkout the repository
11+
# uses: actions/checkout@v4
12+
# - name: Login to DockerHub
13+
# uses: docker/login-action@v3
14+
# with:
15+
# username: ${{ secrets.DOCKERHUB_USERNAME }}
16+
# password: ${{ secrets.DOCKERHUB_TOKEN }}
17+
# - name: Publish
18+
# uses: home-assistant/builder@master
19+
# with:
20+
# args: |
21+
# --amd64 \
22+
# --target emhass \
23+
# --docker-hub davidusb
24+
# publish_aarch64:
25+
# name: Publish-aarch64
26+
# runs-on: ubuntu-latest
27+
# steps:
28+
# - name: Checkout the repository
29+
# uses: actions/checkout@v4
30+
# - name: Login to DockerHub
31+
# uses: docker/login-action@v3
32+
# with:
33+
# username: ${{ secrets.DOCKERHUB_USERNAME }}
34+
# password: ${{ secrets.DOCKERHUB_TOKEN }}
35+
# - name: Publish
36+
# uses: home-assistant/builder@master
37+
# with:
38+
# args: |
39+
# --aarch64 \
40+
# --target emhass \
41+
# --docker-hub davidusb
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
name: "Publish Manual Dispatch armhf"
1+
# name: "Publish Manual Dispatch armhf"
22

3-
on: [workflow_dispatch]
3+
# on: [workflow_dispatch]
44

5-
jobs:
6-
publish_armhf:
7-
name: Publish-armhf
8-
runs-on: ubuntu-latest
9-
steps:
10-
- name: Checkout the repository
11-
uses: actions/checkout@v4
12-
- name: Login to DockerHub
13-
uses: docker/login-action@v3
14-
with:
15-
username: ${{ secrets.DOCKERHUB_USERNAME }}
16-
password: ${{ secrets.DOCKERHUB_TOKEN }}
17-
- name: Publish
18-
uses: home-assistant/builder@master
19-
with:
20-
args: |
21-
--armhf \
22-
--target emhass \
23-
--docker-hub davidusb
5+
# jobs:
6+
# publish_armhf:
7+
# name: Publish-armhf
8+
# runs-on: ubuntu-latest
9+
# steps:
10+
# - name: Checkout the repository
11+
# uses: actions/checkout@v4
12+
# - name: Login to DockerHub
13+
# uses: docker/login-action@v3
14+
# with:
15+
# username: ${{ secrets.DOCKERHUB_USERNAME }}
16+
# password: ${{ secrets.DOCKERHUB_TOKEN }}
17+
# - name: Publish
18+
# uses: home-assistant/builder@master
19+
# with:
20+
# args: |
21+
# --armhf \
22+
# --target emhass \
23+
# --docker-hub davidusb
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
name: "Publish Manual Dispatch armv7"
1+
# name: "Publish Manual Dispatch armv7"
22

3-
on: [workflow_dispatch]
3+
# on: [workflow_dispatch]
44

5-
jobs:
6-
publish_armv7:
7-
name: Publish-armv7
8-
runs-on: ubuntu-latest
9-
steps:
10-
- name: Checkout the repository
11-
uses: actions/checkout@v4
12-
- name: Login to DockerHub
13-
uses: docker/login-action@v3
14-
with:
15-
username: ${{ secrets.DOCKERHUB_USERNAME }}
16-
password: ${{ secrets.DOCKERHUB_TOKEN }}
17-
- name: Publish
18-
uses: home-assistant/builder@master
19-
with:
20-
args: |
21-
--armv7 \
22-
--target emhass \
23-
--docker-hub davidusb
5+
# jobs:
6+
# publish_armv7:
7+
# name: Publish-armv7
8+
# runs-on: ubuntu-latest
9+
# steps:
10+
# - name: Checkout the repository
11+
# uses: actions/checkout@v4
12+
# - name: Login to DockerHub
13+
# uses: docker/login-action@v3
14+
# with:
15+
# username: ${{ secrets.DOCKERHUB_USERNAME }}
16+
# password: ${{ secrets.DOCKERHUB_TOKEN }}
17+
# - name: Publish
18+
# uses: home-assistant/builder@master
19+
# with:
20+
# args: |
21+
# --armv7 \
22+
# --target emhass \
23+
# --docker-hub davidusb

‎emhass/DOCS.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
<!-- markdown file presented on the documentation tab -->
2+
13
# EMHASS Add-on Documentation
4+
25
<div>
36
<a style="text-decoration:none" href="https://emhass.readthedocs.io/en/latest/">
47
<img src="https://raw.githubusercontent.com/davidusb-geek/emhass/master/docs/images/Documentation_button.svg" alt="EMHASS Documentation">
@@ -19,7 +22,6 @@
1922

2023
## This is the documentation for the Add-on of **EMHASS: Energy Management for Home Assistant**
2124

22-
2325
EMHASS is a Python module proposing an **optimized energy management** approach using the Linear Programming (LP) optimization technique.
2426

2527
## What is this?
@@ -102,8 +104,8 @@ If your specific model is not found in these lists then solution (1) is to pick
102104

103105
Solution (2) would be to use SolCast and pass that data directly to emhass as a list of values from a template. Take a look at this example here: [https://emhass.readthedocs.io/en/latest/forecasts.html#example-using-solcast-forecast-amber-prices](https://emhass.readthedocs.io/en/latest/forecasts.html#example-using-solcast-forecast-amber-prices)
104106

105-
- pv_module_model: The PV module model. 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 '_'.
106-
- pv_inverter_model: The PV inverter model. For example: 'Fronius_International_GmbH__Fronius_Primo_5_0_1_208_240__240V_'. 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 '_'.
107+
- pv*module_model: The PV module model. 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 '*'.
108+
- pv*inverter_model: The PV inverter model. For example: 'Fronius_International_GmbH**Fronius_Primo_5_0_1_208_240**240V*'. 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 '\_'.
107109
- surface_tilt: The tilt angle of your solar panels. This is a value between 0 and 90. Defaults to 30. This parameter can be a list of integers to enable the simulation of mixed orientation systems, for example one east-facing array (azimuth=90) and one west-facing array (azimuth=270).
108110
- surface_azimuth: The azimuth of your PV installation. This is a value between 0 and 360. Defaults to 205. This parameter can be a list of integers to enable the simulation of mixed orientation systems, for example one east-facing array (azimuth=90) and one west-facing array (azimuth=270).
109111
- modules_per_string: The number of modules per string. Defaults to 16. This parameter can be a list of integers to enable the simulation of mixed orientation systems, for example one east-facing array (azimuth=90) and one west-facing array (azimuth=270).
@@ -324,11 +326,10 @@ If you find any problems with the code, you can open new issues in the EMHASS or
324326
<img src="https://raw.githubusercontent.com/davidusb-geek/emhass/master/docs/images/EMHASS_Add_on_button.svg" alt="EMHASS-Add-on Issues">
325327
</a>
326328
</br>
327-
*For any add-on specific issues. E.g. configuration page, add-on installation or add-on updating.*
329+
_For any add-on specific issues. E.g. configuration page, add-on installation or add-on updating._
328330
</br></br>
329331
<a style="text-decoration:none" href="https://github.com/davidusb-geek/emhass/issues">
330332
<img src="https://raw.githubusercontent.com/davidusb-geek/emhass/master/docs/images/EMHASS_button.svg" alt="EMHASS Issues">
331333
</a>
332334
</br>
333-
*For for any other EMHASS issues issues.*
334-
335+
_For for any other EMHASS issues issues._

‎emhass/Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
## EMHASS-Add-On Docker
2-
ARG BUILD_FROM
3-
ARG build_version=0.2.0
1+
# ## EMHASS-Add-On Docker
2+
# ARG BUILD_FROM
3+
# ARG build_version=0.2.0
44

5-
FROM ${BUILD_FROM}:${build_version} AS base
5+
# FROM ${BUILD_FROM}:${build_version} AS base

‎emhass/README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- markdown file presented on the main addon info tab -->
2+
13
# EMHASS Add-on
24

35
### A Home Assistant Add-on for the EMHASS module: Energy Management for Home Assistant
@@ -42,7 +44,6 @@ For any Issues/Feature Requests for the EMHASS core module, create a new issue h
4244
</a>
4345
</div>
4446

45-
4647
## Installation
4748

4849
To install add the EMHASS Add-on repository in the Home Assistant store, follow [these steps](https://www.home-assistant.io/common-tasks/os/#installing-third-party-add-ons)
@@ -56,10 +57,11 @@ Be patient, the installation may take some time depending on your hardware.
5657
When the installation has finished go to the `Configuration` tab to set the add-on parameters.
5758

5859
## Developing EMHASS/EMHASS-Add-on
60+
5961
- EMHASS
60-
- For those who want to develop the EMHASS package itself. Have a look at the [Develop page](https://emhass.readthedocs.io/en/latest/develop.html). *(EMHASS docs)*
62+
- For those who want to develop the EMHASS package itself. Have a look at the [Develop page](https://emhass.readthedocs.io/en/latest/develop.html). _(EMHASS docs)_
6163
- EMHASS-Add-on
62-
- For those who want to test the Home Assistant integration of EMHASS. Have a look at [Test.md](./emhass/Test.md).
64+
- For those who want to test the Home Assistant integration of EMHASS. Have a look at [Test.md](./emhass/Test.md).
6365

6466
## License
6567

‎emhass/build.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
build_from: #choose between debian or raspbian images
2-
amd64: ghcr.io/davidusb-geek/emhass-amd64
3-
armhf: ghcr.io/davidusb-geek/emhass-armhf
4-
armv7: ghcr.io/davidusb-geek/emhass-armv7
5-
aarch64: ghcr.io/davidusb-geek/emhass-aarch64
6-
args:
7-
build_version: v0.2.0 #In Dockerfile, which version of emhass to pull from
1+
# build_from: #choose between debian or raspbian images
2+
# amd64: ghcr.io/geoderp/emhass
3+
# armhf: ghcr.io/geoderp/emhass
4+
# armv7: ghcr.io/geoderp/emhass
5+
# aarch64: ghcr.io/geoderp/emhass
6+
# args:
7+
# build_version: v0.2.0 #In Dockerfile, which version of emhass to pull from

‎emhass/config.yml

+11-174
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: EMHASS
22
description: Energy Management for Home Assistant
33
url: https://github.com/davidusb-geek/emhass
4-
version: 0.2.0
4+
version: v0.20.0
55
slug: emhass
66
arch:
77
- aarch64
88
- amd64
99
- armhf
1010
- armv7
11-
image: "ghcr.io/davidusb-geek/emhass-{arch}" #set if use image from DockerHub
11+
image: "ghcr.io/geoderp/emhass" #set if use image container repository
1212
ports:
1313
5000/tcp: 5000
1414
ports_description:
@@ -30,179 +30,16 @@ environment:
3030
CONFIG_PATH: "/app/config_emhass.yaml"
3131
DATA_PATH: "/data/"
3232
options:
33-
logging_level: INFO
3433
data_path: default
35-
costfun: profit
36-
sensor_power_photovoltaics: sensor.power_photovoltaics
37-
sensor_power_load_no_var_loads: sensor.power_load_no_var_loads
38-
list_sensor_replace_zero:
39-
- sensor_replace_zero: "sensor.power_photovoltaics"
40-
- sensor_replace_zero: "sensor.power_load_no_var_loads"
41-
list_sensor_linear_interp:
42-
- sensor_linear_interp: "sensor.power_photovoltaics"
43-
- sensor_linear_interp: "sensor.power_load_no_var_loads"
44-
set_total_pv_sell: false
45-
set_nocharge_from_grid: false
46-
set_nodischarge_to_grid: false
47-
maximum_power_from_grid: 9000
48-
maximum_power_to_grid: 9000
49-
number_of_deferrable_loads: 2
50-
list_nominal_power_of_deferrable_loads:
51-
- nominal_power_of_deferrable_loads: 3000
52-
- nominal_power_of_deferrable_loads: 750
53-
list_operating_hours_of_each_deferrable_load:
54-
- operating_hours_of_each_deferrable_load: 5
55-
- operating_hours_of_each_deferrable_load: 8
56-
list_start_timesteps_of_each_deferrable_load:
57-
- start_timesteps_of_each_deferrable_load: 0
58-
- start_timesteps_of_each_deferrable_load: 0
59-
list_end_timesteps_of_each_deferrable_load:
60-
- end_timesteps_of_each_deferrable_load: 0
61-
- end_timesteps_of_each_deferrable_load: 0
62-
list_peak_hours_periods_start_hours:
63-
- peak_hours_periods_start_hours: "05:54"
64-
- peak_hours_periods_start_hours: "10:24"
65-
list_peak_hours_periods_end_hours:
66-
- peak_hours_periods_end_hours: "09:24"
67-
- peak_hours_periods_end_hours: "11:54"
68-
list_treat_deferrable_load_as_semi_cont:
69-
- treat_deferrable_load_as_semi_cont: true
70-
- treat_deferrable_load_as_semi_cont: true
71-
list_set_deferrable_load_single_constant:
72-
- set_deferrable_load_single_constant: false
73-
- set_deferrable_load_single_constant: false
74-
list_set_deferrable_startup_penalty:
75-
- set_deferrable_startup_penalty: 0.0
76-
- set_deferrable_startup_penalty: 0.0
77-
load_peak_hours_cost: 0.1907
78-
load_offpeak_hours_cost: 0.1419
79-
photovoltaic_production_sell_price: 0.065
80-
list_pv_module_model:
81-
- pv_module_model: CSUN_Eurasia_Energy_Systems_Industry_and_Trade_CSUN295_60M
82-
list_pv_inverter_model:
83-
- pv_inverter_model: Fronius_International_GmbH__Fronius_Primo_5_0_1_208_240__240V_
84-
list_surface_tilt:
85-
- surface_tilt: 30
86-
list_surface_azimuth:
87-
- surface_azimuth: 205
88-
list_modules_per_string:
89-
- modules_per_string: 16
90-
list_strings_per_inverter:
91-
- strings_per_inverter: 1
92-
inverter_is_hybrid: false
93-
compute_curtailment: false
94-
set_use_battery: false
95-
battery_nominal_energy_capacity: 5000
9634
schema:
9735
hass_url: "str?" #optional
9836
long_lived_token: "password?" #optional
99-
logging_level: "list(DEBUG|INFO|WARNING|ERROR)?"
100-
data_path: "list(default|/data/|/share/)?"
101-
costfun: "list(profit|cost|self-consumption)?"
102-
sensor_power_photovoltaics: "str?"
103-
sensor_power_load_no_var_loads: "str?"
104-
list_sensor_replace_zero:
105-
- sensor_replace_zero: "str?"
106-
list_sensor_linear_interp:
107-
- sensor_linear_interp: "str?"
108-
optimization_time_step: "int(5,1440)?" #optional
109-
historic_days_to_retrieve: "int(2,365)?" #optional
110-
method_ts_round: "list(nearest|first|last)?" #optional
111-
set_total_pv_sell: "bool?"
112-
lp_solver: "list(PULP_CBC_CMD|GLPK_CMD|COIN_CMD)?" #optional
113-
lp_solver_path: "str?" #optional
114-
load_negative: "bool?" #optional
115-
set_zero_min: "bool?" #optional
116-
set_nocharge_from_grid: "bool?"
117-
set_nodischarge_to_grid: "bool?"
118-
load_forecast_method: "list(naive|csv|list|mlforecaster)?" #optional
119-
delta_forecast_daily: "int?" #optional
120-
weather_forecast_method: "list(scrapper|solcast|csv|solar.forecast)?" #optional
121-
#passed by the HA
122-
# time_zone: "match((\\w+)?(\\/)(\\w+))?"
123-
# Latitude: "float?"
124-
# Longitude: "float?"
125-
#not used
126-
# Altitude: "float?"
127-
optional_solcast_api_key: "password?" #optional
128-
optional_solcast_rooftop_id: "str?" #optional
129-
optional_solar_forecast_kwp: "float?" #optional
130-
maximum_power_from_grid: "int(0,)?"
131-
maximum_power_to_grid: "int(0,)?"
132-
number_of_deferrable_loads: "int(1,10)?"
133-
list_nominal_power_of_deferrable_loads:
134-
- nominal_power_of_deferrable_loads: "int(0,)?"
135-
list_operating_hours_of_each_deferrable_load:
136-
- operating_hours_of_each_deferrable_load: "int(0,)?"
137-
list_start_timesteps_of_each_deferrable_load:
138-
- start_timesteps_of_each_deferrable_load: "int(0,)?"
139-
list_end_timesteps_of_each_deferrable_load:
140-
- end_timesteps_of_each_deferrable_load: "int(0,)?"
141-
list_peak_hours_periods_start_hours:
142-
- peak_hours_periods_start_hours: "str?"
143-
list_peak_hours_periods_end_hours:
144-
- peak_hours_periods_end_hours: "str?"
145-
list_treat_deferrable_load_as_semi_cont:
146-
- treat_deferrable_load_as_semi_cont: "bool?"
147-
list_set_deferrable_load_single_constant:
148-
- set_deferrable_load_single_constant: "bool?"
149-
list_set_deferrable_startup_penalty:
150-
- set_deferrable_startup_penalty: "float?"
151-
load_cost_forecast_method: "list(hp_hc_periods|csv)?"
152-
production_price_forecast_method: "list(constant|csv)?" #optional
153-
load_peak_hours_cost: "float(0,)?"
154-
load_offpeak_hours_cost: "float(0,)?"
155-
photovoltaic_production_sell_price: "float(0,)?"
156-
list_pv_module_model:
157-
- pv_module_model: "str?"
158-
list_pv_inverter_model:
159-
- pv_inverter_model: "str?"
160-
list_surface_tilt:
161-
- surface_tilt: "int(0,90)?"
162-
list_surface_azimuth:
163-
- surface_azimuth: "int(0,360)?"
164-
list_modules_per_string:
165-
- modules_per_string: "int(0,)?"
166-
list_strings_per_inverter:
167-
- strings_per_inverter: "int(0,)?"
168-
inverter_is_hybrid: "bool?"
169-
compute_curtailment: "bool?"
170-
set_use_battery: "bool?"
171-
set_battery_dynamic: "bool?" #optional
172-
battery_dynamic_max: "float(0.0,1.0)?" #optional
173-
battery_dynamic_min: "float?" #optional
174-
weight_battery_discharge: "float?" #optional
175-
weight_battery_charge: "float?" #optional
176-
battery_discharge_power_max: "int(0,)?" #optional
177-
battery_charge_power_max: "int(0,)?" #optional
178-
battery_discharge_efficiency: "float(0.0,1.0)?" #optional
179-
battery_charge_efficiency: "float(0.0,1.0)?" #optional
180-
battery_nominal_energy_capacity: "int(0,)?"
181-
battery_minimum_state_of_charge: "float(0.0,1.0)?" #optional
182-
battery_maximum_state_of_charge: "float(0.0,1.0)?" #optional
183-
battery_target_state_of_charge: "float(0.0,1.0)?" #optional
184-
# not implmented
185-
# custom_deferrable_forecast_id:
186-
# - entity_id: "str?"
187-
# - unit_of_measurement: "str?"
188-
# - friendly_name: "str?"
189-
# custom_batt_forecast_id:
190-
# - entity_id: "str?"
191-
# - unit_of_measurement: "str?"
192-
# - friendly_name: "str?"
193-
# custom_grid_forecast_id:
194-
# - entity_id: "str?"
195-
# - unit_of_measurement: "str?"
196-
# - friendly_name: "str?"
197-
# custom_cost_fun_id:
198-
# - entity_id: "str?"
199-
# - unit_of_measurement: "str?"
200-
# - friendly_name: "str?"
201-
# custom_unit_load_cost_id:
202-
# - entity_id: "str?"
203-
# - unit_of_measurement: "str?"
204-
# - friendly_name: "str?"
205-
# custom_unit_prod_price_id:
206-
# - entity_id: "str?"
207-
# - unit_of_measurement: "str?"
208-
# - friendly_name: "str?"
37+
logging_level: "list(DEBUG|INFO|WARNING|ERROR)?" #optional
38+
data_path: "list(default|/data/|/share/)?" #optional
39+
time_zone: "match((\\w+)?(\\/)(\\w+))?" #optional
40+
Latitude: "float?" #optional
41+
Longitude: "float?" #optional
42+
Altitude: "float?" #optional
43+
solcast_api_key: "password?" #optional
44+
solcast_rooftop_id: "str?" #optional
45+
solar_forecast_kwp: "float?" #optional

‎emhass/config_emhass.yaml

-92
This file was deleted.

‎emhass/translations/en.yaml

+23-194
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.