8000 pvpc_hourly_pricing integration is broken since 2021-11-02 · Issue #58986 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pvpc_hourly_pricing integration is broken since 2021-11-02 #58986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
azogue opened this issue Nov 3, 2021 · 6 comments · Fixed by #59008
Closed

pvpc_hourly_pricing integration is broken since 2021-11-02 #58986

azogue opened this issue Nov 3, 2021 · 6 comments · Fixed by #59008

Comments

@azogue
Copy link
Member
azogue commented Nov 3, 2021

The problem

Some configuration has changed in the public server https://api.esios.ree.es and now it's returning a 403 Forbidden for the API call used to retrieve electricity prices.

The solution is easy, but tricky and somehow unexpected. It works just by:

  • Adding a User-Agent header in the GET JSON request (right now it's doing a naive get using the aiohttp AsyncSession provided by HA Core)
  • or bumping aiohttp to 3.8.0 from the current 3.7.4.post0 🤷

A version patch for the aiopvpc library has been published (with just option 1, adding the header), and I'll push the PR with the version bump before EOD, but as right now I'm very disconnected from the aiohttp lib (using httpx for everything), I thought this detail appreciation could be useful for someone ¿?

What version of Home Assistant Core has the issue?

2021.11.b4

What was the last working version of Home Assistant Core?

2021.10.0

What type of installation are you running?

Home Assistant OS

Integration causing the issue

pvpc_hourly_pricing

Link to integration documentation on our website

https://www.home-assistant.io/integrations/pvpc_hourly_pricing/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

repeated bad data update, mark component as unavailable source

Additional information

No response

@probot-home-assistant
Copy link

pvpc_hourly_pricing documentation
pvpc_hourly_pricing source
(message by IssueLinks)

@azogue azogue self-assigned this Nov 3, 2021
@hmmbob
Copy link
Contributor
hmmbob commented Nov 3, 2021

Not involved at all, but I just saw this aiohttp bump PR in the list which covers option 2, if I'm correct.

#58974

@deltazerorsan
Copy link

So now there is nothing we can do locally to patch the issue... Or can we add by hand the User-Agent header until a new version is released?

Thanks a lot for this integration.

Rom

@azogue
Copy link
Member Author
azogue commented Nov 3, 2021

So now there is nothing we can do locally to patch the issue... Or can we add by hand the User-Agent header until a new version is released?

@deltazerorsan, the quickest way of solving it: azogue/aiopvpc#27 (comment) (install as custom_component with attached zip)

@deltazerorsan
Copy link

So now there is nothing we can do locally to patch the issue... Or can we add by hand the User-Agent header until a new version is released?

@deltazerorsan, the quickest way of solving it: azogue/aiopvpc#27 (comment) (install as custom_component with attached zip)

Perfect man! Working again... Thanks a lot!

@trivi
Copy link
trivi commented Nov 3, 2021

Thank you @azogue , you are always really quick fixing this integration.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
0