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

Gas Previous Consumption (kWh & m3) & Previous Cost not updating #1207

Open
2 tasks done
HarryFlatter opened this issue Feb 9, 2025 · 26 comments
Open
2 tasks done

Gas Previous Consumption (kWh & m3) & Previous Cost not updating #1207

HarryFlatter opened this issue Feb 9, 2025 · 26 comments
Assignees
Labels
bug Something isn't working stale The issue has not had any activity for a while

Comments

@HarryFlatter
Copy link

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

  • start: '2025-02-03T12:00:00+00:00'
    end: '2025-02-03T12:30:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-03T12:30:00+00:00'
    end: '2025-02-03T13:00:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-03T13:00:00+00:00'
    end: '2025-02-03T13:30:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-03T13:30:00+00:00'
    end: '2025-02-03T14:00:00+00:00'
    consumption_m3: 0.534
    consumption_kwh: 5.87
  • start: '2025-02-03T14:00:00+00:00'
    end: '2025-02-03T14:30:00+00:00'
    consumption_m3: 0.7
    consumption_kwh: 7.695
  • start: '2025-02-03T14:30:00+00:00'
    end: '2025-02-03T15:00:00+00:00'
    consumption_m3: 0.559
    consumption_kwh: 6.145
  • start: '2025-02-03T16:30:00+00:00'
    end: '2025-02-03T17:00:00+00:00'
    consumption_m3: 0.732
    consumption_kwh: 8.047
  • start: '2025-02-03T17:00:00+00:00'
    end: '2025-02-03T17:30:00+00:00'
    consumption_m3: 0.659
    consumption_kwh: 7.245
  • start: '2025-02-03T18:30:00+00:00'
    end: '2025-02-03T19:00:00+00:00'
    consumption_m3: 0.375
    consumption_kwh: 4.123
  • start: '2025-02-03T19:00:00+00:00'
    end: '2025-02-03T19:30:00+00:00'
    consumption_m3: 0.478
    consumption_kwh: 5.255
  • start: '2025-02-03T19:30:00+00:00'
    end: '2025-02-03T20:00:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-03T21:30:00+00:00'
    end: '2025-02-03T22:00:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-04T02:00:00+00:00'
    end: '2025-02-04T02:30:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-04T04:00:00+00:00'
    end: '2025-02-04T04:30:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-04T04:30:00+00:00'
    end: '2025-02-04T05:00:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-04T05:00:00+00:00'
    end: '2025-02-04T05:30:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-04T05:30:00+00:00'
    end: '2025-02-04T06:00:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-04T06:00:00+00:00'
    end: '2025-02-04T06:30:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-04T06:30:00+00:00'
    end: '2025-02-04T07:00:00+00:00'
    consumption_m3: 0.362
    consumption_kwh: 3.98
  • start: '2025-02-04T07:00:00+00:00'
    end: '2025-02-04T07:30:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-04T09:00:00+00:00'
    end: '2025-02-04T09:30:00+00:00'
    consumption_m3: 0.5
    consumption_kwh: 5.497
  • start: '2025-02-04T09:30:00+00:00'
    end: '2025-02-04T10:00:00+00:00'
    consumption_m3: 0.478
    consumption_kwh: 5.255
  • start: '2025-02-04T10:00:00+00:00'
    end: '2025-02-04T10:30:00+00:00'
    consumption_m3: 0.401
    consumption_kwh: 4.408
  • start: '2025-02-04T10:30:00+00:00'
    end: '2025-02-04T11:00:00+00:00'
    consumption_m3: 0.43
    consumption_kwh: 4.727
  • start: '2025-02-04T11:00:00+00:00'
    end: '2025-02-04T11:30:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-04T11:30:00+00:00'
    end: '2025-02-04T12:00:00+00:00'
    consumption_m3: 0.504
    consumption_kwh: 5.541
  • start: '2025-02-04T12:00:00+00:00'
    end: '2025-02-04T12:30:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-04T12:30:00+00:00'
    end: '2025-02-04T13:00:00+00:00'
    consumption_m3: 0.149
    consumption_kwh: 1.638
  • start: '2025-02-04T13:00:00+00:00'
    end: '2025-02-04T13:30:00+00:00'
    consumption_m3: 0.257
    consumption_kwh: 2.825
  • start: '2025-02-04T13:30:00+00:00'
    end: '2025-02-04T14:00:00+00:00'
    consumption_m3: 0.04
    consumption_kwh: 0.44
  • start: '2025-02-04T15:00:00+00:00'
    end: '2025-02-04T15:30:00+00:00'
    consumption_m3: 0.419
    consumption_kwh: 4.606
  • start: '2025-02-04T15:30:00+00:00'
    end: '2025-02-04T16:00:00+00:00'
    consumption_m3: 0.04
    consumption_kwh: 0.44
  • start: '2025-02-04T16:00:00+00:00'
    end: '2025-02-04T16:30:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-04T16:30:00+00:00'
    end: '2025-02-04T17:00:00+00:00'
    consumption_m3: 0.46
    consumption_kwh: 5.057
  • start: '2025-02-04T17:00:00+00:00'
    end: '2025-02-04T17:30:00+00:00'
    consumption_m3: 0.304
    consumption_kwh: 3.342
  • start: '2025-02-04T17:30:00+00:00'
    end: '2025-02-04T18:00:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-04T18:00:00+00:00'
    end: '2025-02-04T18:30:00+00:00'
    consumption_m3: 0.355
    consumption_kwh: 3.903
  • start: '2025-02-04T18:30:00+00:00'
    end: '2025-02-04T19:00:00+00:00'
    consumption_m3: 0.193
    consumption_kwh: 2.122
  • start: '2025-02-04T19:00:00+00:00'
    end: '2025-02-04T19:30:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-04T19:30:00+00:00'
    end: '2025-02-04T20:00:00+00:00'
    consumption_m3: 0.451
    consumption_kwh: 4.958
  • start: '2025-02-04T20:00:00+00:00'
    end: '2025-02-04T20:30:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-04T20:30:00+00:00'
    end: '2025-02-04T21:00:00+00:00'
    consumption_m3: 0.08
    consumption_kwh: 0.879
  • start: '2025-02-04T21:00:00+00:00'
    end: '2025-02-04T21:30:00+00:00'
    consumption_m3: 0.326
    consumption_kwh: 3.584
  • start: '2025-02-04T21:30:00+00:00'
    end: '2025-02-04T22:00:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-04T22:00:00+00:00'
    end: '2025-02-04T22:30:00+00:00'
    consumption_m3: 0.455
    consumption_kwh: 5.002
  • start: '2025-02-04T22:30:00+00:00'
    end: '2025-02-04T23:00:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-04T23:00:00+00:00'
    end: '2025-02-04T23:30:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
  • start: '2025-02-04T23:30:00+00:00'
    end: '2025-02-05T00:00:00+00:00'
    consumption_m3: 0
    consumption_kwh: 0
    Calorific value
    38.7

Confirmation

  • I confirm that I cannot find my solution within the documentation
  • I confirm that I cannot find my solution within the FAQ
@HarryFlatter HarryFlatter added the bug Something isn't working label Feb 9, 2025
@BottlecapDave
Copy link
Owner

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.

@HarryFlatter
Copy link
Author

HarryFlatter commented Feb 9, 2025

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?

@HarryFlatter
Copy link
Author

HarryFlatter commented Feb 9, 2025

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'.
I then received updates on the 6th, 7th, and 8th which were all also estimated and was identical to the reading on the 5th.
Then today (9th) I received an update figure which although different, was also estimated. This is born out, I think, by the fact that none of the figures that I have received in HA correspond to the daily figures shown in the OE app.
Something definitely a bit weird here.

@BottlecapDave
Copy link
Owner

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.

@HarryFlatter
Copy link
Author

Hi Dave,

Still no errors in the log that log pertinent. Only this:

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:1288
First occurred: February 9, 2025 at 7:26:54 AM (4 occurrences)
Last logged: 4:48:06 AM

Update of sensor.octopus_energy_electricity_19e5165447_1900092416442_export_previous_accumulative_consumption is taking over 10 seconds
Update of sensor.octopus_energy_electricity_19e5165447_1900049248896_previous_accumulative_consumption is taking over 10 seconds
Update of switch.thermostat_heat_on_demand is taking over 10 seconds
Update of binary_sensor.hive_hub_status 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?

@HarryFlatter
Copy link
Author

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

@BottlecapDave
Copy link
Owner

Your logs state the following

2025-02-09 20:56:39.206 DEBUG (MainThread) [custom_components.octopus_energy.coordinators.previous_consumption_and_rates] Latest day: 2025-02-09 00:00:00+00:00

which suggests you should have information available for 8th February, accept the following logs is

2025-02-09 18:26:38.391 DEBUG (MainThread) [custom_components.octopus_energy.gas] Skipping gas consumption and cost calculation as last reset has not changed

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.

@HarryFlatter
Copy link
Author

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?

@BottlecapDave
Copy link
Owner

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.

@HarryFlatter
Copy link
Author

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.

@BottlecapDave
Copy link
Owner

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.

@HarryFlatter
Copy link
Author

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?

@BottlecapDave
Copy link
Owner

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.

@BottlecapDave
Copy link
Owner

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 Latest day: .

@HarryFlatter
Copy link
Author

No update showing in HACS. Should I just delete the int and re-download?

@HarryFlatter
Copy link
Author

Hi Dave,,

Here you go :-)

home-assistant_octopus_energy_2025-02-11T20-39-26.005Z.log

@jevburchell
Copy link

jevburchell commented Feb 12, 2025

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
Core v2025.2.2
Supervisor v2025.02.0
Operating System v14.2
Odroid N2+

Image

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2025.2.2",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.13.1",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/London",
    "os_name": "Linux",
    "os_version": "6.6.73-haos",
    "supervisor": "2025.02.0",
    "host_os": "Home Assistant OS 14.2",
    "docker_version": "27.2.0",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "ui_lovelace_minimalist": {
      "documentation": "https://ui-lovelace-minimalist.github.io/UI/",
      "version": "v1.3.16",
      "requirements": [
        "aiofiles>=0.8.0",
        "aiogithubapi>=22.2.4"
      ]
    },
    "solax_modbus": {
      "documentation": "https://homeassistant-solax-modbus.readthedocs.io/",
      "version": "2025.01.9",
      "requirements": [
        "pymodbus==3.8.3"
      ]
    },
    "tapo": {
      "documentation": "https://github.com/petretiandrea/home-assistant-tapo-p100",
      "version": "3.1.2",
      "requirements": [
        "plugp100==5.1.3"
      ]
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/use/",
      "version": "2.0.5",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "solcast_solar": {
      "documentation": "https://github.com/BJReplay/ha-solcast-solar",
      "version": "v4.3.0",
      "requirements": [
        "aiohttp>=3.8.5",
        "aiofiles>=23.2.0",
        "datetime>=4.3"
      ]
    },
    "ohme": {
      "documentation": "https://github.com/dan-r/HomeAssistant-Ohme",
      "version": "1.1.0",
      "requirements": []
    },
    "browser_mod": {
      "documentation": "https://github.com/thomasloven/hass-browser_mod/blob/master/README.md",
      "version": "2.3.3",
      "requirements": []
    },
    "metar": {
      "documentation": "https://en.wikipedia.org/wiki/METAR",
      "version": "2021.07.1",
      "requirements": [
        "metar"
      ]
    },
    "octopus_energy": {
      "documentation": "https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy",
      "version": "14.0.0",
      "requirements": [
        "pydantic"
      ]
    }
  },
  "integration_manifest": {
    "domain": "octopus_energy",
    "name": "Octopus Energy",
    "codeowners": [
      "bottlecapdave"
    ],
    "config_flow": true,
    "dependencies": [
      "repairs",
      "recorder"
    ],
    "documentation": "https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy",
    "homekit": {},
    "iot_class": "cloud_polling",
    "issue_tracker": "https://github.com/BottlecapDave/HomeAssistant-OctopusEnergy/issues",
    "requirements": [
      "pydantic"
    ],
    "ssdp": [],
    "version": "14.0.0",
    "zeroconf": [],
    "is_built_in": false,
    "overwrites_built_in": false
  },
  "setup_times": {
    "null": {
      "setup": 0.0010777481365948915
    },
    "2dd6341cdd74791a590ff65d9ce350e4": {
      "wait_import_platforms": -2.76370298396796,
      "wait_base_component": -0.0051043108105659485,
      "config_entry_setup": 6.09997020708397
    }
  },
  "data": {
    "account": {
      "id": "**REDACTED**",
      "octoplus_enrolled": true,
      "heat_pump_ids": [],
      "electricity_meter_points": [
        {
          "mpan": 2,
          "meters": [
            {
              "active_from": {
                "__type": "<class 'datetime.date'>",
                "isoformat": "2022-03-25"
              },
              "active_to": null,
              "serial_number": 1,
              "is_export": true,
              "is_smart_meter": true,
              "device_id": null,
              "manufacturer": "118F - Aclara",
              "model": "00000207",
              "firmware": "00070812",
              "latest_consumption": "2025-02-12T00:00:00+00:00"
            }
          ],
          "agreements": [
            {
              "start": "2022-12-07T00:00:00+00:00",
              "end": "2023-05-14T23:00:00+00:00",
              "tariff_code": "E-1R-OUTGOING-FIX-12M-19-05-13-N",
              "product_code": "OUTGOING-FIX-12M-19-05-13"
            },
            {
              "start": "2023-05-14T23:00:00+00:00",
              "end": "2023-11-01T00:00:00+00:00",
              "tariff_code": "E-1R-FLUX-EXPORT-23-02-14-N",
              "product_code": "FLUX-EXPORT-23-02-14"
            },
            {
              "start": "2023-11-01T00:00:00+00:00",
              "end": "2024-03-22T00:00:00+00:00",
              "tariff_code": "E-1R-OUTGOING-LITE-FIX-12M-23-09-12-N",
              "product_code": "OUTGOING-LITE-FIX-12M-23-09-12"
            },
            {
              "start": "2024-03-22T00:00:00+00:00",
              "end": "2024-09-10T23:00:00+00:00",
              "tariff_code": "E-1R-FLUX-EXPORT-23-02-14-N",
              "product_code": "FLUX-EXPORT-23-02-14"
            },
            {
              "start": "2024-09-10T23:00:00+00:00",
              "end": "2025-09-10T23:00:00+00:00",
              "tariff_code": "E-1R-OUTGOING-FIX-12M-19-05-13-N",
              "product_code": "OUTGOING-FIX-12M-19-05-13"
            }
          ]
        },
        {
          "mpan": 4,
          "meters": [
            {
              "active_from": {
                "__type": "<class 'datetime.date'>",
                "isoformat": "2022-03-25"
              },
              "active_to": null,
              "serial_number": 3,
              "is_export": false,
              "is_smart_meter": true,
              "device_id": "**REDACTED**",
              "manufacturer": "118F - Aclara",
              "model": "00000207",
              "firmware": "00070812",
              "latest_consumption": "2025-02-12T00:00:00+00:00",
              "device": {
                "total_consumption": 6995.0133,
                "consumption": 0.0013,
                "demand": 0.0,
                "start": "2025-02-12T10:00:00+00:00",
                "end": "2025-02-12T10:30:00+00:00"
              }
            }
          ],
          "agreements": [
            {
              "start": "2022-11-10T00:00:00+00:00",
              "end": "2023-02-19T00:00:00+00:00",
              "tariff_code": "E-1R-OCC-VAR-21-10-01-N",
              "product_code": "OCC-VAR-21-10-01"
            },
            {
              "start": "2023-02-19T00:00:00+00:00",
              "end": "2023-05-14T23:00:00+00:00",
              "tariff_code": "E-2R-VAR-22-11-01-N",
              "product_code": "VAR-22-11-01"
            },
            {
              "start": "2023-05-14T23:00:00+00:00",
              "end": "2023-11-01T00:00:00+00:00",
              "tariff_code": "E-1R-FLUX-IMPORT-23-02-14-N",
              "product_code": "FLUX-IMPORT-23-02-14"
            },
            {
              "start": "2023-11-01T00:00:00+00:00",
              "end": "2024-03-22T00:00:00+00:00",
              "tariff_code": "E-1R-GO-VAR-22-10-14-N",
              "product_code": "GO-VAR-22-10-14"
            },
            {
              "start": "2024-03-22T00:00:00+00:00",
              "end": "2024-08-29T23:00:00+00:00",
              "tariff_code": "E-1R-FLUX-IMPORT-23-02-14-N",
              "product_code": "FLUX-IMPORT-23-02-14"
            },
            {
              "start": "2024-08-29T23:00:00+00:00",
              "end": null,
              "tariff_code": "E-1R-INTELLI-VAR-22-10-14-N",
              "product_code": "INTELLI-VAR-22-10-14"
            }
          ]
        }
      ],
      "gas_meter_points": []
    },
    "entities": {
      "octopus_energy_import_flux": {
        "last_updated": "2025-02-11T21:58:40.587882+00:00",
        "last_changed": "2025-02-11T21:58:40.587882+00:00"
      },
      "octopus_energy_import_peak": {
        "last_updated": "2025-02-11T21:58:40.588046+00:00",
        "last_changed": "2025-02-11T21:58:40.588046+00:00"
      },
      "octopus_energy_import_offpeak": {
        "last_updated": "2025-02-11T21:58:40.588207+00:00",
        "last_changed": "2025-02-11T21:58:40.588207+00:00"
      },
      "octopus_energy_export_peak": {
        "last_updated": "2025-02-11T21:58:40.588590+00:00",
        "last_changed": "2025-02-11T21:58:40.588590+00:00"
      },
      "octopus_energy_export_offpeak": {
        "last_updated": "2025-02-11T21:58:40.588752+00:00",
        "last_changed": "2025-02-11T21:58:40.588752+00:00"
      },
      "octopus_energy_import_standing_charge": {
        "last_updated": "2025-02-11T21:58:40.589016+00:00",
        "last_changed": "2025-02-11T21:58:40.589016+00:00"
      },
      "octopus_energy_gas_import": {
        "last_updated": "2025-02-11T21:58:40.589224+00:00",
        "last_changed": "2025-02-11T21:58:40.589224+00:00"
      },
      "octopus_energy_gas_standing_charge": {
        "last_updated": "2025-02-11T21:58:40.589405+00:00",
        "last_changed": "2025-02-11T21:58:40.589405+00:00"
      },
      "octopus_energy_export": {
        "last_updated": "2025-02-11T21:58:40.588414+00:00",
        "last_changed": "2025-02-11T21:58:40.588414+00:00"
      },
      "octopus_energy_a_wheel_of_fortune_spins_electricity": {
        "last_updated": "2025-02-12T08:05:12.627602+00:00",
        "last_changed": "2025-02-12T08:05:12.627602+00:00"
      },
      "octopus_energy_a_wheel_of_fortune_spins_gas": {
        "last_updated": "2025-02-12T08:05:12.627823+00:00",
        "last_changed": "2025-02-12T08:05:12.627823+00:00"
      },
      "octopus_energy_a_octoplus_points": {
        "last_updated": "2025-02-12T08:04:42.608590+00:00",
        "last_changed": "2025-02-12T08:04:42.608590+00:00"
      },
      "octopus_energy_electricity_3_2_export_current_rate": {
        "last_updated": "2025-02-12T08:04:12.404639+00:00",
        "last_changed": "2025-02-12T08:04:12.404639+00:00"
      },
      "octopus_energy_electricity_3_2_export_previous_rate": {
        "last_updated": "2025-02-12T08:04:12.405416+00:00",
        "last_changed": "2025-02-12T08:04:12.405416+00:00"
      },
      "octopus_energy_electricity_3_2_export_next_rate": {
        "last_updated": "2025-02-12T08:04:12.405993+00:00",
        "last_changed": "2025-02-12T08:04:12.405993+00:00"
      },
      "octopus_energy_electricity_3_2_export_current_standing_charge": {
        "last_updated": "2025-02-12T08:04:12.406602+00:00",
        "last_changed": "2025-02-12T08:04:12.406602+00:00"
      },
      "octopus_energy_electricity_3_2_export_previous_accumulative_consumption": {
        "last_updated": "2025-02-12T08:04:44.468895+00:00",
        "last_changed": "2025-02-12T08:04:12.414736+00:00"
      },
      "octopus_energy_electricity_3_2_export_previous_accumulative_consumption_peak": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_2_export_previous_accumulative_consumption_off_peak": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_2_export_previous_accumulative_cost": {
        "last_updated": "2025-02-12T08:05:12.447594+00:00",
        "last_changed": "2025-02-12T08:04:12.416589+00:00"
      },
      "octopus_energy_electricity_3_2_export_previous_accumulative_cost_peak": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_2_export_previous_accumulative_cost_off_peak": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_2_export_previous_accumulative_cost_override": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_gas_e6f20293902200_7713287209_current_rate": {
        "last_updated": "2025-02-11T21:59:00.769831+00:00",
        "last_changed": "2025-02-11T21:59:00.769831+00:00"
      },
      "octopus_energy_gas_e6f20293902200_7713287209_previous_rate": {
        "last_updated": "2025-02-11T21:59:00.769878+00:00",
        "last_changed": "2025-02-11T21:59:00.769878+00:00"
      },
      "octopus_energy_gas_e6f20293902200_7713287209_next_rate": {
        "last_updated": "2025-02-11T21:59:00.769925+00:00",
        "last_changed": "2025-02-11T21:59:00.769925+00:00"
      },
      "octopus_energy_gas_e6f20293902200_7713287209_current_standing_charge": {
        "last_updated": "2025-02-11T21:59:00.769971+00:00",
        "last_changed": "2025-02-11T21:59:00.769971+00:00"
      },
      "octopus_energy_gas_e6f20293902200_7713287209_previous_accumulative_consumption_m3": {
        "last_updated": "2025-02-11T21:59:00.770023+00:00",
        "last_changed": "2025-02-11T21:59:00.770023+00:00"
      },
      "octopus_energy_gas_e6f20293902200_7713287209_previous_accumulative_consumption_kwh": {
        "last_updated": "2025-02-11T21:59:00.770073+00:00",
        "last_changed": "2025-02-11T21:59:00.770073+00:00"
      },
      "octopus_energy_gas_e6f20293902200_7713287209_previous_accumulative_cost": {
        "last_updated": "2025-02-11T21:59:00.770121+00:00",
        "last_changed": "2025-02-11T21:59:00.770121+00:00"
      },
      "octopus_energy_gas_e6f20293902200_7713287209_previous_accumulative_cost_override": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_gas_e6f20293902200_7713287209_current_consumption": {
        "last_updated": "2025-02-11T21:59:00.770167+00:00",
        "last_changed": "2025-02-11T21:59:00.770167+00:00"
      },
      "octopus_energy_gas_e6f20293902200_7713287209_current_accumulative_consumption_kwh": {
        "last_updated": "2025-02-11T21:59:00.770214+00:00",
        "last_changed": "2025-02-11T21:59:00.770214+00:00"
      },
      "octopus_energy_gas_e6f20293902200_7713287209_current_accumulative_consumption_m3": {
        "last_updated": "2025-02-11T21:59:00.770254+00:00",
        "last_changed": "2025-02-11T21:59:00.770254+00:00"
      },
      "octopus_energy_gas_e6f20293902200_7713287209_current_accumulative_cost": {
        "last_updated": "2025-02-11T21:59:00.770322+00:00",
        "last_changed": "2025-02-11T21:59:00.770322+00:00"
      },
      "octopus_energy_a_octoplus_saving_sessions": {
        "last_updated": "2025-02-12T08:04:12.366435+00:00",
        "last_changed": "2025-02-12T08:04:12.366435+00:00"
      },
      "octopus_energy_electricity_3_2_export_off_peak": {
        "last_updated": "2025-02-12T08:04:12.367556+00:00",
        "last_changed": "2025-02-12T08:04:12.367556+00:00"
      },
      "octopus_energy_electricity_3_2_export_previous_accumulative_cost_override_tariff": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_gas_e6f20293902200_7713287209_previous_accumulative_cost_override_tariff": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_a_octoplus_saving_session_events": {
        "last_updated": "2025-02-12T09:52:11.986876+00:00",
        "last_changed": "2025-02-12T09:52:11.986876+00:00"
      },
      "octopus_energy_electricity_3_2_export_previous_day_rates": {
        "last_updated": "2025-02-12T09:56:11.447657+00:00",
        "last_changed": "2025-02-12T09:56:11.447657+00:00"
      },
      "octopus_energy_electricity_3_2_export_current_day_rates": {
        "last_updated": "2025-02-12T09:56:11.448026+00:00",
        "last_changed": "2025-02-12T09:56:11.448026+00:00"
      },
      "octopus_energy_electricity_3_2_export_next_day_rates": {
        "last_updated": "2025-02-12T09:56:11.448307+00:00",
        "last_changed": "2025-02-12T09:56:11.448307+00:00"
      },
      "octopus_energy_electricity_3_2_export_previous_consumption_rates": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_2_export_previous_consumption_override_rates": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_gas_e6f20293902200_7713287209_previous_day_rates": {
        "last_updated": "2025-02-11T21:59:00.770374+00:00",
        "last_changed": "2025-02-11T21:59:00.770374+00:00"
      },
      "octopus_energy_gas_e6f20293902200_7713287209_current_day_rates": {
        "last_updated": "2025-02-11T21:59:00.770473+00:00",
        "last_changed": "2025-02-11T21:59:00.770473+00:00"
      },
      "octopus_energy_gas_e6f20293902200_7713287209_next_day_rates": {
        "last_updated": "2025-02-11T21:59:00.770532+00:00",
        "last_changed": "2025-02-11T21:59:00.770532+00:00"
      },
      "octopus_energy_gas_e6f20293902200_7713287209_previous_consumption_rates": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_gas_e6f20293902200_7713287209_previous_consumption_override_rates": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_current_rate": {
        "last_updated": "2025-02-12T08:04:12.417779+00:00",
        "last_changed": "2025-02-12T08:04:12.417779+00:00"
      },
      "octopus_energy_electricity_3_4_previous_rate": {
        "last_updated": "2025-02-12T08:04:12.418391+00:00",
        "last_changed": "2025-02-12T08:04:12.418391+00:00"
      },
      "octopus_energy_electricity_3_4_next_rate": {
        "last_updated": "2025-02-12T08:04:12.418959+00:00",
        "last_changed": "2025-02-12T08:04:12.418959+00:00"
      },
      "octopus_energy_electricity_3_4_current_standing_charge": {
        "last_updated": "2025-02-12T08:04:12.419564+00:00",
        "last_changed": "2025-02-12T08:04:12.419564+00:00"
      },
      "octopus_energy_electricity_3_4_previous_accumulative_consumption": {
        "last_updated": "2025-02-12T08:05:13.538234+00:00",
        "last_changed": "2025-02-12T08:04:12.423005+00:00"
      },
      "octopus_energy_electricity_3_4_previous_accumulative_consumption_peak": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_previous_accumulative_consumption_off_peak": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_previous_accumulative_cost": {
        "last_updated": "2025-02-12T08:05:42.623297+00:00",
        "last_changed": "2025-02-12T08:04:12.424777+00:00"
      },
      "octopus_energy_electricity_3_4_previous_accumulative_cost_peak": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_previous_accumulative_cost_off_peak": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_previous_accumulative_cost_override": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_current_consumption": {
        "last_updated": "2025-02-12T10:04:19.992934+00:00",
        "last_changed": "2025-02-12T10:04:19.992934+00:00"
      },
      "octopus_energy_electricity_3_4_current_accumulative_consumption": {
        "last_updated": "2025-02-12T10:04:19.993899+00:00",
        "last_changed": "2025-02-12T10:04:19.993899+00:00"
      },
      "octopus_energy_electricity_3_4_current_accumulative_consumption_peak": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_current_accumulative_consumption_off_peak": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_current_accumulative_cost": {
        "last_updated": "2025-02-12T10:04:19.994801+00:00",
        "last_changed": "2025-02-12T08:30:14.988499+00:00"
      },
      "octopus_energy_electricity_3_4_current_accumulative_cost_peak": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_current_accumulative_cost_off_peak": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_current_demand": {
        "last_updated": "2025-02-12T10:04:19.995152+00:00",
        "last_changed": "2025-02-12T10:04:19.995152+00:00"
      },
      "octopus_energy_electricity_3_4_off_peak": {
        "last_updated": "2025-02-12T08:04:12.368059+00:00",
        "last_changed": "2025-02-12T08:04:12.368059+00:00"
      },
      "octopus_energy_electricity_3_4_previous_accumulative_cost_override_tariff": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_previous_day_rates": {
        "last_updated": "2025-02-12T09:53:11.818923+00:00",
        "last_changed": "2025-02-12T09:53:11.818923+00:00"
      },
      "octopus_energy_electricity_3_4_current_day_rates": {
        "last_updated": "2025-02-12T09:53:11.819653+00:00",
        "last_changed": "2025-02-12T09:53:11.819653+00:00"
      },
      "octopus_energy_electricity_3_4_next_day_rates": {
        "last_updated": "2025-02-12T09:53:11.821905+00:00",
        "last_changed": "2025-02-12T09:53:11.821905+00:00"
      },
      "octopus_energy_electricity_3_4_previous_consumption_rates": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_previous_consumption_override_rates": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_a_greenness_forecast_highlighted": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_a_greenness_forecast_current_index": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_a_greenness_forecast_next_index": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_2_export_previous_accumulative_consumption_standard": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_2_export_previous_accumulative_cost_standard": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_previous_accumulative_consumption_standard": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_previous_accumulative_cost_standard": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_current_total_consumption": {
        "last_updated": "2025-02-12T10:04:19.995368+00:00",
        "last_changed": "2025-02-12T10:04:19.995368+00:00"
      },
      "octopus_energy_electricity_3_4_current_accumulative_consumption_standard": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_current_accumulative_cost_standard": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_gas_e6f20293902200_7713287209_current_total_consumption_kwh": {
        "last_updated": "2025-02-11T21:59:00.770697+00:00",
        "last_changed": "2025-02-11T21:59:00.770697+00:00"
      },
      "octopus_energy_gas_e6f20293902200_7713287209_current_total_consumption_m3": {
        "last_updated": "2025-02-11T21:59:00.770741+00:00",
        "last_changed": "2025-02-11T21:59:00.770741+00:00"
      },
      "octopus_energy_a_intelligent_dispatching": {
        "last_updated": "2025-02-12T08:06:11.820508+00:00",
        "last_changed": "2025-02-12T08:04:12.368823+00:00"
      },
      "octopus_energy_a_account_data_last_retrieved": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_a_greenness_forecast_data_last_retrieved": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_a_saving_sessions_data_last_retrieved": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_a_wheel_of_fortune_data_last_retrieved": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_a_intelligent_dispatches_data_last_retrieved": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_a_intelligent_settings_data_last_retrieved": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_2_rates_data_last_retrieved": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_2_standing_charge_data_last_retrieved": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_2_export_octoplus_saving_session_baseline": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_2_previous_consumption_rates_data_last_retrieved": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_rates_data_last_retrieved": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_standing_charge_data_last_retrieved": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_octoplus_saving_session_baseline": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_previous_consumption_rates_data_last_retrieved": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_current_interval_accumulative_consumption": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_current_consumption_data_last_retrieved": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_gas_e6f20293902200_7713287209_rates_data_last_retrieved": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_gas_e6f20293902200_7713287209_standing_charge_data_last_retrieved": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_gas_e6f20293902200_7713287209_previous_consumption_rates_data_last_retrieved": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_gas_e6f20293902200_7713287209_current_consumption_data_last_retrieved": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_a_octoplus_free_electricity_session": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_a_octoplus_free_electricity_session_events": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_a_free_electricity_sessions_data_last_retrieved": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_2_export_octoplus_free_electricity_session_baseline": {
        "last_updated": null,
        "last_changed": null
      },
      "octopus_energy_electricity_3_4_octoplus_free_electricity_session_baseline": {
        "last_updated": null,
        "last_changed": null
      }
    },
    "intelligent_device": {
      "id": "**Redacted**",
      "provider": "OHME",
      "make": "Ohme",
      "model": "Ohme ePod",
      "vehicleBatterySizeInKwh": null,
      "chargePointPowerInKw": 7.0,
      "is_charger": true
    },
    "intelligent_settings": {
      "smart_charge": true,
      "charge_limit_weekday": 54,
      "charge_limit_weekend": 54,
      "ready_time_weekday": {
        "__type": "<class 'datetime.time'>",
        "isoformat": "14:42:00"
      },
      "ready_time_weekend": {
        "__type": "<class 'datetime.time'>",
        "isoformat": "14:42:00"
      }
    },
    "heat_pumps": {}
  }
}

From my logs:

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:1288
First occurred: 03:30:17 (3 occurrences)
Last logged: 06:00:17

Update of sensor.octopus_energy_electricity_21m0389612_2700008745394_export_previous_accumulative_consumption is taking over 10 seconds

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
Jev

@BottlecapDave
Copy link
Owner

@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.

@jevburchell
Copy link

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
Jev

@HarryFlatter
Copy link
Author

Hi Dave,

Did you spot anything from the logs I sent?

Cheers

Steve

@BottlecapDave
Copy link
Owner

@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.

@HarryFlatter
Copy link
Author

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?

@jevburchell
Copy link

jevburchell commented Feb 14, 2025

@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, 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,
Jev

@BottlecapDave
Copy link
Owner

@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)

@HarryFlatter
Copy link
Author

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.

Copy link
Contributor

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.

@github-actions github-actions bot added the stale The issue has not had any activity for a while label Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale The issue has not had any activity for a while
Projects
None yet
Development

No branches or pull requests

3 participants