Releases: privatecoder/ha-pvpc-next
Change refresh-time
- 🔧 Bump bundled aiopvpc to v5.0.2 (change refresh-time to 20:20 according to ree.es refresh at 20:15)
Fix partial data on first load with API token
- 🐛 Fix partial data on first load with API token: when the config flow token validation triggers ESIOS rate-limiting, the first coordinator refresh now retries failed sensors after a short delay (bundled
aiopvpcv5.0.1). - 🐛 Diagnostic sensors (API Source, Price Mode, Data IDs) are now available independently of PVPC price data availability.
Vendor conflicting libraries
- Vendor
aiopvpcandpvpc_holidaysdirectly into the custom component to avoid conflicts with the built-inpvpc_hourly_pricingintegration that pins a differentaiopvpcversion from PyPI. - Remove git-based
aiopvpcrequirement frommanifest.json; onlyholidays>=0.89is needed now. - Update dependency logger names to match vendored module paths.
Add indexed prices
- Add configurable price mode (
pvpcorindexed) with safe defaults for existing configurations (indexedmode is only available when using the private API with a valid API token) - Add optional reference price sensor behavior (
Current Indexed Pricein PVPC mode orCurrent PVPCin indexed mode) - Add a dedicated diagnostic sensor that reports active price mode.
- Add
modeattribute onCurrent Priceto show whether PVPC or indexed pricing is active.
Fix holiday handling
fix underlying holiday handling through spanish-pvpc-holidays, added config for spanish-pvpc-holidays' csv-/python-holidays-options, optimized holiday-fetch-handling, added proper debug logs
Note:
As noted by some, not all public holidays in spain count as holidays that will be treated as period 3 (valle).
aiopvpc has therefore been updated to not directly use python holidays but the newly created spanish-pvpc-holidays wrapper.
It aims to calculate only valid holidays based on python-holidays or a csv export from the official Seguridad Social website as source.
Fix broken aiopvpc dependency
fix broken aiopvpc dependency which itself had an incompatible version dependency of async_timeout (incompatible with the pinned version in HA core)
Make time-delta sensors update-interval configurable, add average price for today
made time-delta sensors update-interval configurable via options (disabled / hourly / minutely), added average price for today (to keep track of pricing)
Outsourced bundled aiopvpc
outsourced the updated and patched bundled aiopvpc to its own fork.
Imporve better prices ahead
compute “better prices ahead” across today+tomorrow directly and set it always relative to the current price.
Add power period sensors
added sensors for current power period, next power period and a timer until the next power period.