A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

Recent Releases of EHMASS

EHMASS - v0.13.0

A new method to adjust PV forecast!

Checkout the upgraded documentation here: https://emhass.readthedocs.io/en/latest/forecasts.html#adjusting-pv-forecasts-using-machine-learning

Improvement

  • Added a new feature to automatically adjust PV forecast using historical actual/forecast data
  • Added Support for multiple days forecasting with CSV data. Thanks to @nielskool for this contribution!
  • Refactored a new method retrieve_home_assistant_data in command_line
  • Unified default training data for ML algorithms using data/long_train_data.pkl
  • Added a presentation stack using marp

Fix

  • Fixed Value has dtype incompatible with int64 error, issue #465
  • Fixed Runtime "delta_forecast_daily" not recognized, issue #479
  • Attempt to fix Missing files in python package after 0.12.5, issue #495
  • Fixed workflow for macos tests

What's Changed

New Contributors

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.12.8...v0.13.0

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 26 days ago

EHMASS - EMHASS version 0.12.8

This release comes with a special improvement for weather forecast, we are replacing the scrapper method with a new method using the Open-Meteo API: https://open-meteo.com/
This API provides high resolution forecasts at 15min intervals for any location in the world.
A big improvement to obtain accurate PV production forecasts.

Improvement

  • Added a new method for weather forecast: open-meteo. This offers a very nice API to obtain weather forecasts. We are dropping the old scrapper method, if you were using the scapper method you just need to change the Weather forecast method to open-meteo
  • Added support to device_class definition when posting sensors to HA. Thanks to @paulhomes for this contribution
  • Improved github workflow Python testing
  • Updated documentation

Fix

  • Fixed TZ shift issue when using the typical load power forecaster

What's Changed

New Contributors

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.12.7...v0.12.8

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 2 months ago

EHMASS - EMHASS version 0.12.7

Improvement

  • A first batch of improvements (code reliability) proposed by SonarQube

Fix

  • Added missing files to Dockerfile
  • Changes to the Dockerfile to make /app/data folder persistent. Thanks to @scruysberghs
  • Fixing errors with missing sensor power_load_no_var_loads. Thanks to @scruysberghs
  • Improved documentation and fixed automated testing for code quality. Thanks to @GeoDerp

What's Changed

New Contributors

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.12.6...v0.12.7

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 2 months ago

EHMASS - EMHASS version 0.12.6

Some needed fixes and improvements

0.12.6 - 2025-02-09

Improvement

  • Improved warning message in case of wrong URL setting
  • Improved testing on typical load forecast method with different time steps

Fix

  • Solved missing file problem: data_load_cost_forecast.csv
  • Fixed warning issue on findall method

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.12.5...v0.12.6

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 3 months ago

EHMASS - EMHASS version 0.12.5

Improvement

  • Implemented new package manager uv resulting in faster builds. Thanks to @GeoDerp
  • Implemented SonarQube automatic code review. Thanks to @GeoDerp
  • Better management of SOC min/max to solve issue: MPC optim status infeasible when SOC lower than min SOC

Fix

  • Reverted back skforecast to latest version
  • Fixed issue with list index out of range. Thanks to @meks007 for identifying and reporting this

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.12.4...v0.12.5

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 3 months ago

EHMASS - EMHASS version v0.12.4

This is a patched version

Patch fix

  • Fixed bugs on gunicorn logger and missing CBC modules

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.12.3...v0.12.4

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 3 months ago

EHMASS - EMHASS version 0.12.3

A new release with some interesting improvements and needed fixes.

Improvement

  • PVLib DBs append custom EMHASS modules and inverters. Thanks to @GeoDerp
  • Added a def_total_timestep parameter (runtime only for now) that can be used instead of def_total_hours for passing timestep number instead of hour number. Thanks to @GeoDerp
  • Updated list of currencies in utils.py. Thanks to @BDVGitHub
  • Multiple roof_id support. Thanks to @radim2tej

Fix

  • Fix inconsistencies with Modules and Inverters from PVLib (thanks to help from @RafAustralia)
  • Fix issue with NAN sensors causing crash errors if incorrect (error handling) @purcell-lab
  • Fix Database path on optimization file (Thanks to @paulhomes for finding this issue)
  • Fixed weight_battery_charge sign problem. Thanks to @radim2tej
  • Fixed bug with out of index in list when retrieving config params from HA

What's Changed

New Contributors

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.12.2...v0.12.3

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 3 months ago

EHMASS - EMHASS version 0.12.2

Patch fix

  • Fixed Problem with calling weather-forecast-cache

Improvement

  • Updated readthedocs.yml, got rid of duplicated requirements.txt

What's Changed

New Contributors

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.12.1...v0.12.2

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 4 months ago

EHMASS - EMHASS version 0.12.1

Patch fix

  • Fixed error with retrieve config from HA

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.12.0...v0.12.1

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 4 months ago

EHMASS - EMHASS version 0.12.0

0.12.0 - 2024-12-29

BREAKING CHANGE

  • The solar PV system is now optional. If you have a PV system then use the switch on the webui or set the set_use_pv parameter to True.

Improvement

  • A new load power forecast method based on statistic and typical household load power consumption. This and the optional PV, will make it easier for new users to on-board EMHASS because this new default behavior does not require any data retrieval from Home Assistant or any other external source.
  • Updated documentation.

What's Changed

New Contributors

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.11.4...v0.12.0

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 4 months ago

EHMASS - EMHASS version 0.11.4

Fix

  • Fix bug when treating runtime params, fix optimization_time_step timedelta

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.11.3...v0.11.4

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 4 months ago

EHMASS - EMHASS version 0.11.3

Improvement

  • Runtime parameters now support all config parameters
  • Adopted the Ruff code fomatting
  • Added a Github Actions for Google OSV security code scan
  • Updated the param_definitions.json
  • Bump skforecast from 0.13.0 to 0.14.0. This needed upgrading a bunch of deprecated options. Notably skforcast now uses the time series cross-validation object (cv) from sklearn

Fix

  • Updated the default battery optimization weights
  • Fix publish_data defaulting to opt_res_latest, tweak warning logs
  • Added MLForecaster options to load_forecast_method for param_definitions.json

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.11.2...v0.11.3

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 4 months ago

EHMASS - EMHASS version 0.11.2

Improvement

  • Added support to retrieve HA configuration. This will be used in the future to automatically retrieve some parameters as the currency

Fix

  • utils fix runtime parameter merge bugs
  • configuration_script.js fix placeholder value bug

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.11.1...v0.11.2

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 6 months ago

EHMASS - EMHASS version 0.11.1

Fix

  • Fix parameter saving and duplicate battery bugs
  • utils.py add more specific logging information for config
  • Fix issue where thermal runtime parameters were not being propagated into optim_conf

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.11.0...v0.11.1

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 6 months ago

EHMASS - EMHASS version 0.11.0

This version marks huge improvement works by @GeoDerp aiming to simplfy the intial and normal setup of EMHASS. The workflow for setting the EMHASS configuration regardless of the installation method has now been centralized on the single config.json file. The webserver has now a configuration tab that can be used to to modify and save the config.json file.

The complete discussion of the changes on this thread:
https://github.com/davidusb-geek/emhass/pull/334

Automatic version bot improvements

  • Bump h5py from 3.11.0 to 3.12.1
  • Bump markupsafe from 2.1.5 to 3.0.2

Fix

  • Revert to myst-parser==3.0.1 to solve documentation compilation failures

What's Changed

New Contributors

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.10.6...v0.11.0

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 6 months ago

EHMASS - EMHASS version 0.10.6

Fix

  • Fixed bug on predicted room temeprature publish, wrong key on DataFrame

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.10.5...v0.10.6

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 10 months ago

EHMASS - EMHASS version 0.10.5

Improvement

  • Added support for pubishing thermal load data, namely the predicted room temperature

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.10.4...v0.10.5

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 10 months ago

EHMASS - EMHASS version 0.10.4

In this release a new thermal modeling for deferrable loads.
Thanks to @werdnum for this contribution!

Improvement

  • Added a new thermal modeling, see the new section in the documentation for help to implement this of model for thermal deferrable loads
  • Improved documentation

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.10.3...v0.10.4

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 10 months ago

EHMASS - EMHASS version 0.10.3

Some minor improvements on this release:

Improvement

  • Added improved support for def_start_penalty option
  • Improved documentation

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 10 months ago

EHMASS - EMHASS version 0.10.2

In this release:

Improvement

  • Weather forecast caching and Solcast method fix by @GeoDerp
  • Added a new configuration parameter to control wether we compute PV curtailment or not
  • Added hybrid inverter to data publish
  • It is now possible to pass these battery parameters at runtime: SOCmin, SOCmax, Pd_max and Pc_max

Fix

  • Fixed problem with negative PV forecast values in optimization.py, by @GeoDerp

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.10.1...v0.10.2

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 10 months ago

EHMASS - EMHASS version 0.10.1

0.10.1 - 2024-06-03

Fix

  • Fixed PV curtailment maximum possible value constraint
  • Added PV curtailement to variable to publish to HA

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.10.0...v0.10.1

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 11 months ago

EHMASS - EMHASS version 0.10.0

Improvement

  • Added support for hybrid inverters
  • Implemented a new continual_publish service that avoid the need of setting a special automation for data publish. Thanks to @GeoDerp
  • Implement a deferrable load start penalty functionality. Thanks to @werdnum
    • This feature also implement a def_current_state that can be passed at runtime to let the optimization consider that a deferrable load is currently scheduled or under operation when launching the optimization task

Fix

  • Fixed forecast methods to treat delta_forecast higher than 1 day
  • Fixed solar.forecast wrong interpolation of nan values

What's Changed

New Contributors

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.9.1...v0.10.0

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 11 months ago

EHMASS - EMHASS version 0.9.1

Fix

  • Fix patch for issue with paths to modules and inverters database
  • Fixed code formatting, or at least trying to keep a unique format

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.9.0...v0.9.1

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 12 months ago

EHMASS - EMHASS version 0.9.0

Improvement

  • On this new version we now have a new method to train a regression model using Scikit-Learn methods. This is the contribution of @gieljnssns. Check the dedicated section in the documentation to this new feature: https://emhass.readthedocs.io/en/latest/mlregressor.html
  • Again another bunch of nice improvements by @GeoDerp:
    • Added Dictionary var containing EMHASS paths
    • MLForcaster error suppression
    • Add freq as runtime parameter
    • Improved documentation added README buttons
  • Bumping dependencies:
    • Bump h5py from 3.10.0 to 3.11.0
    • Bump myst-parser from 2.0.0 to 3.0.1
    • Bump skforecast from 0.11.0 to 0.12.0

What's Changed

New Contributors

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.8.6...v0.9.0

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek 12 months ago

EHMASS - EMHASS version 0.8.6

Fix

  • Fixed bug from forecast out method related to issue 240
  • Fix patch for some issues with package file paths

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.8.5...v0.8.6

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 1 year ago

EHMASS - EMHASS version 0.8.5

Improvement

  • Simplified fetch urls to relatives
  • Improved code for passed forecast data error handling in utils.py
  • Added new tests for forecast longer than 24h by changing parameter delta_forecast
  • Added new files for updated PV modules and inverters database for use with PVLib
  • Added a new webapp to help configuring modules and inverters: https://emhass-pvlib-database.streamlit.app/
  • Added a new P_to_grid_max variable, different from the current P_from_grid_max option

Fix

  • style.css auto format and adjusted table styling
  • Changed pandas datetime rounding to nonexistent='shift_forward' to help survive DST change
  • Dropped support for Python 3.9

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.8.4...v0.8.5

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 1 year ago

EHMASS - EMHASS version 0.8.4

Improvement

  • Improved documentation
  • Improved logging errors on missing day info

Fix

  • Missing round treatment for DST survival in utils.py
  • Webui large icons fix

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.8.3...v0.8.4

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 1 year ago

EHMASS - EMHASS version 0.8.3

Fix

  • Fixed web_server options_json bug in standalone fix

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.8.2...v0.8.3

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 1 year ago

EHMASS - EMHASS version 0.8.2

Improvement

  • Proposed a new solution to survive DST using special option of Pandas round method
  • Added option to web_server to init data_path as an options param
  • Styling docs and html files on webui
  • Advanced and basic pages improvements on webui

Fix

  • Fixed support for ARM achitectures

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.8.1...v0.8.2

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 1 year ago

EHMASS - EMHASS version 0.8.1

Improvement

  • Improved documentation

Fix

  • Persistent data storage fix
  • Docker Standalone Publish Workspace Fix

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.8.0...v0.8.1

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 1 year ago

EHMASS - EMHASS version 0.8.0

Improvement

  • Thanks to the great work from @GeoDerp we now have a unified/centralized Dockerfile that allows for testing different installation configuration methods in one place. This greatly helps testing, notably emulating the add-on environment. This will improve overall testing for both teh core code and the add-on. Again many thanks!
  • There were also a lot of nice improveements from @GeoDerp to the webui, namely: styling, dynamic table, optimization feedback after button press, logging, a new clear button, etc.
  • From now on we will unify the semantic versioning for both the main core code and the add-on.

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.7.8...v0.8.0

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 1 year ago

EHMASS - EMHASS version 0.7.8

Improvement

Added some nice logging functionalities and responsiveness on the webui.
Thanks to @GeoDerp for this great work!

  • new actionLogs.txt is generated in datapath storing sessions app.logger info
  • on successful html button press, fetch is called to get html containing latest table data
  • on html button press, If app.logger ERROR is present, send action log back and present on page.

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.7.7...v0.7.8

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 1 year ago

EHMASS - EMHASS version 0.7.7

Improvement

  • Bumped the webui. Index/style added runtime parameter dictionary inputs. Thanks to @GeoDerp
  • Added two additional testing environment options. Thanks to @GeoDerp

Fix

  • Bump markupsafe from 2.1.4 to 2.1.5

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.7.6...v0.7.7

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 1 year ago

EHMASS - EMHASS version 0.7.6

Fix

  • Fixed number of startups constraint for deferrable load at the begining of the optimization period
  • Fixed list of bools from options.json
  • Fixed some testing and debugging scripts

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.7.5...v0.7.6

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 1 year ago

EHMASS - EMHASS version 0.7.5

Fix

  • Fixing again "perform_backtest": "false" has no effect

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.7.4...v0.7.5

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 1 year ago

EHMASS - EMHASS version 0.7.4

Fix

  • Fixed broken build params method. Reverting back to alternate PR from @GeoDerp

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.7.3...v0.7.4

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 1 year ago

EHMASS - EMHASS version 0.7.3

Fix

  • Fixed bug when booleans, solving "perform_backtest": "false" has no effect
  • Refactored util.py method to handle optional parameters
  • Updated web server, solving runtime issues
  • Solved issue passing solcast and solar.forecast runtime params
  • Updated documentation requirements

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.7.2...v0.7.3

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 1 year ago

EHMASS - EMHASS version 0.7.2

Patched new version wer server issues of missing list types

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.7.1...v0.7.2

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 1 year ago

EHMASS - EMHASS version 0.7.1

Fix

  • Patched new version wer server issues accessing correct paths

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.7.0...v0.7.1

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 1 year ago

EHMASS - EMHASS version 0.7.0

Improvement

  • Added a new feature to provide operating time windows for deferrable loads. Thanks to @michaelpiron
  • Added lots of new options to be configured by the user. Thanks to @GeoDerp
  • Updated stylesheet with mobile & dark theme by @GeoDerp
  • Improved launch.json to fully test EMHASS on different configurations. Thanks to @GeoDerp
  • Added new script to debug and develop new time series clustering feature
  • Improved documentation. Thanks to @g1za

Fix

  • Updated github workflow actions/checkout to v4 and actions/setup-python to v5
  • Changed default values for weight_battery_discharge and weight_battery_charge to zero
  • Renamed classes to conform to PEP8
  • Bump markupsafe from 2.1.3 to 2.1.4

What's Changed

New Contributors

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.6.2...v0.7.0

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 1 year ago

EHMASS - EMHASS version 0.6.2

Improvement

  • Added option to pass additional weight for battery usage
  • Improved coverage

Fix

  • Updated optimization constraints to solve conflict for set_def_constant and treat_def_as_semi_cont cases

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.6.1...v0.6.2

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek over 1 year ago

EHMASS - EMHASS version 0.6.1

Fix

  • Patching EMHASS for Python 3.11. New explicit dependecy h5py==3.10.0
  • Updated Dockerfile to easily test add-on build

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek over 1 year ago

EHMASS - EMHASS version 0.6.0

New release 0.6.0!!!

Improvement

  • Now Python 3.11 is fully supported, thanks to @pail23
  • We now publish the optimization status on sensor.optim_status
  • Bumped setuptools, skforecast, numpy, scipy, pandas
  • A good bunch of documentation improvements thanks to @g1za
  • Improved code coverage (a little bit ;-)

Fix

  • Some fixes managing time zones, thanks to @pail23
  • Bug fix on grid cost function equation, thanks to @michaelpiron
  • Applying a first set of fixes proposed by @smurfix:
    • Don't ignore HTTP errors
    • Handle missing variable correctly
    • Slight error message improvement
    • Just use the default solver
    • Get locations from environment in non-app mode
    • Tolerate running directly from source

What's Changed

New Contributors

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.5.1...v0.6.0

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek over 1 year ago

EHMASS - EMHASS version 0.5.1

Improvement

  • Improved documentation, thanks to @g1za
  • Bumped skforecast to 0.10.1
  • Added a new initial script for exploration of time series clustering. This will one day replace the need to configure the house load sensor with substracted deferrable load consumption

Fix

  • Updated automated tesing, dropped support for Python 3.8

What's Changed

New Contributors

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.5.0...v0.5.1

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek over 1 year ago

EHMASS - EMHASS version 0.5.0

Improvement

  • Finally added support for ingress thanks to the work from @siku2
  • Added a devcontainer and pave the way for ingress access

Fix

  • Added some code to fix some numerical syntax issues in tables

What's Changed

New Contributors

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.4.15...v0.5.0

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek over 1 year ago

EHMASS - EMHASS version 0.4.15

Improvement

  • Bumped pvlib to 0.10.1
  • Updated documentation for forecasts methods.

Fix

  • Fixed error message on utils.py

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.4.14...v0.4.15

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek over 1 year ago

EHMASS - EMHASS version 0.4.14

Improvement

  • Bumped skforecast to latest 0.9.1.
  • The standalone dockerfile was updated by @majorfrog to include the CBC solver.

Fix

  • Fix rounding for price & cost forecasts by @purcell-lab

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.4.13...v0.4.14

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 2 years ago

EHMASS - EMHASS version 0.4.13

Some interesting improvements and some needed fixes:

Improvement

  • Added support for data reconstruction when missing values on last window for ML forecaster prediction.
  • Added treatment of SOCtarget passed at runtime for day-ahead optimization.
  • Added publish_prefix key to pass a common prefix to all published data.

Fix

  • Patched sensor rounding problem.
  • Bump myst-parser from 1.0.0 to 2.0.0
  • Fixed missing attributes is the sensors when using the custom IDs.

What's Changed

New Contributors

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.4.12...v0.4.13

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 2 years ago

EHMASS - EMHASS version 0.4.12

Improvement

  • Added forecasts for unit_prod_price and unit_load_cost.
  • Improved documentation.

Fix

  • Bump skforecast from 0.8.0 to 0.8.1

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.4.11...v0.4.12

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 2 years ago

EHMASS - EMHASS version 0.4.11

Improvement

  • Adding new constraints to limit the dynamics (kW/sec) of deferrable loads and battery power. The LP formulation works correctly and a work should be done on integrating the user input parameters to control this functionality.
  • Added new constraint to avoid battery discharging to the grid.
  • Added possibility to set the logging level.

Fix

  • Bumped version of skforecast from 0.6.0 to 0.8.1. Doing this mainly implies changing how the exogenous data is passed to fit and predict methods.
  • Fixed wrong path for csv files when using load cost and prod price forecasts.

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.4.10...v0.4.11

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 2 years ago

EHMASS - EMHASS version 0.4.10

Fix

  • Fixed wrong name of new cost sensor.
  • Fixed units of measurements of costs to €/kWh.
  • Added color sequence to plot figures, now avery line should be plotted with a different color.

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.4.9...v0.4.10

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 2 years ago

EHMASS - EMHASS version 0.4.9

Fix

  • Updated default value for total number of days for ML model training.
  • Added publish of unit_load_cost and unit_prod_price sensors.
  • Improved docs intro.
  • Bump myst-parser from 0.18.1 to 1.0.0

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.4.8...v0.4.9

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 2 years ago

EHMASS - EMHASS version 0.4.8

Fix

  • Fixed to correct index length for ML forecaster prediction series.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.4.7...v0.4.8

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 2 years ago

EHMASS - EMHASS version 0.4.7

Fix

  • Fixed wrong column name for var_load when using predict with ML forecaster.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0...v0.4.7

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 2 years ago

EHMASS - EMHASS version 0.4.6

Fix

  • Fixed wrong path for saved ML forecaster model.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.4.5...v0.4.6

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 2 years ago

EHMASS - EMHASS version 0.4.5

Fix

  • Fixed default behavior for passed data.
  • Added a new graph for tune results.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.4.4...v0.4.5

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 2 years ago

EHMASS - EMHASS version 0.4.4

Fix

  • Added missing possibility to set the method for load forecast to 'mlforecaster'.
  • Fixed logging formatting.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.4.3...v0.4.4

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 2 years ago

EHMASS - EMHASS version 0.4.3

Some bug fixing

Fix

  • Fixed logging.
  • Fixed missing module on docker standalone mode.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.4.2...v0.4.3

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 2 years ago

EHMASS - EMHASS version 0.4.2

Some bug fixes.
Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.4.1...v0.4.2

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 2 years ago

EHMASS - EMHASS version 0.4.1

Some nice improvements adapted to the new version v0.4.x:

Improvement

  • Improved the documentation and the in-code docstrings.
  • Added the possibility to save the optimized model after a tuning routine.
  • Added the possibility to publish predict results to a Home Assistant sensor.
  • Added the possibility to provide custom entity_id, unit_of_measurement and friendly_name for each published data.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.4.0...v0.4.1

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 2 years ago

EHMASS - EMHASS version 0.4.0

The new Machine Learning forecast module is here!
This will provide a better forecast model for the load power consumption forecast.

Improvement

  • A brand new load forecast module and more... The new forecast module can actually be used to forecast any Home Assistant variable. The API provides fit, predict and tune methods. By the default it provides a more efficient way to forecast the power load consumption. It is based on the skforecast module that uses scikit-learn regression models considering auto-regression lags as features. The hyperparameter optimization is proposed using bayesian optimization from the optuna module.
  • A new documentation section covering the new forecast module.

Fix

  • Fixed Solar.Forecast issues with lists of parameters.
  • Fixed latex equations rendering on documentation, dropped Mathjax.
  • Refactored images in documentation, now using only SVG for plotly figures.
  • Bumped requirements to latest non-conflicting versions.

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.36...v0.4.0

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 2 years ago

EHMASS - EMHASS version 0.3.36

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.35...v0.3.36

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 2 years ago

EHMASS - EMHASS version 0.3.35

Fix

  • Fixed access to injection_dict for the first time that emhass is used.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.34...v0.3.35

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 2 years ago

EHMASS - EMHASS version 0.3.34

Fix

  • Fixed bugs with paths again, now using the official pathlib everywhere.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.32...v0.3.34

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 2 years ago

EHMASS - EMHASS version 0.3.32

Fix

  • Fixed bugs on handling data folder name.
  • Improved warning messages when passing list of values with items detected as non digits.

What's Changed

New Contributors

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.29...v0.3.32

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 2 years ago

EHMASS - EMHASS version 0.3.29

Improvement: Implemented data storage to survive add-on restarts.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.28...v0.3.29

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 2 years ago

EHMASS - EMHASS version v0.3.25

Fixed dependencies, uniform working versions of Numpy, Pandas

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.24...v0.3.25

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 2 years ago

EHMASS - EMHASS version 0.3.24

Fixed dependencies, rolled back to older fixed Numpy and Pandas versions.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.23...v0.3.24

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 2 years ago

EHMASS - EMHASS version 0.3.23

A quick fix release.

Fix

  • Fixed missing integration of additional set_nocharge_from_grid in the web server.
  • Improved the documentation.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.22...v0.3.23

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 2 years ago

EHMASS - EMHASS version 0.3.22

This version comes with some improvements and fixes. Most notably the possibility to add a constraint to forbidden charging the battery from the grid.

Improvement

  • Improved unittest for mock get requests
  • Improved coverage

Fix

  • Code works even if no battery data is configured
  • Added more explicit logging error message in the case of no data retrieved from Home Assistant

What's Changed

New Contributors

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.21...v0.3.22

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 2 years ago

EHMASS - EMHASS version 0.3.21

Fix

  • Fixed docstrings
  • Added github worflows for coverage and automatic package compiling
  • Fixing interpolation for Forecast.Solar data

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.20...v0.3.21

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek over 2 years ago

EHMASS - EMHASS version 0.3.20

A new release with bunch of improvements, most notably added direct support for the Solar.Forecast method to forecast PV power.

Also:

  • Added more detailed examples to the forecast module documentation.
  • Improved handling of datatime indexes in DataFrames on forecast module.
  • Added warning messages if passed list values contains non numeric items.
  • Added missing unittests for forecast module with request.get dependencies using MagicMock.

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.19...v0.3.20

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek over 2 years ago

EHMASS - EMHASS version 0.3.19

Fix

  • Updated default values for a working LP solver.
  • Removed option to provide a custom web ui url.
  • Added extra runtime parameters to use solcast PV forecast.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.18...v0.3.19

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek over 2 years ago

EHMASS - EMHASS version 0.3.18

Improvement

  • Improving documentation, added more information on forecast page.
  • Added support for SolCast PV production forecasts.
  • Added possibility to pass some optimization parameters at runtime.
  • Added some unittest for passing data as list testing.

Fix

  • Fixed small bug on webserver using pandas sum function for non numeric data. This was throwing the following message: Dropping of nuisance columns in DataFrame reductions (with 'numeric_only=None') is deprecated.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.17...v0.3.18

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek over 2 years ago

EHMASS - EMHASS version 0.3.17

Some bug fixes.

Fix

  • Fixed wrong variables names for mixed forecasts.
  • Fixed handling of load sensor name in command line setup function.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.16...v0.3.17

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 3 years ago

EHMASS - EMHASS version 0.3.16

Some worthy improvements in this new version.

Improvement

  • Improving documentation, added "what is this" section and added some info-graphics.
  • Added new forecasts methods chapter in documentation.
  • Added publish of sensors for p_grid_forecast & total value of cost function.
  • Implemented now/current value forecast correction when using MPC.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.15...v0.3.16

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 3 years ago

EHMASS - EMHASS version 0.3.15

Fix

  • Fixed small bug with wrong DF variable name in web server.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.14...v0.3.15

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 3 years ago

EHMASS - v0.3.14

Improvement

  • Added one more table to the weu showing the cost totals.

Fix

  • Fixed wrong type error when serializing numpy ints. Converted ints to Python type.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.13...v0.3.14

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 3 years ago

EHMASS - EMHASS version 0.3.13

Fix

  • Fix wrong default value implementation for solver params.

Improvement

  • Added support to provide solver name and path as parameters in the configuration file.

What's Changed

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.11...v0.3.13

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 3 years ago

EHMASS - EMHASS version 0.3.11

In this new version some improvements were added to the code.

Improvement

  • Added data as attributes for forecasts (PV and load), deferrable loads and battery: power+SOC.
  • Improved the graph in the webserver, now using subplots.
  • Rearranged vertical space in index.html template.

Fix

  • Added threads option on waitress to possibly improve queue problem.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.10...v0.3.11

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 3 years ago

EHMASS - EMHASS version 0.3.9

Several bug fixes and improvements.

Improvement

  • Improved publish data logging
  • Round published data
  • Attributes to forecasts published data
  • Improved centering html on small devices
  • Improved handling of closest index when publishing data

Fix

  • Fixed problem with csv filenames, was using only filename specific to dayahead optimization.
  • Fixed data list handling for load cost and prod price forecasts.
  • Fixed publish data dictionary to contain only data from correct entity_id.
  • May have solved double log lines.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.8...v0.3.9

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 3 years ago

EHMASS - EMHASS version 0.3.8

Fix

  • Still fixing issues when passing csv files and lists.
  • Fixed None weather df issue when passing lists.
  • Improved command line unittests.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.7...v0.3.8

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 3 years ago

EHMASS - EMHASS version 0.3.6

Many bug fixes, mostly on MPC implementation.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.3.5...v0.3.6

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 3 years ago

EHMASS - EMHASS version 0.3.0

A lot of improvements in this new release of EMHASS.
Most notably the integration of a new Model Predictive Controller (MPC) !!!
But also added a new production webserver and a new Dockerfile for a standalone docker mode.

Improvement

  • Improved the command line setup function to perform the correct amount calls as needed by each action.
  • Added a new naive model predictive control function.
  • Added runtime parameter option for better code order.
  • Moved treatment of runtime parameters from the add-on to the core emhass module. This adds more clarity to the code andd also was needed when passing runtime paramters to emhass in standalone mode.
  • Added add-on paramter to command line to define if launching emhass from add-on or in standalone mode.
  • Added new testing file for command_line.
  • Added a webserver. Moved the webserver from the add-on to the core emhass module.
  • Added a WSGI production server for flask using waitress.
  • Added a Dockerfile and procedure to run emhass in standalone mode.
  • Updated the documentation.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.2.14...v0.3.0

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 3 years ago

EHMASS - EMHASS version 0.2.14

Improvement

  • Added more info on publish data errors when not key found. This error may mean that the optimization task may need to be relaunched or it did not converged to a solution.
  • Added better info to the configuration documentation when integrating PV module and inverter models from PVLib database. An underscore _ character should be added inplace of each special character.

Fix

  • Fixed missing timeStep product for correct deferrable load total energies.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.2.13...v0.2.14

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 3 years ago

EHMASS - EMHASS version 0.2.13

Improvement

  • Added support to pass list of PV plant parameters. This will enable to simulate mixed orientation systems, for example one east-facing array (azimuth=90) and one west-facing array (azimuth=270).

Fix

  • Fixed issue computing correct final cost values.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.2.12...v0.2.13

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 3 years ago

EHMASS - EMHASS version 0.2.12

This release adds a new parameter to allow consider two different cases for self-consumption:

  1. The case where all PV produced power is injected to the grid, with no direct self-consumption. This case is very popular in France an maybe in many other places. House that are in this case have two energy counters, one for producer energy and another one for consumed energy.

  2. The case of direct self-consumption. The house load can be directly provided by the PV production. This may be a more generalize worldwide case for PV production.

Improvement

  • Added config parameter to consider that all PV power is injected to the grid

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.2.11...v0.2.12

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 3 years ago

EHMASS - EMHASS version 0.2.11

Fixed problem handling the index of passed data as list of values. This was also affecting reading from a csv file. Also improved unittests to test this kind of issues.

Fix

  • Fixed wrong handling of DateTimeIndex when dealing with forecast method for list of values and csv read.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.2.10...v0.2.11

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek almost 3 years ago

EHMASS - EMHASS version 0.2.10

There was a wrong handling of dataframe indexes when importing forecasts using list of values and csv files.

Fix

  • Fixed faulty forecast method for list of values and csv read.

What's Changed

New Contributors

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.2.9...v0.2.10

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 3 years ago

EHMASS - EMHASS version 0.2.9

Releasing this version to update the get_loc pandas method previously used as it is now deprecated.

Fix

  • Fixed get_loc deprecation warning using now get_indexer pandas method. Improved selection of closest index.

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 3 years ago

EHMASS - EMHASS version 0.2.8

Again two sort of fatal errors fixed. These were related to publish_data.
Tested and working fine with add-on on dev-container.

Fix

  • Fixed if sentence to correctly use the supervisor API for publish data.
  • Fixing a error computing the nearest index of DataFrame. Using a try/catch strategy to use nearest method as a backup.

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 3 years ago

EHMASS - EMHASS version 0.2.7

This release is basically fixing a fatal error where the publish data function will never reach the saved csv file as the default filename is not equal to the expected filename in publish_data.

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 3 years ago

EHMASS - EMHASS version 0.2.6

This release features a better handling of errors when trying to find a suitable solver.

Some problems may arise from solver related issues in the Pulp package. It was found that for arm64 architectures (ie. Raspberry Pi4, 64 bits) the default solver is not avaliable. A workaround is to install a new solver. The glpk solver is an option and can be installed with:

sudo apt-get install glpk-utils

After this it should be available for use and EMHASS can use it as a fallback option.

Improvement

  • Improved handling of errors concerning solver issues with Pulp. Added support for glpk solver. For now just using a try/catch strategy but should update to solver passed as a parameter to EMHASS.

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 3 years ago

EHMASS - EMHASS version 0.2.5

The previous release didn't last long due to a fatal missing import in utils.

Fix

  • Fixed missing numpy import in utils.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.2.4...v0.2.5

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 3 years ago

EHMASS - EMHASS version 0.2.4

Some minor but important changes in this release. Most notably the handling of freq definition to DataFrame when retrieving data from Home Assistant.

Fix

  • Fixed missing command to retrieve PV power forecast when using list of values.
  • Updated handling of freq definition to a pandas index.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.2.3...v0.2.4

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 3 years ago

EHMASS - EMHASS version 0.2.3

In this release support for passing list of values to the different forecasting methods was added. This will allow users of the add-on to easily transfer their own forecasting values from other Home Assistant services.
Another important change is the dropout of any forecasting method from PVLib, as these methods were marked as deprecated in the latest version of PVLib. Of course PVLib will stll be used to convert weather data to electrical power.
Finally the documentation was updated.

Added

  • Improved support for the new add-on and direct communication via the supervisor.
  • The CLI now can return the version using the --version argument.
  • Improved comments in forecast class.
  • Added unittest for csv method for weather forecast.
  • Added support for passing lists of values to all forecasting methods.

Fix

  • Removed dependency from PVLib Forecast class, as it has been marked as deprecated.
  • Fixed failing docs builds due to uncompatible jinja2 an markupsafe versions.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.2.2...v0.2.3

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 3 years ago

EHMASS - EMHASS version 0.2.2

This release is marked with two main changes:

  1. Adding CI workflow for better coding best practices
  2. Changed the handling and naming conventions for the configuration files of the module. These changes are meant to pave the road for future development of HASS add-ons

Added

  • Added a new input data file using pickle for tests.
  • Added support to select if the logger should save to a file or not.
  • Added CI workflow using github actions.

Breaking changes

  • Changed package usage of configuration file path, now the user must provide the complete path including the yaml file itself.
  • Changed the names of the configuration and secrets yaml files. These changes will avoid compatibility issues when using hass add-ons.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.2.1...v0.2.2

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek about 3 years ago

EHMASS - EMHASS version 0.2.1

Fixed

  • Cleaned unittest implementation

Added

  • Added support to choose the methods for weather and load forecast from configuration file.
  • Added new load cost and power production price forecasts, mainly allowing the user to load a CSV file with their own forecast.

Full Changelog: https://github.com/davidusb-geek/emhass/compare/v0.2.0...v0.2.1

Energy Systems - Building Energy Monitoring - Python
Published by davidusb-geek over 3 years ago