Skip to content

Commit

Permalink
New release version
Browse files Browse the repository at this point in the history
  • Loading branch information
davidusb-geek committed Sep 14, 2022
1 parent 970f106 commit a5d1475
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
6 changes: 6 additions & 0 deletions emhass/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [0.2.21] - 2022-09-14
### Fix
- Updated default values for a working LP solver.
- Removed option to provide a custom web ui url.
- Following new fixes on emhass v0.3.19

## [0.2.20] - 2022-08-27
### Improvement
- Improving documentation, added more information on forecast page.
Expand Down
5 changes: 2 additions & 3 deletions emhass/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,15 @@ You must follow these steps to make EMHASS work properly:

These are the configuration parameters needed to correctly use this module.

- web_ui_url: Provide the web ui url. Leave this at the default value to have the web ui at localhost. Otherwise provide your custom url.
- hass_url: Enter the URL of your Home Assistant instance. For example: https://myhass.duckdns.org/ or http://localhost/. This defaults to empty. If using the supervisor you can leave this to the default empty value.
- long_lived_token: A Long-Lived Access Token that 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.
- costfun: Define the type of cost function, this is optional and the options are: `profit` (default), `cost`, `self-consumption`
- optimization_time_step: The time step to resample retrieved data from hass. 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.
- historic_days_to_retrieve: We will retrieve data from now and up to days_to_retrieve days. Defaults to 2.
- method_ts_round: Set the method for timestamp rounding, options are: first, last and nearest.
- set_total_pv_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.
- lp_solver: Set the name of the linear programming solver that will be used. Defaults to 'PULP_CBC_CMD'. The options are 'PULP_CBC_CMD', 'GLPK_CMD' and 'COIN_CMD'.
- lp_solver_path: Set the path to the LP solver. Defaults to 'empty'. If using 'COIN_CMD' as the solver you will need to provide the correct path to this solver, ex: '/usr/bin/cbc'.
- lp_solver: 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'.
- lp_solver_path: Set the path to the LP solver. Defaults to '/usr/bin/cbc'.
- sensor_power_photovoltaics: This is the name of the photovoltaic produced power sensor in Watts from Home Assistant. For example: 'sensor.power_photovoltaics'.
- 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'
- number_of_deferrable_loads: Define the number of deferrable loads to consider. Defaults to 2.
Expand Down
8 changes: 3 additions & 5 deletions emhass/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: EMHASS
description: Energy Management for Home Assistant
url: https://github.com/davidusb-geek/emhass
version: 0.2.20
version: 0.2.21
slug: emhass
arch:
- aarch64
Expand All @@ -18,16 +18,15 @@ hassio_role: default
homeassistant_api: true
webui: http://[HOST]:[PORT:5000]
options:
web_ui_url: 0.0.0.0
hass_url: empty
long_lived_token: empty
costfun: profit
optimization_time_step: 30
historic_days_to_retrieve: 2
method_ts_round: nearest
set_total_pv_sell: false
lp_solver: PULP_CBC_CMD
lp_solver_path: empty
lp_solver: COIN_CMD
lp_solver_path: /usr/bin/cbc
sensor_power_photovoltaics: sensor.power_photovoltaics
sensor_power_load_no_var_loads: sensor.power_load_no_var_loads
number_of_deferrable_loads: 2
Expand Down Expand Up @@ -72,7 +71,6 @@ options:
battery_maximum_state_of_charge: 0.9
battery_target_state_of_charge: 0.6
schema:
web_ui_url: str
hass_url: str
long_lived_token: str
costfun: list(profit|cost|self-consumption)
Expand Down
2 changes: 1 addition & 1 deletion emhass/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ tables>=3.6.1
flask>=2.0.3
waitress>=2.1.1
plotly>=5.6.0
emhass==0.3.18
emhass==0.3.19
#git+https://github.com/davidusb-geek/emhass

0 comments on commit a5d1475

Please sign in to comment.