Skip to content

Commit 8fde6ba

Browse files
Merge pull request #82 from GeoDerp/data-path-param
web_server addon mode init data_path options param #223
2 parents 16c3ab9 + 0f4a2e4 commit 8fde6ba

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

emhass/config.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ ingress_stream: true
2626
panel_icon: mdi:home-lightning-bolt-outline
2727
panel_title: EMHASS
2828
environment:
29-
OPTIONS_PATH: '/data/options.json'
30-
CONFIG_PATH: '/app/config_emhass.yaml'
31-
DATA_PATH: '/data/'
29+
OPTIONS_PATH: "/data/options.json"
30+
CONFIG_PATH: "/app/config_emhass.yaml"
31+
DATA_PATH: "/data/"
3232
options:
3333
logging_level: INFO
34+
data_path: default
3435
costfun: profit
3536
sensor_power_photovoltaics: sensor.power_photovoltaics
3637
sensor_power_load_no_var_loads: sensor.power_load_no_var_loads
@@ -84,6 +85,7 @@ schema:
8485
hass_url: "str?" #optional
8586
long_lived_token: "password?" #optional
8687
logging_level: "list(DEBUG|INFO|WARNING|ERROR)?"
88+
data_path: "list(default|/data/|/share/)?"
8789
costfun: "list(profit|cost|self-consumption)?"
8890
sensor_power_photovoltaics: "str?"
8991
sensor_power_load_no_var_loads: "str?"

emhass/translations/en.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ configuration:
1111
logging_level:
1212
name: logging_level, Set the logger level
1313
description: (Default INFO) This sets the logger level. Change to WARNING or ERROR to reduce logging if needed.
14+
data_path:
15+
name: data_path, Set folder path where EMHASS data will be stored
16+
description: (Default default) Selecting /data/ will store data in an enclosed folder, only assessable by the addon itself. Select /share/ to store data in the mounted share folder, accessible outside of the Addon.
1417
optimization_time_step:
1518
name: optimization_time_step, The time step to resample retrieved data from hass
1619
description: (Default 30). This parameter is given in minutes. It should not be defined too low or you will run into memory problems when defining the Linear Programming optimization.
@@ -106,22 +109,22 @@ configuration:
106109
description: A list of elements. (number of items = number_of_deferrable_loads)
107110
list_peak_hours_periods_start_hours:
108111
name: list_peak_hours_periods_start_hours, The total number of hours that each deferrable load should operate
109-
description: A list of hours in 24h HH:MM format (number of items = number_of_deferrable_loads)
112+
description: A list of hours in 24h HH:MM format (number of items = number_of_deferrable_loads)
110113
list_peak_hours_periods_end_hours:
111114
name: list_peak_hours_periods_end_hours, This is a list of end hours of peak hours periods
112-
description: A list of hours in 24h HH:MM format. (number of items = number_of_deferrable_loads)
115+
description: A list of hours in 24h HH:MM format. (number of items = number_of_deferrable_loads)
113116
list_start_timesteps_of_each_deferrable_load:
114117
name: list_start_timesteps_of_each_deferrable_load, The timestep as from which each deferrable load is allowed to operate. Operation before this timestep is not allowed.
115-
description: (Default 0). A list of elements. If value 0 is given, the deferrable load will be optimized as from the beginning of the complete prediction horizon window. (number of items = number_of_deferrable_loads)
118+
description: (Default 0). A list of elements. If value 0 is given, the deferrable load will be optimized as from the beginning of the complete prediction horizon window. (number of items = number_of_deferrable_loads)
116119
list_end_timesteps_of_each_deferrable_load:
117120
name: list_end_timesteps_of_each_deferrable_load,The timestep before which each deferrable load should operate. Operation after this timestep is not allowed.
118-
description: (Default 0). A list of elements. If value 0 is given, the deferrable load optimization window will extend up to the end of the prediction horizon window. (number of items = number_of_deferrable_loads)
121+
description: (Default 0). A list of elements. If value 0 is given, the deferrable load optimization window will extend up to the end of the prediction horizon window. (number of items = number_of_deferrable_loads)
119122
list_treat_deferrable_load_as_semi_cont:
120123
name: list_treat_deferrable_load_as_semi_cont, Treat each deferrable load as a semi-continuous variable
121124
description: "(Default treat_deferrable_load_as_semi_cont: true). Semi-continuous variables are variables that can take either their nominal value or zero."
122125
list_set_deferrable_load_single_constant:
123126
name: list_set_deferrable_load_single_constant, Set each deferrable load as a constant fixed value variable with just one startup for each optimization task (ex. each 24h)
124-
description: "(Default treat_deferrable_load_as_semi_cont: false). Options are True or False (to enable or disable)"
127+
description: "(Default treat_deferrable_load_as_semi_cont: false). Options are True or False (to enable or disable)"
125128
load_peak_hours_cost:
126129
name: load_peak_hours_cost, The cost of the electrical energy during peak hours
127130
description: (Default 0.1907). The cost of the electrical energy from the grid during peak hours in €/kWh.

0 commit comments

Comments
 (0)