Skip to content
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

OVO Energy Integration not working - Fail to setup #119854

Open
nicolaasuni opened this issue Jun 17, 2024 · 7 comments
Open

OVO Energy Integration not working - Fail to setup #119854

nicolaasuni opened this issue Jun 17, 2024 · 7 comments

Comments

@nicolaasuni
Copy link

The problem

The OVO Energy integration is not working. It fails to setup with the correct account.
The current OVO Energy version is 2.0.0.
Please see the attached logs.

What version of Home Assistant Core has the issue?

2024.6.3

What was the last working version of Home Assistant Core?

many months ago

What type of installation are you running?

Home Assistant Core

Integration causing the issue

OVO Energy

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-06-17 18:36:56.126 ERROR (MainThread) [homeassistant.components.ovo_energy] Unexpected error fetching sensor data
Traceback (most recent call last):
  File "/home/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/update_coordinator.py", line 312, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/update_coordinator.py", line 268, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/lib/python3.12/site-packages/homeassistant/components/ovo_energy/__init__.py", line 70, in async_update_data
    return await client.get_daily_usage(dt_util.utcnow().strftime("%Y-%m"))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/lib/python3.12/site-packages/ovoenergy/__init__.py", line 268, in get_daily_usage
    if self.account_id is None:
       ^^^^^^^^^^^^^^^
  File "/home/homeassistant/lib/python3.12/site-packages/ovoenergy/__init__.py", line 73, in account_id
    raise OVOEnergyNoAccount("Custom account not found in accounts")
ovoenergy.exceptions.OVOEnergyNoAccount: Custom account not found in accounts


### Additional information

_No response_
@home-assistant
Copy link

Hey there @timmo001, mind taking a look at this issue as it has been labeled with an integration (ovo_energy) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of ovo_energy can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign ovo_energy Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


ovo_energy documentation
ovo_energy source
(message by IssueLinks)

@pauldsmyth
Copy link

I'm also experiencing this. Have Ovo made a change to their API or is it being rate limited?

@Lozzy0603
Copy link

Same Problem.
HA Core 2024.7.2
Supervisor 2024.06.2
OS 12.4
Frontend 20240710.0

I am trying using just my OVO username and password. I have a single account inside. If I try to configure using my OVO account number as well it says: 'Unknown error occured'.

I wonder if OVO changed some things about their API? Needs the origional author @timmo001 to take a look at the code please if they have time.

`Logger: homeassistant.components.ovo_energy
Source: helpers/update_coordinator.py:312
integration: OVO Energy (documentation, issues)
First occurred: 16:31:05 (2 occurrences)
Last logged: 16:37:49

Unexpected error fetching sensor data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 312, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 268, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/ovo_energy/init.py", line 70, in async_update_data
return await client.get_daily_usage(dt_util.utcnow().strftime("%Y-%m"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ovoenergy/init.py", line 268, in get_daily_usage
if self.account_id is None:
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ovoenergy/init.py", line 73, in account_id
raise OVOEnergyNoAccount("Custom account not found in accounts")
ovoenergy.exceptions.OVOEnergyNoAccount: Custom account not found in accounts`

@pauldsmyth
Copy link

This issue is being caused by the api endpoint being put behind Cloudflare and CF blocking the outbound external IP.
It may need some rate limiting putting in place in order to stop this happening but I don't think OVO will bother removing IPs from the blocklist.

@scoobyd00
Copy link

Im unable to remove the intergration now as it fails to setup. Any idea how to force removal of the ovo energy integration?

@Heretik666999
Copy link

Same issue here..

@scoobyd00
Copy link

Looks like this integration is dead, no updates and non working

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

No branches or pull requests

5 participants