David
EMHASS
Options
The Home Assistant instance URL
empty
Enter the URL of your Home Assistant instance. This defaults to empty. If using the supervisor you can leave this to the default empty value.
A Long-Lived Access Token
empty
This can be created from the Lovelace profile page. This defaults to empty. If using the supervisor you can leave this to the default empty value.
Define the type of cost function
profit
cost
self-consumption
This is optional and the options are profit (default), cost and self-consumption
The time step to resample retrieved data from hass
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. Defaults to 30.
The number of history days to retrieve for perfect-optim
2
We will retrieve data from now and up to historic_days_to_retrieve days. Defaults to 2. This will be used for the perfect-optim task.
Set the method for timestamp rounding
nearest
options are first, last and nearest.
Set the total PV production to sell
Set this parameter to true to consider that all the PV power produced is injected to the grid. No direct self-consumption. The default is false, for as system with direct self-consumption.
Linear programming solver
COIN_CMD
Set the name of the linear programming solver that will be used. Defaults to COIN_CMD. The options are PULP_CBC_CMD, GLPK_CMD and COIN_CMD.
The path to the linear programming solver
/usr/bin/cbc
Set the path to the LP solver. Defaults to /usr/bin/cbc.
Set no charge from grid condition
Set this to true if you want to forbidden to charge the battery from the grid. The battery will only be charged from excess PV.
The Home Assistant sensor for PV power production
sensor.power_photovoltaics
This is the name of the photovoltaic produced power sensor in Watts from Home Assistant. For example sensor.power_photovoltaics.
The Home Assistant sensor for the load power without the deferrable loads
sensor.power_load_no_var_loads
The name of the household power consumption sensor in Watts from Home Assistant. The deferrable loads that we will want to include in the optimization problem should be substracted from this sensor in HASS. For example sensor.power_load_no_var_loads.
The number of deferrable loads
2
Define the number of deferrable loads to consider. Defaults to 2.
The nominal power for each deferrable load in Watts
1
2
3
- nominal_power_of_deferrable_loads: 3000
- nominal_power_of_deferrable_loads: 750
This is a list of elements, the number of elements should be consistent with the number of deferrable loads defined before.
The total number of hours that each deferrable load should operate
1
2
3
- operating_hours_of_each_deferrable_load: 5
- operating_hours_of_each_deferrable_load: 8
A list of elements.
This is a list of start hours of peak hours periods
1
2
3
- peak_hours_periods_start_hours: “02:54”
- peak_hours_periods_start_hours: “17:24”
A list of hours in 24h HH:MM format.
This is a list of end hours of peak hours periods
1
2
3
- peak_hours_periods_end_hours: “15:24”
- peak_hours_periods_end_hours: “20:24”
A list of hours in 24h HH:MM format.
A list to define if we should treat each deferrable load as a semi-continuous variable
1
2
3
- treat_deferrable_load_as_semi_cont: true
- treat_deferrable_load_as_semi_cont: true
Semi-continuous variables are variables that can take either their nominal value or zero.
The cost of the electrical energy during peak hours
0.0032
The cost of the electrical energy from the grid during peak hours in €/kWh. Defaults to 0.1907.
The cost of the electrical energy during non-peak hours
0.0027
The cost of the electrical energy from the grid during non-peak hours in €/kWh. Defaults to 0.1419.
The paid price for energy injected to the grid
0.065
The paid price for energy injected to the grid from excedent PV production in €/kWh. Defaults to 0.065.
The maximum power from the grid
9000
The maximum power that can be supplied by the utility grid in Watts. Defaults to 9000.
A list of the PV module model
1
2
- pv_module_model: CSUN_Eurasia_Energy_Systems_Industry_and_Trade_CSUN295_60M
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 ‘_’.
A list of the PV inverter model
1
2
- pv_inverter_model: Fronius_International_GmbH__Fronius_Primo_5_0_1_208_240__240V_
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 ‘_’.
The tilt angle of your solar panels
1
2
- surface_tilt: 30
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).
The azimuth of your PV installation
1
2
- surface_azimuth: 205
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).
The number of modules per string
1
2
- modules_per_string: 16
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 and one west-facing array.
The number of used strings per inverter
1
2
- strings_per_inverter: 1
Defaults to 1. This parameter can be a list of integers to enable the simulation of mixed orientation systems, for example one east-facing array and one west-facing array.
Set if a battery is present
Set to True if we should consider an energy storage device such as a Li-Ion battery. Defaults to False.
The maximum discharge power in Watts
6000
Defaults to 1000.
The maximum charge power in Watts
13000
Defaults to 1000.
The discharge efficiency
0
Defaults to 0.95.
The charge efficiency
0.95
Defaults to 0.95.
The total capacity of the battery stack in Wh
13500
Defaults to 5000.
The minimun allowable battery state of charge
0.3
Defaults to 0.3.
The maximum allowable battery state of charge
0.9
Defaults to 0.9.
The desired battery state of charge at the end of each optimization cycle
0.6
Defaults to 0.6.
Network
Change the ports on your host that are exposed by the add-on
5000
5000/tcp
5000/tcp
and first run log
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun emhass (no readiness notification)
s6-rc: info: service legacy-services successfully started
web_server INFO Launching the emhass webserver at: http://0.0.0.0:5000
web_server INFO Home Assistant data fetch will be performed using url: http://supervisor/core/api
web_server INFO The data path is: /share
web_server INFO Using core emhass version: 0.4.3
waitress INFO Serving on http://0.0.0.0:5000```
Pat