|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## [v2.3.0](https://github.com/azogue/aiopvpc/tree/v2.3.0) - Decrease API refresh rate and try to avoid banning (2021-12-01) |
| 4 | + |
| 5 | +[Full Changelog](https://github.com/azogue/aiopvpc/compare/v2.3.0...v2.2.4) |
| 6 | + |
| 7 | +Quick-Fix Release motivated by the last change in the ESIOS server (on 2021-11-30 😱), |
| 8 | +which is now apparently banning HomeAssistant requests, |
| 9 | +filtering us out because of the 'User-Agent' headers data 😤, |
| 10 | +as the server is returning a 403 status code error for a PUBLIC url 🤷. |
| 11 | + |
| 12 | +**Changes:** |
| 13 | + |
| 14 | +* :zap: **Substantially decrease the number of API requests to ESIOS**, |
| 15 | +avoiding unnecesary calls to refresh data for the same electricity prices. |
| 16 | + Before, when used from the `pvpc_hourly_pricing` HA Core integration, |
| 17 | +the ESIOS API was called 2 times/hour from 0h to 20h, and 4 times/hour in the evening, |
| 18 | +from 20h to 0h, retrieving today + tomorrow prices. |
| 19 | + This makes a total of ~56 requests/day, which is _not a lot_ 😅, |
| 20 | +but it seems the aggregated total for the HA user base (🔥 >30k requests/day just |
| 21 | +counting users pushing HA analytics) is being some kind of a problem for ESIOS, |
| 22 | +as it looks like they're trying to bane us 🥺😭 |
| 23 | + Now, the API handler avoids calls to retrieve already available prices, |
| 24 | +cutting down the number of requests to just 1-2 requests/day 🤩 |
| 25 | + |
| 26 | +* :bug: **Set standard `User-Agent` header info**, to try to avoid server-side banning 🙈, |
| 27 | +and _rotate_ it if banning is detected, using common User-Agent browser identifiers. |
| 28 | + |
| 29 | +* :recycle: Minor code refactor to prepare for future library changes, in order to move to authenticated API endpoints in future versions. |
| 30 | + |
3 | 31 | ## [v2.2.4](https://github.com/azogue/aiopvpc/tree/v2.2.4) - Split today / tomorrow price sensor attributes (2021-11-20)
|
4 | 32 |
|
5 | 33 | [Full Changelog](https://github.com/azogue/aiopvpc/compare/v2.2.4...v2.2.2)
|
|
0 commit comments