emhass 0.2.14__tar.gz → 0.6.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. emhass-0.6.1/CHANGELOG.md +505 -0
  2. emhass-0.6.1/CODE_OF_CONDUCT.md +128 -0
  3. emhass-0.6.1/CONTRIBUTING.md +14 -0
  4. emhass-0.6.1/LICENSE +9 -0
  5. {emhass-0.2.14 → emhass-0.6.1}/MANIFEST.in +13 -13
  6. emhass-0.6.1/PKG-INFO +469 -0
  7. emhass-0.6.1/README.md +438 -0
  8. {emhass-0.2.14 → emhass-0.6.1}/data/data_load_cost_forecast.csv +47 -47
  9. {emhass-0.2.14 → emhass-0.6.1}/data/data_load_forecast.csv +47 -47
  10. {emhass-0.2.14 → emhass-0.6.1}/data/data_prod_price_forecast.csv +47 -47
  11. emhass-0.6.1/data/data_train_load_clustering.pkl +0 -0
  12. emhass-0.6.1/data/data_train_load_forecast.pkl +0 -0
  13. {emhass-0.2.14 → emhass-0.6.1}/data/data_weather_forecast.csv +47 -47
  14. emhass-0.6.1/data/logger_emhass.log +168 -0
  15. emhass-0.6.1/data/opt_res_latest.csv +11 -0
  16. emhass-0.6.1/data/opt_res_perfect_optim_cost.csv +385 -0
  17. emhass-0.6.1/data/opt_res_perfect_optim_profit.csv +385 -0
  18. emhass-0.6.1/data/opt_res_perfect_optim_self-consumption.csv +385 -0
  19. emhass-0.6.1/data/test_response_get_data_get_method.pbz2 +0 -0
  20. emhass-0.6.1/data/test_response_scrapper_get_method.pbz2 +0 -0
  21. emhass-0.6.1/data/test_response_solarforecast_get_method.pbz2 +0 -0
  22. emhass-0.6.1/data/test_response_solcast_get_method.pbz2 +0 -0
  23. {emhass-0.2.14 → emhass-0.6.1}/pyproject.toml +5 -5
  24. {emhass-0.2.14 → emhass-0.6.1}/setup.cfg +4 -4
  25. {emhass-0.2.14 → emhass-0.6.1}/setup.py +62 -64
  26. emhass-0.6.1/src/emhass/command_line.py +662 -0
  27. {emhass-0.2.14 → emhass-0.6.1}/src/emhass/forecast.py +764 -566
  28. emhass-0.6.1/src/emhass/machine_learning_forecaster.py +305 -0
  29. {emhass-0.2.14 → emhass-0.6.1}/src/emhass/optimization.py +584 -441
  30. {emhass-0.2.14 → emhass-0.6.1}/src/emhass/retrieve_hass.py +338 -253
  31. emhass-0.6.1/src/emhass/static/style.css +505 -0
  32. emhass-0.6.1/src/emhass/templates/index.html +64 -0
  33. emhass-0.6.1/src/emhass/utils.py +441 -0
  34. emhass-0.6.1/src/emhass/web_server.py +371 -0
  35. emhass-0.6.1/src/emhass.egg-info/PKG-INFO +469 -0
  36. emhass-0.6.1/src/emhass.egg-info/SOURCES.txt +46 -0
  37. {emhass-0.2.14 → emhass-0.6.1}/src/emhass.egg-info/entry_points.txt +0 -1
  38. emhass-0.6.1/src/emhass.egg-info/requires.txt +13 -0
  39. emhass-0.6.1/tests/test_command_line_utils.py +411 -0
  40. emhass-0.6.1/tests/test_forecast.py +435 -0
  41. emhass-0.6.1/tests/test_machine_learning_forecaster.py +150 -0
  42. emhass-0.6.1/tests/test_optimization.py +195 -0
  43. emhass-0.6.1/tests/test_retrieve_hass.py +173 -0
  44. emhass-0.6.1/tests/test_utils.py +203 -0
  45. emhass-0.2.14/CHANGELOG.md +0 -141
  46. emhass-0.2.14/PKG-INFO +0 -313
  47. emhass-0.2.14/README.md +0 -294
  48. emhass-0.2.14/data/opt_res_dayahead_latest.csv +0 -49
  49. emhass-0.2.14/data/opt_res_perfect_optim_cost.csv +0 -385
  50. emhass-0.2.14/data/opt_res_perfect_optim_profit.csv +0 -385
  51. emhass-0.2.14/data/opt_res_perfect_optim_self-consumption.csv +0 -385
  52. emhass-0.2.14/src/emhass/command_line.py +0 -233
  53. emhass-0.2.14/src/emhass/read_csv_plot_data.py +0 -145
  54. emhass-0.2.14/src/emhass/utils.py +0 -140
  55. emhass-0.2.14/src/emhass.egg-info/PKG-INFO +0 -313
  56. emhass-0.2.14/src/emhass.egg-info/SOURCES.txt +0 -27
  57. emhass-0.2.14/src/emhass.egg-info/requires.txt +0 -12
  58. {emhass-0.2.14 → emhass-0.6.1}/data/test_df_final.pkl +0 -0
  59. {emhass-0.2.14 → emhass-0.6.1}/src/emhass/__init__.py +0 -0
  60. {emhass-0.2.14 → emhass-0.6.1}/src/emhass.egg-info/dependency_links.txt +0 -0
  61. {emhass-0.2.14 → emhass-0.6.1}/src/emhass.egg-info/top_level.txt +0 -0
@@ -0,0 +1,505 @@
1
+ # Changelog
2
+
3
+ ## [0.6.1] - 2023-12-18
4
+ ### Fix
5
+ - Patching EMHASS for Python 3.11. New explicit dependecy h5py==3.10.0
6
+ - Updated Dockerfile to easily test add-on build
7
+
8
+ ## [0.6.0] - 2023-12-16
9
+ ### Improvement
10
+ - Now Python 3.11 is fully supported, thanks to @pail23
11
+ - We now publish the optimization status on sensor.optim_status
12
+ - Bumped setuptools, skforecast, numpy, scipy, pandas
13
+ - A good bunch of documentation improvements thanks to @g1za
14
+ - Improved code coverage (a little bit ;-)
15
+ ### Fix
16
+ - Some fixes managing time zones, thanks to @pail23
17
+ - Bug fix on grid cost function equation, thanks to @michaelpiron
18
+ - Applying a first set of fixes proposed by @smurfix:
19
+ - Don't ignore HTTP errors
20
+ - Handle missing variable correctly
21
+ - Slight error message improvement
22
+ - Just use the default solver
23
+ - Get locations from environment in non-app mode
24
+ - Tolerate running directly from source
25
+
26
+ ## [0.5.1] - 2023-10-19
27
+ ### Improvement
28
+ - Improved documentation, thanks to @g1za
29
+ - Bumped skforecast to 0.10.1
30
+ - 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
31
+ ### Fix
32
+ - Updated automated tesing, dropped support for Python 3.8
33
+
34
+ ## [0.5.0] - 2023-09-03
35
+ ### Improvement
36
+ - Finally added support for ingress thanks to the work from @siku2
37
+ - Added a devcontainer and pave the way for ingress access
38
+ ### Fix
39
+ - Added some code to fix some numerical syntax issues in tables
40
+
41
+ ## [0.4.15] - 2023-08-11
42
+ ### Improvement
43
+ - Bumped pvlib to 0.10.1
44
+ - Updated documentation for forecasts methods.
45
+ ### Fix
46
+ - Fixed error message on utils.py
47
+
48
+ ## [0.4.14] - 2023-07-17
49
+ ### Improvement
50
+ - Bumped skforecast to latest 0.9.1.
51
+ - The standalone dockerfile was updated by @majorforg to include the CBC solver.
52
+ ### Fix
53
+ - Fix rounding for price & cost forecasts by @purcell-lab
54
+
55
+ ## [0.4.13] - 2023-06-29
56
+ ### Improvement
57
+ - Added support for data reconstruction when missing values on last window for ML forecaster prediction.
58
+ - Added treatment of SOCtarget passed at runtime for day-ahead optimization.
59
+ - Added publish_prefix key to pass a common prefix to all published data.
60
+ ### Fix
61
+ - Patched sensor rounding problem.
62
+ - Bump myst-parser from 1.0.0 to 2.0.0
63
+ - Fixed missing attributes is the sensors when using the custom IDs.
64
+
65
+ ## [0.4.12] - 2023-06-03
66
+ ### Improvement
67
+ - Added forecasts for unit_prod_price and unit_load_cost.
68
+ - Improved documentation.
69
+ ### Fix
70
+ - Bump skforecast from 0.8.0 to 0.8.1
71
+
72
+ ## [0.4.11] - 2023-05-27
73
+ ### Improvement
74
+ - 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.
75
+ - Added new constraint to avoid battery discharging to the grid.
76
+ - Added possibility to set the logging level.
77
+ ### Fix
78
+ - 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.
79
+ - Fixed wrong path for csv files when using load cost and prod price forecasts.
80
+
81
+ ## [0.4.10] - 2023-05-21
82
+ ### Fix
83
+ - Fixed wrong name of new cost sensor.
84
+ - Fixed units of measurements of costs to €/kWh.
85
+ - Added color sequence to plot figures, now avery line should be plotted with a different color.
86
+
87
+ ## [0.4.9] - 2023-05-20
88
+ ### Fix
89
+ - Updated default value for total number of days for ML model training.
90
+ - Added publish of unit_load_cost and unit_prod_price sensors.
91
+ - Improved docs intro.
92
+ - Bump myst-parser from 0.18.1 to 1.0.0
93
+
94
+ ## [0.4.8] - 2023-03-17
95
+ ### Fix
96
+ - Fixed to correct index length for ML forecaster prediction series.
97
+
98
+ ## [0.4.7] - 2023-03-16
99
+ ### Fix
100
+ - Fixed wrong column name for var_load when using predict with ML forecaster.
101
+
102
+ ## [0.4.6] - 2023-03-16
103
+ ### Fix
104
+ - Fixed wrong path for saved ML forecaster model.
105
+
106
+ ## [0.4.5] - 2023-03-10
107
+ ### Fix
108
+ - Fixed default behavior for passed data.
109
+ - Added a new graph for tune results.
110
+
111
+ ## [0.4.4] - 2023-03-09
112
+ ### Fix
113
+ - Added missing possibility to set the method for load forecast to 'mlforecaster'.
114
+ - Fixed logging formatting.
115
+
116
+ ## [0.4.3] - 2023-03-09
117
+ ### Fix
118
+ - Fixed logging.
119
+ - Fixed missing module on docker standalone mode.
120
+
121
+ ## [0.4.2] - 2023-03-07
122
+ ### Fix
123
+ - Fixed handling of default passed params.
124
+
125
+ ## [0.4.1] - 2023-03-06
126
+ ### Improvement
127
+ - Improved the documentation and the in-code docstrings.
128
+ - Added the possibility to save the optimized model after a tuning routine.
129
+ - Added the possibility to publish predict results to a Home Assistant sensor.
130
+ - Added the possibility to provide custom entity_id, unit_of_measurement and friendly_name for each published data.
131
+
132
+ ## [0.4.0] - 2023-03-06
133
+ ### Improvement
134
+ - A brand new load forecast module and more... The new forecast module can actually be used to foreast 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.
135
+ - A new documentation section covering the new forecast module.
136
+ ### Fix
137
+ - Fixed Solar.Forecast issues with lists of parameters.
138
+ - Fixed latex equations rendering on documentation, dropped Mathjax.
139
+ - Refactored images in documentation, now using only SVG for plotly figures.
140
+ - Bumped requirements to latest non-conflicting versions.
141
+
142
+ ## [0.3.36] - 2023-01-31
143
+ ### Fix
144
+ - Fixed message handling from request module.
145
+
146
+ ## [0.3.35] - 2023-01-31
147
+ ### Fix
148
+ - Fixed access to injection_dict for the first time that emhass is used.
149
+
150
+ ## [0.3.34] - 2023-01-30
151
+ ### Fix
152
+ - Fixed bugs with paths again, now using the official pathlib everywhere.
153
+
154
+ ## [0.3.32] - 2023-01-30
155
+ ### Fix
156
+ - Fixed bugs on handling data folder name.
157
+ - Improved warning messages when passing list of values with items detected as non digits.
158
+
159
+ ## [0.3.29] - 2023-01-28
160
+ ### Improvement
161
+ - Implemented data storage to survive add-on restarts.
162
+
163
+ ## [0.3.25] - 2023-01-27
164
+ ### Fix
165
+ - Fixed dependencies, uniform working versions of Numpy, Pandas and Tables.
166
+
167
+ ## [0.3.24] - 2023-01-27
168
+ ### Fix
169
+ - Fixed dependencies, rolled back to older fixed Numpy and Pandas versions.
170
+
171
+ ## [0.3.23] - 2023-01-26
172
+ ### Fix
173
+ - Fixed missing integration of additional `set_nocharge_from_grid` in the web server.
174
+ - Improved the documentation.
175
+
176
+ ## [0.3.22] - 2023-01-26
177
+ ### Improvement
178
+ - Improved unittest for mock get requests.
179
+ - Improved coverage.
180
+ ### Fix
181
+ - Code works even if no battery data is configured.
182
+ - Added more explicit logging error message in the case of no data retrieved from Home Assistant.
183
+
184
+ ## [0.3.21] - 2022-10-21
185
+ ### Fix
186
+ - Fixed docstrings
187
+ - Added github worflows for coverage and automatic package compiling.
188
+ - Fixing interpolation for Forecast.Solar data.
189
+
190
+ ## [0.3.20] - 2022-10-05
191
+ ### Improvement
192
+ - Added more detailed examples to the forecast module documentation.
193
+ - Improved handling of datatime indexes in DataFrames on forecast module.
194
+ - Added warning messages if passed list values contains non numeric items.
195
+ - Added missing unittests for forecast module with request.get dependencies using MagicMock.
196
+ - Added the Solar.Forecast method.
197
+
198
+ ## [0.3.19] - 2022-09-14
199
+ ### Fix
200
+ - Updated default values for a working LP solver.
201
+ - Removed option to provide a custom web ui url.
202
+ - Added extra runtime parameters to use solcast PV forecast.
203
+
204
+ ## [0.3.18] - 2022-08-27
205
+ ### Improvement
206
+ - Improving documentation, added more information on forecast page.
207
+ - Added support for SolCast PV production forecasts.
208
+ - Added possibility to pass some optimization parameters at runtime.
209
+ - Added some unittest for passing data as list testing.
210
+ ### Fix
211
+ - 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.
212
+
213
+ ## [0.3.17] - 2022-06-12
214
+ ### Fix
215
+ - Fixed wrong variables names for mixed forecasts.
216
+ - Fixed handling of load sensor name in command line setup function.
217
+
218
+ ## [0.3.16] - 2022-06-10
219
+ ### Improvement
220
+ - Improving documentation, added "what is this" section and added some infographics.
221
+ - Added new forecasts methods chapter in documentation.
222
+ - Added publish of sensors for p_grid_forecast & total value of cost function.
223
+ - Implemented now/current value forecast correction when using MPC.
224
+
225
+ ## [0.3.15] - 2022-06-06
226
+ ### Fix
227
+ - Fixed small bug with wrong DF variable name in web server.
228
+
229
+ ## [0.3.14] - 2022-06-05
230
+ ### Improvement
231
+ - Added one more table to the webui showing the cost totals.
232
+ ### Fix
233
+ - Fixed wrong type error when serializing numpy ints. Converted ints to Python type.
234
+
235
+ ## [0.3.13] - 2022-05-20
236
+ ### Fix
237
+ - Fix wrong default value implementation for solver params.
238
+
239
+ ## [0.3.12] - 2022-05-20
240
+ ### Improvement
241
+ - Added support to provide solver name and path as parameters in the configuration file.
242
+
243
+ ## [0.3.11] - 2022-05-23
244
+ ### Fix
245
+ - Fixed unittests not passing.
246
+
247
+ ## [0.3.10] - 2022-05-23
248
+ ### Improvement
249
+ - Added data as attributes for forecasts (PV and load), deferrable loads and battery: power+SOC.
250
+ - Improved the graph in the webserver, now using subplots.
251
+ - Rearranged vertical space in index.html template.
252
+ ### Fix
253
+ - Added threads option on waitress to possibly improve queue problem.
254
+
255
+ ## [0.3.9] - 2022-05-19
256
+ ### Improvement
257
+ - Improved publish data logging.
258
+ - Round published data.
259
+ - Attributes to forecasts published data.
260
+ - Improved centering html on small devices.
261
+ - Improved handling of closest index when publishing data.
262
+ ### Fix
263
+ - Fixed problem with csv filenames, was using only filename specific to dayahead optimization.
264
+ - Fixed data list handling for load cost and prod price forecasts.
265
+ - Fixed publish data dictionary to contain only data from correct entity_id.
266
+ - May have solved double log lines.
267
+
268
+ ## [0.3.8] - 2022-05-17
269
+ ### Fix
270
+ - Still fixing issues when passing csv files and lists.
271
+
272
+ ## [0.3.7] - 2022-05-17
273
+ ### Fix
274
+ - Fixed None weather df issue when passing lists.
275
+ - Improved command line unittests.
276
+
277
+ ## [0.3.6] - 2022-05-17
278
+ ### Fix
279
+ - Fixed wrong handling of list values when preparing data for MPC.
280
+
281
+ ## [0.3.5] - 2022-05-16
282
+ ### Fix
283
+ - Fixed wrong mpc pred horizon param.
284
+
285
+ ## [0.3.4] - 2022-05-16
286
+ ### Fix
287
+ - Fixed unloaded json object problem.
288
+ - Added static style.css as package_data.
289
+
290
+ ## [0.3.3] - 2022-05-15
291
+ ### Fix
292
+ - Fixed dealing with bool and argparse module.
293
+ - Added the templates as package_data so that they can be found by jinja2 PackageLoader.
294
+
295
+ ## [0.3.2] - 2022-05-13
296
+ ### Fix
297
+ - Fixed command_line and utils problem when params is None.
298
+
299
+ ## [0.3.1] - 2022-05-13
300
+ ### Fix
301
+ - Fixed template rendering problems.
302
+
303
+ ## [0.3.0] - 2022-05-12
304
+ ### Improvement
305
+ - Improved the command line setup function to perform the correct amount calls as needed by each action.
306
+ - Added a new naive model predictive control function.
307
+ - Added runtime parameter option for better code order.
308
+ - Moved treatment of runtime parameters from the add-on to the core emhass module. This adds more clarity to the code and also was needed when passing runtime parameters to emhass in standalone mode.
309
+ - Added add-on paramter to command line to define if launching emhass from add-on or in standalone mode.
310
+ - Added new testing file for command_line.
311
+ - Added a webserver. Moved the webserver from the add-on to the core emhass module.
312
+ - Added a WSGI production server for flask using waitress.
313
+ - Added a Dockerfile and procedure to run emhass in standalone mode.
314
+ - Updated the documentation.
315
+
316
+ ## [0.2.14] - 2022-05-05
317
+ ### Improvement
318
+ - 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.
319
+ - 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.
320
+ ### Fix
321
+ - Fixed missing timeStep product for correct deferrable load total energies.
322
+
323
+ ## [0.2.13] - 2022-05-01
324
+ ### Improvement
325
+ - 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).
326
+ ### Fix
327
+ - Fixed issue computing correct final cost values.
328
+
329
+ ## [0.2.12] - 2022-04-28
330
+ ### Improvement
331
+ - Added config parameter to consider that all PV power is injected to the grid.
332
+
333
+ ## [0.2.11] - 2022-04-28
334
+ ### Fix
335
+ - Fixed wrong handling of DateTimeIndex when dealing with forecast method for list of values and csv read.
336
+
337
+ ## [0.2.10] - 2022-04-26
338
+ ### Fix
339
+ - Fixed faulty forecast method for list of values and csv read.
340
+
341
+ ## [0.2.9] - 2022-04-21
342
+ ### Fix
343
+ - Fixed get_loc deprecation warning using now get_indexer pandas method. Improved selection of closest index.
344
+
345
+ ## [0.2.8] - 2022-04-18
346
+ ### Fix
347
+ - Fixed if sentence to correctly use the supervisor API for publish data.
348
+ - Fixing a error computing the nearest index of DataFrame. Using a try/catch strategy to use nearest method as a backup.
349
+
350
+ ## [0.2.7] - 2022-04-18
351
+ ### Fix
352
+ - Fixing a fatal error where the publish data function will never reach the savec csv file as the default filename is not equal to the expected filename in publish_data.
353
+
354
+ ## [0.2.6] - 2022-04-16
355
+ ### Improvement
356
+ - 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.
357
+
358
+ ## [0.2.5] - 2022-04-12
359
+ ### Fix
360
+ - Fixed missing numpy import in utils.
361
+
362
+ ## [0.2.4] - 2022-04-12
363
+ ### Fix
364
+ - Fixed missing command to retrieve PV power forecast when using list of values.
365
+ - Updated handling of freq definition to a pandas index.
366
+
367
+ ## [0.2.3] - 2022-03-29
368
+ ### Improvement
369
+ - Improved support for the new add-on and direct communication via the supervisor.
370
+ - The CLI now can return the version using the --version argument.
371
+ - Improved comments in forecast class.
372
+ ### Added
373
+ - Added unittest for csv method for weather forecast.
374
+ - Added support for passing lists of values to all forecasting methods.
375
+ ### Fix
376
+ - Removed dependency from PVLib Forecast class, as it has been marked as deprecated.
377
+ - Fixed failing docs builds due to uncompatible jinja2 an markupsafe versions.
378
+
379
+ ## [0.2.2] - 2022-03-05
380
+ ### Added
381
+ - Added a new input data file using pickle for tests.
382
+ - Added support to select if the logger should save to a file or not.
383
+ - Added CI workflow using github actions.
384
+ ### Breaking changes
385
+ - Changed package usage of configuration file path, now the user must provide the complete path including the yaml file itself.
386
+ - Changed the names of the configuration and secrets yaml files. These changes will avoid compatibility issues when using hass add-ons.
387
+
388
+ ## [0.2.1] - 2021-12-22
389
+ ### Fixed
390
+ - Cleaned unittest implementation
391
+ ### Added
392
+ - Added support to choose the methods for weather and load forecast from configuration file.
393
+ - Added new load cost and power production price forecasts, mainly allowing the user to load a CSV file with their own forecast.
394
+
395
+ ## [0.2.0] - 2021-10-14
396
+ ### Fixed
397
+ - Fixed tests to pass with latest changes on passing path and logger arguments.
398
+ - Updated requirements for PVLib and Protobuf.
399
+ - Removed unnecessary use of abstract classes.
400
+ - Fixed test_optimization bad setup.
401
+ - Fixed logger integration in classes
402
+ - Updated documentation
403
+ ### Added
404
+ - Implemented typing for compatibility with Python4
405
+ - Implemented different types of cost functions
406
+
407
+ ## [0.1.5] - 2021-09-22
408
+ ### Fixed
409
+ - Fix a recurrent previous bug when using get_loc. The correct default behavior when using get_loc is changed from backfill to ffill.
410
+
411
+ ## [0.1.4] - 2021-09-18
412
+ ### Fixed
413
+ - Fixed a bug when publish-data and reading the CSV file, the index was not correctly defined, so there was a bug when applying pandas get_loc.
414
+ ### Added
415
+ - Added a global requirements.txt file for pip install.
416
+
417
+ ## [0.1.3] - 2021-09-17
418
+ ### Fixed
419
+ - Fixed packaging and configuration for readthedocs.
420
+
421
+ ## [0.1.2] - 2021-09-17
422
+ ### Fixed
423
+ - Modified the cost function equation signs for more clarity. Now the LP is fixed to maximize a profit given by the revenues from selling PV to the grind minus the energy cost of consumed energy.
424
+ - Fixed a deprecation warning from PVLib when retrieving results from the ModelChain object. Now using modelchain.results.ac.
425
+
426
+ ## [0.1.1] - 2021-09-17
427
+ ### Fixed
428
+ - Fixed sign error in cost function.
429
+ - Change publish_data get_loc behavior from nearest to backfill.
430
+ - Changed and updated behavior of the logger. It is constructed and integrated directly in the main function of the command_line.py file. It now writes to a log file by default.
431
+ - Fixed some typos and errors in the documentation.
432
+
433
+ ## [0.1.0] - 2021-09-12
434
+ ### Added
435
+ - Added the first public repository for this project.
436
+
437
+ [0.1.0]: https://github.com/davidusb-geek/emhass/releases/tag/v0.1.0
438
+ [0.1.1]: https://github.com/davidusb-geek/emhass/releases/tag/v0.1.1
439
+ [0.1.2]: https://github.com/davidusb-geek/emhass/releases/tag/v0.1.2
440
+ [0.1.3]: https://github.com/davidusb-geek/emhass/releases/tag/v0.1.3
441
+ [0.1.4]: https://github.com/davidusb-geek/emhass/releases/tag/v0.1.4
442
+ [0.1.5]: https://github.com/davidusb-geek/emhass/releases/tag/v0.1.5
443
+ [0.2.0]: https://github.com/davidusb-geek/emhass/releases/tag/v0.2.0
444
+ [0.2.1]: https://github.com/davidusb-geek/emhass/releases/tag/v0.2.1
445
+ [0.2.2]: https://github.com/davidusb-geek/emhass/releases/tag/v0.2.2
446
+ [0.2.3]: https://github.com/davidusb-geek/emhass/releases/tag/v0.2.3
447
+ [0.2.4]: https://github.com/davidusb-geek/emhass/releases/tag/v0.2.4
448
+ [0.2.5]: https://github.com/davidusb-geek/emhass/releases/tag/v0.2.5
449
+ [0.2.6]: https://github.com/davidusb-geek/emhass/releases/tag/v0.2.6
450
+ [0.2.7]: https://github.com/davidusb-geek/emhass/releases/tag/v0.2.7
451
+ [0.2.8]: https://github.com/davidusb-geek/emhass/releases/tag/v0.2.8
452
+ [0.2.9]: https://github.com/davidusb-geek/emhass/releases/tag/v0.2.9
453
+ [0.2.10]: https://github.com/davidusb-geek/emhass/releases/tag/v0.2.10
454
+ [0.2.11]: https://github.com/davidusb-geek/emhass/releases/tag/v0.2.11
455
+ [0.2.12]: https://github.com/davidusb-geek/emhass/releases/tag/v0.2.12
456
+ [0.2.13]: https://github.com/davidusb-geek/emhass/releases/tag/v0.2.13
457
+ [0.2.14]: https://github.com/davidusb-geek/emhass/releases/tag/v0.2.14
458
+ [0.3.0]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.0
459
+ [0.3.6]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.6
460
+ [0.3.8]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.8
461
+ [0.3.9]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.9
462
+ [0.3.11]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.11
463
+ [0.3.13]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.13
464
+ [0.3.14]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.14
465
+ [0.3.15]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.15
466
+ [0.3.16]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.16
467
+ [0.3.17]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.17
468
+ [0.3.18]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.18
469
+ [0.3.19]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.19
470
+ [0.3.20]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.20
471
+ [0.3.21]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.21
472
+ [0.3.22]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.22
473
+ [0.3.23]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.23
474
+ [0.3.24]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.24
475
+ [0.3.25]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.25
476
+ [0.3.29]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.29
477
+ [0.3.32]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.32
478
+ [0.3.34]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.34
479
+ [0.3.35]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.35
480
+ [0.3.36]: https://github.com/davidusb-geek/emhass/releases/tag/v0.3.36
481
+ [0.4.0]: https://github.com/davidusb-geek/emhass/releases/tag/v0.4.0
482
+ [0.4.1]: https://github.com/davidusb-geek/emhass/releases/tag/v0.4.1
483
+ [0.4.2]: https://github.com/davidusb-geek/emhass/releases/tag/v0.4.2
484
+ [0.4.3]: https://github.com/davidusb-geek/emhass/releases/tag/v0.4.3
485
+ [0.4.4]: https://github.com/davidusb-geek/emhass/releases/tag/v0.4.4
486
+ [0.4.5]: https://github.com/davidusb-geek/emhass/releases/tag/v0.4.5
487
+ [0.4.6]: https://github.com/davidusb-geek/emhass/releases/tag/v0.4.6
488
+ [0.4.7]: https://github.com/davidusb-geek/emhass/releases/tag/v0.4.7
489
+ [0.4.8]: https://github.com/davidusb-geek/emhass/releases/tag/v0.4.8
490
+ [0.4.9]: https://github.com/davidusb-geek/emhass/releases/tag/v0.4.9
491
+ [0.4.10]: https://github.com/davidusb-geek/emhass/releases/tag/v0.4.10
492
+ [0.4.11]: https://github.com/davidusb-geek/emhass/releases/tag/v0.4.11
493
+ [0.4.12]: https://github.com/davidusb-geek/emhass/releases/tag/v0.4.12
494
+ [0.4.13]: https://github.com/davidusb-geek/emhass/releases/tag/v0.4.13
495
+ [0.4.14]: https://github.com/davidusb-geek/emhass/releases/tag/v0.4.14
496
+ [0.4.15]: https://github.com/davidusb-geek/emhass/releases/tag/v0.4.15
497
+ [0.5.0]: https://github.com/davidusb-geek/emhass/releases/tag/v0.5.0
498
+ [0.5.1]: https://github.com/davidusb-geek/emhass/releases/tag/v0.5.1
499
+ [0.6.0]: https://github.com/davidusb-geek/emhass/releases/tag/v0.6.0
500
+
501
+ # Notes
502
+ All notable changes to this project will be documented in this file.
503
+
504
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
505
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
@@ -0,0 +1,128 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ .
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
+ https://www.contributor-covenant.org/translations.
@@ -0,0 +1,14 @@
1
+ # Contributing
2
+
3
+ When contributing to this repository, please first discuss the change you wish to make via issue,
4
+ email, or any other method with the owners of this repository before making a change.
5
+
6
+ Please note we have a code of conduct, please follow it in all your interactions with the project.
7
+
8
+ ## Pull Request Process
9
+
10
+ 1. Fork the repo and create your development branch from `master`.
11
+ 2. If you've added code that should be tested, add tests.
12
+ 3. If needed please update the documentation, including in-code docstrings.
13
+ 4. Ensure the test suite passes by summoning a `pytest` command.
14
+ 6. Issue the pull request.
emhass-0.6.1/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021-2022 David HERNANDEZ
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,13 +1,13 @@
1
- include pyproject.toml
2
-
3
- # Include the README
4
- include *.md
5
-
6
- # Include the license file
7
- include LICENSE.txt
8
-
9
- # Include setup.py
10
- include setup.py
11
-
12
- # Include the data files
13
- recursive-include data *
1
+ include pyproject.toml
2
+
3
+ # Include the README
4
+ include *.md
5
+
6
+ # Include the license file
7
+ include LICENSE.txt
8
+
9
+ # Include setup.py
10
+ include setup.py
11
+
12
+ # Include the data files
13
+ recursive-include data *