Motivated by recent successful attempts to kick us out from api.esios.ree.es, we are changing the data source to another server, at apidatos.ree.es.
👏 As suggested by @lazynoda in this comment, REE has another public and documented API (REData API) with the same information as the current one, available without authentication 👌, so it may deserve a chance 🤞.
This release implements the new data-source, but also maintains the legacy one.
Initial configuration is set with a new data_source parameter, with the new source as default.
If a 403 status-code is received, the data source is switched (new to legacy / legacy to new), no retry is done (and the User-Agent loop trick is only used for the legacy data source)
🔥 BREAKING-CHANGE: this release removes support for the old PVPC tariffs (prices < 2021-06-01), and the extra methods to use this library as a dataloader (.download_prices_for_range(...)), leaving only the code to support the HA Core integration.
Changes:
:fire: Remove support for old PVPC tariffs and range download methods,
and make tariff and websession required arguments
:sparkles: Add alternative data-source from 'apidatos.ree.es'
Implement data parsing from apidatos.ree.es, using endpoint at /es/datos/mercados/precios-mercados-tiempo-real
Add data_source parameter with valid keys 'apidatos' and 'esios_public', setting the new one as default ;-)
Remove retry call if 403 status is received, but maintain the User-Agent loop, and also toggle the data source for the next call
Move old ATTRIBUTION to .attribution property, as a function of the data-source
:truck: Change test patterns to new tariffs by substituting old examples in DST days from 2019 to equivalent days since 2021-06, using the new tariff keys
:truck: Add test patterns from new data-source, and adjust tests
Motivated by recent successful attempts to kick us out from
api.esios.ree.es
, we are changing the data source to another server, atapidatos.ree.es
.👏 As suggested by @lazynoda in this comment, REE has another public and documented API (REData API) with the same information as the current one, available without authentication 👌, so it may deserve a chance 🤞.
This release implements the new data-source, but also maintains the legacy one.
data_source
parameter, with the new source as default.🔥 BREAKING-CHANGE: this release removes support for the old PVPC tariffs (prices < 2021-06-01), and the extra methods to use this library as a dataloader (
.download_prices_for_range(...)
), leaving only the code to support the HA Core integration.Changes:
:fire: Remove support for old PVPC tariffs and range download methods, and make
tariff
andwebsession
required arguments:sparkles: Add alternative data-source from 'apidatos.ree.es'
apidatos.ree.es
, using endpoint at/es/datos/mercados/precios-mercados-tiempo-real
data_source
parameter with valid keys 'apidatos' and 'esios_public', setting the new one as default ;-).attribution
property, as a function of the data-source:truck: Change test patterns to new tariffs by substituting old examples in DST days from 2019 to equivalent days since 2021-06, using the new tariff keys
:truck: Add test patterns from new data-source, and adjust tests