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

No data since October 19th at 3PM BST #1054

Open
2 tasks done
Tp-danny opened this issue Oct 29, 2024 · 22 comments
Open
2 tasks done

No data since October 19th at 3PM BST #1054

Tp-danny opened this issue Oct 29, 2024 · 22 comments
Assignees
Labels
bug Something isn't working

Comments

@Tp-danny
Copy link

Describe the bug

My sensors all worked fine as configured for a period of 5 days, but stopped working on October 19th at 3PM. No electricity or gas usage has been reported since.

{A7F40E24-EF99-411A-8DCA-000EA2C8FEC2}

Reproduction steps

Set up presumably as I have my sensors - however I note others experienced disruption with 13.0.3, my issues started before and in fact updating made no change to me. I also can't comment on the BST others have seen, as my integration broke before this point

Expected behaviour

To see electricity and gas usage tracked as per the previous 5 days, shown below. I'll show the timespan to show things worked on each day:

{6B395A2B-8122-43E9-BCAB-C62776520354}

Tariff Code

1012773505176

Integration Version

13.0.2 and 13.0.3

Home Assistant Version

Core 2024.10.2 with frontend 20241002.3

Fresh Install?

Fresh install

Home Assistant Logs

Logs lost upon update to 13.0.3 - I can get some on request.

Confirmation

  • I confirm that I cannot find my solution within the documentation
  • I confirm that I cannot find my solution within the FAQ
@Tp-danny Tp-danny added the bug Something isn't working label Oct 29, 2024
@Tp-danny
Copy link
Author

Wasn't sure on tariff code if I put the right thing so please let me know if I need to update that.

@BottlecapDave
Copy link
Owner

Hello and sorry that you're having issues. It looks like you're using the home mini to provide data. Is this connected to the meter and internet? Can you see data for today in the app?

@BottlecapDave
Copy link
Owner

Also do you have any errors or warnings in your logs? Can you also download the supply the diagnostics as provided by following these instructions -https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy/faq/#ive-been-asked-for-my-meter-information-in-a-bug-request-how-do-i-obtain-this

@Tp-danny
Copy link
Author

Hi - yes I can see the data in the app for every day up until now, so I'm pretty confident the Mini is working.

@Tp-danny
Copy link
Author

For logs:

{979EDA83-07FE-4D8B-9AC2-3CC7C423CC9C}

I see rate update events. I actually can't find anything about the electric or gas usage.

@BottlecapDave
Copy link
Owner

Thanks for those. Nothing is jumping out in the diagnostics other than the consumption sensors not updating as much as they should be. There are diagnostic entities which state when the underlying data was last updated which could shed some light on the situation (they should all be updating within the hour). I also need about an hours worth of debug logs to see if there are any underlying errors being raised.

@quietbiker
Copy link

I'm having exactly the same. Will monitor this.

@BottlecapDave
Copy link
Owner

If you're wishing to supply the requested data @quietbiker, then this might help solve both issues

@PedroC1999
Copy link

PedroC1999 commented Nov 4, 2024

I get this too, but just with Gas. Have added/removed the addon many times and re-generated API key. I have a Home Mini

Electric is fine
octopus_energy-01JBWADZBR4A7PD6ZM3AWY9GYQ-Gas Meter-72bd1f34665572ba103bd7e9c988d0cd.json

@BottlecapDave
Copy link
Owner

Sorry for the late response @PedroC1999. According to your data it can't get the gas information from the API. This however might have been a bug in the diagnostics. If you could update to v13.1.2 and try again, this should confirm what data is available.

@PedroC1999
Copy link

@BottlecapDave

Hi, just to say the last couple updates that seemed relevant have also not changed the situation and it is still happening as before. Let me know if there's anything I can do.

Are there any "wgets" or API commands I can try and manually hit to check?

Thanks

@PedroC1999
Copy link

Screenshot_20241116_091144_ConnectBot

The issue is the API, I get zero data back for Gas, but Electric is fully populated.

@curiousiguana
Copy link

Hi

I have the same issue with gas, data stops on 7th October. All working fine until that point. I'm mostly just following instructions so if you need data then please point me clearly to what you'd like!

@PedroC1999
Copy link

Hi, I contacted OE today and they have sent me a list of instructions. Following on from my message above, the app and IHD also has no data for Gas, and polling the API manually with a wget reveals no data at all for gas. On the phone, they were able to confirm this.

The steps below should pair the Gas smart meter with the HAN, which should restore data flow to Octopus.

Screenshot_20241121_133900_Outlook

Not yet confirmed as I am not home, will edit this post with any result.

@curiousiguana
Copy link

I can give it a go. But I'm pretty sure my data is reaching Octopus as they seem to be billing ok.

@BottlecapDave
Copy link
Owner

@PedroC1999 Sorry for the lack of response. The diagnostic data you supplied suggested that there was no data available, but I wanted to confirm this wasn't a bug in the diagnostic data. Your manual proding confirmed the diagnostic data was indeed correct. But as you have confirmed, as the data isn't available via the API, then this was the cause of the issue. I'm hoping the instructions from OE solve your issue.

@curiousiguana Please confirm if you see data past the 7th October on the website. The app data will be skewed by a Home Mini if you have one, so isn't a great source. If the website doesn't have data either then you'll need to contact OE as it's something wrong on their end.

If the website does have data, then please upgrade to the latest release and follow the instructions to get your diagnostic data and post the results here. It might also be worth enabling the diagnostic entities as well to make sure HA is attempting to retrieve the data correctly.

@quietbiker
Copy link

Hi Dave, I've finally found time. I did call Octopus in case they could spot something, but the agent has no details on their API and didn't appear to know anything about it.

If you're wishing to supply the requested data @quietbiker, then this might help solve both issues

Core: 2024.11.3
Supervisor: 2024.11.4
Operating System: 13.2
Frontend: 20241106.2

Octopus Energy 13.1.3

Error seen (HA Logs) as

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

CURL from command line does appear to work fine on GAS and Electric.
I'm running in a Proxmox VM - I don't think this makes any difference (standard networking and CURL example from Octopus does not show errors)

HA Log attached with DEBUG enabled.

home-assistant_2024-11-26T17-56-35.690Z.log

@BottlecapDave
Copy link
Owner

BottlecapDave commented Dec 1, 2024

@quietbiker, it looks like for some reason the Home Mini device that is being reported in your account by the OE API is not accessible via the Home Mini API.

If you're comfortable running GraphQL, if you could run the following query to make sure there's not some clashes somewhere

query {
  account(accountNumber: "{account_id}") {
    electricityAgreements(active: true) {
			meterPoint {
				mpan
				meters(includeInactive: false) {
					serialNumber
          smartDevices {
            id
            deviceId
            type
            status
            manufacturer
            model
            firmwareVersion
          }
				}
			}
    }
    gasAgreements(active: true) {
			meterPoint {
				mprn
				meters(includeInactive: false) {
					serialNumber
          smartDevices {
            id
            deviceId
            type
            status
            manufacturer
            model
            firmwareVersion
          }
				}
			}
    }
  }
}

This will confirm if you need to contact OE based on the error. I'm guessing your home mini data is accessible via the app?

@curiousiguana
Copy link

@PedroC1999 Sorry for the lack of response. The diagnostic data you supplied suggested that there was no data available, but I wanted to confirm this wasn't a bug in the diagnostic data. Your manual proding confirmed the diagnostic data was indeed correct. But as you have confirmed, as the data isn't available via the API, then this was the cause of the issue. I'm hoping the instructions from OE solve your issue.

@curiousiguana Please confirm if you see data past the 7th October on the website. The app data will be skewed by a Home Mini if you have one, so isn't a great source. If the website doesn't have data either then you'll need to contact OE as it's something wrong on their end.

If the website does have data, then please upgrade to the latest release and follow the instructions to get your diagnostic data and post the results here. It might also be worth enabling the diagnostic entities as well to make sure HA is attempting to retrieve the data correctly.

Octopus do have consumption for me.

I have the diagnostic data, how do I post without any account information? Is there anything within the file that I need to remove?

@BottlecapDave
Copy link
Owner

@curiousiguana Sorry for the late response. The diagnostic data should have identifiable information removed, but there may be additional information that HA adds that you might want to remove.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants