BottlecapDave / HomeAssistant-OctopusEnergy

Unofficial Home Assistant integration for interacting with Octopus Energy
https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy/
MIT License
532 stars 49 forks source link

Just adde your latest update will not initialise error and warning logs #885

Closed thorrrr closed 1 month ago

thorrrr commented 1 month ago

Describe the bug

After HA update and adding your latest update as of this morning i see error on dashboard and warning logs

Reproduction steps

Nothing to doi its just a error

Expected behaviour

It shows not errors or warning logs

Tariff Code

Current Rate Electricity (17P5604074 1300004118991)

Integration Version

11.0.2

Home Assistant Version

Core 2024.5.5 Supervisor 2024.05.1 Operating System 12.3 Frontend

Fresh Install?

After upgrading

Home Assistant Logs

ogger: custom_components.octopus_energy.api_client Source: custom_components/octopus_energy/api_client/init.py:1369 integration: Octopus Energy (documentation, issues) First occurred: 08:12:52 (10 occurrences) Last logged: 08:17:20

Errors in request (https://api.octopus.energy/v1/graphql/): [{'message': 'Unauthorized.', 'locations': [{'line': 2, 'column': 3}], 'path': ['octoplusAccountInfo'], 'extensions': {'errorType': 'AUTHORIZATION', 'errorCode': 'KT-CT-1111', 'errorDescription': 'The viewer is not authorized to execute the query/mutation. Check authentication or roles/permissions.'}}, {'message': 'Unauthorized.', 'locations': [{'line': 5, 'column': 3}], 'path': ['account'], 'extensions': {'errorType': 'AUTHORIZATION', 'errorCode': 'KT-CT-1111', 'errorDescription': 'The viewer is not authorized to execute the query/mutation. Check authentication or roles/permissions.'}}]

image image image

Confirmation

jwt99412 commented 1 month ago

All next, current and previous electricity tariff information showing as unknown from 02:00 BST this morning. Probably Octopus as has been working and I have had 11.0.2 for days.

thorrrr commented 1 month ago

Fixed it I renewed my API now working

thorrrr commented 1 month ago

Please mark as solved

BottlecapDave commented 1 month ago

I'm glad to hear that this was related to your API key. I'll try and add a repair notice for when this error is encountered to make it clearer.

jwt99412 commented 1 month ago

I think the unknown rates thing is unrelated. Octopus app not showing rates either as is the octopuswatch app. Still think there is an issue at Octopus.

BottlecapDave commented 1 month ago

The unknown rates were not related to the original issue. I'll close this ticket in favour of a new one to generate a repair notice in the event of an invalid API key.