-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Gas Previous Consumption (kWh & m3) & Previous Cost not updating #1207
Comments
Hello and sorry that you're encountering issues. Do you have any errors in your logs related to the integration? If not, please submit you diagnostic data, as well as enabling the diagnostic entities to see if it's still attempting to request the data. Am I also correct in saying that you see the data on the website? This might be skewed if you have an Octopus Mini, as the website shows that data until meter information is available. |
No Log errors Dave. Well not for Gas, anyway. I can see daily totals for gas on the OE app. I have enabled logging on the integration and enabled the diag entities for Gas. How long do you want me to run the logs before downloading? |
Just for clarity, The original problem I flagged ( #1201) showed no updates after 23 Jan. Then when I updated the integration on Feb 5th (manually, because HACS had not notified me) it did up date. I noticed that in the attributes for that update, it said 'is estimated: true'. |
The estimated flag, as per the docs https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy/entities/gas/#previous-accumulative-consumption-m3, is if you look at the kWh variation but your meter reports in m3 or vice versa. I should only need an hour worth of logs, but if you're not seeing any errors in relation to the integration then the debug logs probably won't show anything in addition (but always worth a try). The diagnostic entity will at least show if the integration is attempting to retrieve the updated information. Do you have a home mini? If you do, the it might be worth turning it off for a couple of days and see if you get data in the OE website as this will show if you have data coming from your meter. |
Hi Dave, Still no errors in the log that log pertinent. Only this: Logger: homeassistant.helpers.entity Update of sensor.octopus_energy_electricity_19e5165447_1900092416442_export_previous_accumulative_consumption is taking over 10 seconds Log attached - sorry it's a bit large. home-assistant_octopus_energy_2025-02-10T08-28-59.549Z.log I do have a Mini, but is that not only echoing what OE receive from the meter? |
Hi Dave, Following on from above, I have spoken to OE and asked them if they could check to see if they have been seeing any issues with getting readings from either of my meters and they confirm that, as far as they are concerned, it all looks hunky dory. Steve |
Your logs state the following
which suggests you should have information available for 8th February, accept the following logs is
which is only fired if it's attempting to calculate but none of the data has changed since the entity was last reset. I'll need to add some additional logging for the next release, as I'm not sure why it's got into this state. |
Thanks Dave, Is there anything I can do in the meantime to give it a metaphorical kick in the pants!? Is this suggesting the problem is HA or OE? |
It's some kind of issue with HA and the logic around the sensors. If you reload the integration it should cause it to reload the data within a couple of minutes. |
Just reloaded integration (twice in 10 mins) and the timestamp on the data (both times) is 8/2. Also, Elec Prev Cum is also stamped at 8/2. |
I think this is correct based on your logs as it looked like you only had data up to 8/2 and the last reset is set to the beginning of this day. I've added some additional logs in preparation for the next release, which should be sometime this week. |
Again, thanks Dave. Is this issue something that is peculiar to me, or will all HA users be seeing the same things? Bearing in mind that it's now 11/2, would you expect the next update to be for 9/2 or 10/2? |
I'd expect this thread to be a lot more busy if it was effecting other users, so I think it's a niche issue to you and potentially a small number of other users. I've had issues in the past where HA seems to forget entities exist, which is why they don't get updated. But I never got down to why this occurred. I keep an eye on these sensors myself and haven't had an issue. For 11/2 id expect 10/2 by the end of the day. |
I've released some additional logging as part of v14.0.0. This will hopefully help guide me in the right directon about what is happening. Once installed, if you can enable debugging again and you should get some additional logs. I only require about 20 lines either side of |
No update showing in HACS. Should I just delete the int and re-download? |
Hi Dave,, Here you go :-) |
Hello all, I'm having similar issues with Gas entities here - all have become unavailable and stopped reporting since overnight 10-11th February. OE v14.0.0
From my logs:
I have an Octopus home mini which seems to be functioning correctly (solid white light and i can see live gas usage in the octopus android app). I've tried reloading the OE integration, regenerating my API key then reconfiguring the OE integration, restarting HA and ensuring all updates are installed. Any advice on what to try next will be much appreciated 🙏 Cheers |
@jevburchell according to the diagnostic data provided, your account is not supplying any gas meters via the API, which is why the data is no longer being provided. You might need to contact OE if this should not be the case. The integration is using the REST version of the API to get the gas meters. |
Hi Dave, Hmm, That’s unusual, it’s all been working fine now for a couple of years with no changes. I’ll see if Octopus can be of any assistance. Might try restarting Home Mini first and see if that helps. Thanks |
Hi Dave, Did you spot anything from the logs I sent? Cheers Steve |
@HarryFlatter I've just had a look at the logs and it doesn't look like it's retrieving any gas consumption data based on those logs. Can you download the diagnostic data and provide this. It should look similar to what @jevburchell provided, as this will indicate the timestamp of the latest available data. |
And as if by magic, the cumulative previous usage and cost have updated, both yesterday and day before. Both around 2-3pm. Shall I still send the diag data, or see if it continues to update today and onward for a few days? |
Hi Dave, an update from my end. Thank you for pointing me in the right direction by looking through my diagnostic data. A few weeks ago Octopus got in touch to let me know my tracker gas term was coming to an end. I immediately filled in the web form to renew it, submitted it, and thought nothing more of it. It seems that form has been lost in the ether somewhere - and the API stopped reporting my gas meter because my tariff had dropped off and no longer existed. A couple of messages back and forth with Octopus (who were great I must say), a new tracker tariff was setup, I reloaded the OE integration, and I’m back up and running again. Thus my issue is now resolved, and has nowt to do with your integration. Thanks again for your guidance and for maintaining this integration - it is a central part of my solar and energy system and is extremely useful. Your work is highly appreciated. Cheers, |
@jevburchell glad you managed to resolve your issue. @HarryFlatter feel free to send it now, but also send it when it stops updating, as that will state the date of the latest record OE hold for your meters. I've had incidents where the latest date is an hour or two into the day, which is why the integration requests just over a days worth of records. In your instance it's either 1) your meter has stopped reporting temporarily which happens from time to time especially if you're in an area with poor reception or 2) OE is reporting data further into the day (e.g. 3am or 4am) which is meaning the integration isn't getting data that equates to a full day (as it would spread multiple days incompletely) |
Hi Dave, Sure enough, Previous figures updated at 2:26pm. 👍 See attached diags. octopus_energy-89e9fe11e5b43612c6ab6a12360f28e3-Gas Meter-4690110ecfca65a13f11fd9bd6a2f71d.json Re meter stopping reporting, it's only the Previous data that was missing. All other data was updating. Also, as I mentioned, I did verify with OE that they had seen nothing untoward with the gas meter reporting/ connectivity. |
This issue has become stale because it has been open for 30 days with no activity. If you still think it's an issue, please respond soon. |
Describe the bug
Hi Dave,
Following on from #1201 these entities do not appear to be updating.
Reproduction steps
Checked current entity value and since it became available after updating to the latest version, it has not updated since.
Expected behaviour
Should update each 24 hours
Tariff Code
Gas Fixed 14M
Integration Version
13.5.4
Home Assistant Version
2025.2.1
Fresh Install?
Not specified
Home Assistant Logs
These are the attributes on 9/2 for the Previous Cumulative Usage:
Mprn
REDACTED
Serial number
REDACTED
Is estimated
true
Charges
end: '2025-02-03T12:30:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-03T13:00:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-03T13:30:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-03T14:00:00+00:00'
consumption_m3: 0.534
consumption_kwh: 5.87
end: '2025-02-03T14:30:00+00:00'
consumption_m3: 0.7
consumption_kwh: 7.695
end: '2025-02-03T15:00:00+00:00'
consumption_m3: 0.559
consumption_kwh: 6.145
end: '2025-02-03T17:00:00+00:00'
consumption_m3: 0.732
consumption_kwh: 8.047
end: '2025-02-03T17:30:00+00:00'
consumption_m3: 0.659
consumption_kwh: 7.245
end: '2025-02-03T19:00:00+00:00'
consumption_m3: 0.375
consumption_kwh: 4.123
end: '2025-02-03T19:30:00+00:00'
consumption_m3: 0.478
consumption_kwh: 5.255
end: '2025-02-03T20:00:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-03T22:00:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-04T02:30:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-04T04:30:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-04T05:00:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-04T05:30:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-04T06:00:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-04T06:30:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-04T07:00:00+00:00'
consumption_m3: 0.362
consumption_kwh: 3.98
end: '2025-02-04T07:30:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-04T09:30:00+00:00'
consumption_m3: 0.5
consumption_kwh: 5.497
end: '2025-02-04T10:00:00+00:00'
consumption_m3: 0.478
consumption_kwh: 5.255
end: '2025-02-04T10:30:00+00:00'
consumption_m3: 0.401
consumption_kwh: 4.408
end: '2025-02-04T11:00:00+00:00'
consumption_m3: 0.43
consumption_kwh: 4.727
end: '2025-02-04T11:30:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-04T12:00:00+00:00'
consumption_m3: 0.504
consumption_kwh: 5.541
end: '2025-02-04T12:30:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-04T13:00:00+00:00'
consumption_m3: 0.149
consumption_kwh: 1.638
end: '2025-02-04T13:30:00+00:00'
consumption_m3: 0.257
consumption_kwh: 2.825
end: '2025-02-04T14:00:00+00:00'
consumption_m3: 0.04
consumption_kwh: 0.44
end: '2025-02-04T15:30:00+00:00'
consumption_m3: 0.419
consumption_kwh: 4.606
end: '2025-02-04T16:00:00+00:00'
consumption_m3: 0.04
consumption_kwh: 0.44
end: '2025-02-04T16:30:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-04T17:00:00+00:00'
consumption_m3: 0.46
consumption_kwh: 5.057
end: '2025-02-04T17:30:00+00:00'
consumption_m3: 0.304
consumption_kwh: 3.342
end: '2025-02-04T18:00:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-04T18:30:00+00:00'
consumption_m3: 0.355
consumption_kwh: 3.903
end: '2025-02-04T19:00:00+00:00'
consumption_m3: 0.193
consumption_kwh: 2.122
end: '2025-02-04T19:30:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-04T20:00:00+00:00'
consumption_m3: 0.451
consumption_kwh: 4.958
end: '2025-02-04T20:30:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-04T21:00:00+00:00'
consumption_m3: 0.08
consumption_kwh: 0.879
end: '2025-02-04T21:30:00+00:00'
consumption_m3: 0.326
consumption_kwh: 3.584
end: '2025-02-04T22:00:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-04T22:30:00+00:00'
consumption_m3: 0.455
consumption_kwh: 5.002
end: '2025-02-04T23:00:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-04T23:30:00+00:00'
consumption_m3: 0
consumption_kwh: 0
end: '2025-02-05T00:00:00+00:00'
consumption_m3: 0
consumption_kwh: 0
Calorific value
38.7
Confirmation
The text was updated successfully, but these errors were encountered: