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

Current rate for electricity not working #897

Open blair287 opened 3 weeks ago

blair287 commented 3 weeks ago

Describe the bug

Current rate for electricity is just unknown won't populate with tariff info stopped working a few days ago.

Reproduction steps

Nothing to reproduce just not working.

Expected behaviour

Used to work and switch between day and night costs

Tariff Code

Says unkown

Integration Version

11.0.2

Home Assistant Version

2024.5.5

Fresh Install?

Fresh install

Home Assistant Logs

Can't see any errors in logs.

Confirmation

BottlecapDave commented 3 weeks ago

Hello and sorry that you're having this issue. What tariff are you on? Do you have any errors or warnings related to the integration in your HA logs? What is the value of the data_last_retreived attribute on the sensor and what is the value of the last_evaluated attribute?

blair287 commented 3 weeks ago

All show unknown since I uninstalled and tried reinstalling it.

I'm on intelligent octopus go

BottlecapDave commented 3 weeks ago

Could you please follow the faq to get an hour's worth of debug logs and post them here (after you've removed any pii) and also please post the diagnostics as per the faq

wawyed commented 2 weeks ago

Hi, I'm having the same issue. It also started happening from the 3rd of June

image

I can try get the debug logs and post them.

Some more info:

image

wawyed commented 2 weeks ago

Okay it suddenly started working again. I have attached the log in case it helps anyway.

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2024.6.2",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.12.2",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/London",
    "os_name": "Linux",
    "os_version": "6.6.29-haos",
    "supervisor": "2024.06.0",
    "host_os": "Home Assistant OS 12.3",
    "docker_version": "25.0.5",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "climate_template": {
      "documentation": "https://github.com/jcwillox/hass-template-climate",
      "version": "0.6.2",
      "requirements": []
    },
    "octopus_energy": {
      "documentation": "https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy",
      "version": "11.1.0",
      "requirements": []
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/configuration/start",
      "version": "1.34.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "solcast_solar": {
      "documentation": "https://github.com/oziee/ha-solcast-solar",
      "version": "v4.0.22",
      "requirements": [
        "aiohttp>=3.8.5",
        "datetime>=4.3",
        "isodate>=0.6.1"
      ]
    },
    "hildebrand_glow_ihd": {
      "documentation": "https://github.com/megakid/ha_hildebrand_glow_ihd_mqtt",
      "version": "1.1.0",
      "requirements": []
    },
    "solis": {
      "documentation": "https://github.com/hultenvp/solis-sensor/",
      "version": "3.5.2",
      "requirements": []
    },
    "solis_modbus": {
      "documentation": "https://solis-modbus.readthedocs.io",
      "version": "1.5.1",
      "requirements": [
        "pymodbus>=3.6.8"
      ]
    },
    "localtuya": {
      "documentation": "https://github.com/rospogrigio/localtuya/",
      "version": "5.2.1",
      "requirements": []
    },
    "solax_modbus": {
      "documentation": "https://homeassistant-solax-modbus.readthedocs.io/",
      "version": "2024.05.7",
      "requirements": [
        "pymodbus>=3.6.8"
      ]
    }
  },
  "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",
    "ssdp": [],
    "version": "11.1.0",
    "zeroconf": [],
    "is_built_in": false
  },
  "setup_times": {
    "null": {
      "setup": 0.0018143299967050552
    },
    "85ba9829b52ef527dd2d502b82896e02": {
      "wait_import_platforms": -2.049276917707175,
      "wait_base_component": -0.0012653060257434845,
      "config_entry_setup": 3.1087127598002553
    }
  },
  "data": {
    "id": "A-6B65AD84",
    "octoplus_enrolled": true,
    "electricity_meter_points": [
      {
        "mpan": "**REDACTED**",
        "meters": [
          {
            "serial_number": "**REDACTED**",
            "is_export": true,
            "is_smart_meter": true,
            "device_id": null,
            "manufacturer": "1063 - Landis and Gyr",
            "model": "00050202",
            "firmware": "38040602"
          }
        ],
        "agreements": [
          {
            "start": "2023-05-10T23:00:00+00:00",
            "end": null,
            "tariff_code": "E-1R-FLUX-EXPORT-23-02-14-B",
            "product_code": "FLUX-EXPORT-23-02-14"
          }
        ]
      },
      {
        "mpan": "**REDACTED**",
        "meters": [
          {
            "serial_number": "**REDACTED**",
            "is_export": false,
            "is_smart_meter": true,
            "device_id": "**REDACTED**",
            "manufacturer": "1063 - Landis and Gyr",
            "model": "00050202",
            "firmware": "38040602"
          }
        ],
        "agreements": [
          {
            "start": "2023-05-03T23:00:00+00:00",
            "end": "2023-05-04T23:00:00+00:00",
            "tariff_code": "E-1R-VAR-22-11-01-B",
            "product_code": "VAR-22-11-01"
          },
          {
            "start": "2023-05-04T23:00:00+00:00",
            "end": null,
            "tariff_code": "E-1R-FLUX-IMPORT-23-02-14-B",
            "product_code": "FLUX-IMPORT-23-02-14"
          }
        ]
      }
    ],
    "gas_meter_points": [
      {
        "mprn": "**REDACTED**",
        "meters": [],
        "agreements": [
          {
            "start": "2023-05-03T23:00:00+00:00",
            "end": null,
            "tariff_code": "G-1R-VAR-22-11-01-B",
            "product_code": "VAR-22-11-01"
          }
        ]
      }
    ]
  }
}

home-assistant_octopus_energy_2024-06-12T10-02-23.692Z.log