MTrab / energidataservice

Fetches spot prices from Energi Data Service
GNU General Public License v3.0
194 stars 27 forks source link

Auto-refresh after midnight is failing (retry) #271

Closed mm98 closed 1 year ago

mm98 commented 1 year ago

Environment:

Configuration

Enable extra services

Net operator

Additional cost template

{{ 0.03 | float(0) }}

Describe the bug

Upgraded EDS to v1.2.6 yesterday and it stopped refreshing data after midnight. A manual reload of EDS this morning fixed the missing data.

NOTE: Diganostics data was generated before manual EDS reload.

Debug log

2023-02-23 00:00:45.360 ERROR (MainThread) [custom_components.energidataservice.tariffs.energidataservice] Error during API request: 400, message='Bad Request', url=URL('https://api.energidataservice.dk/dataset/DatahubPricelist?filter=%7B%22note%22:+%5B%22Nettarif+C+time%22%5D,%22gln_number%22:+%5B%225790000392261%22%5D%7D&sort=ValidFrom+desc&limit=500')
2023-02-23 00:00:45.369 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/async_retrying.py", line 129, in wrapped
    ret = yield from ret
  File "/config/custom_components/energidataservice/tariffs/energidataservice/__init__.py", line 156, in async_call_api
    resp.raise_for_status()
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('https://api.energidataservice.dk/dataset/DatahubPricelist?filter=%7B%22note%22:+%5B%22Nettarif+C+time%22%5D,%22gln_number%22:+%5B%225790000392261%22%5D%7D&sort=ValidFrom+desc&limit=500')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/config/custom_components/energidataservice/__init__.py", line 102, in new_day
    await api.async_get_tariffs()
  File "/config/custom_components/energidataservice/api.py", line 229, in async_get_tariffs
    self.tariff_data = await tariff.async_get_tariffs()
  File "/config/custom_components/energidataservice/tariffs/energidataservice/__init__.py", line 76, in async_get_tariffs
    resp = await self.async_call_api(query)
  File "/usr/local/lib/python3.10/site-packages/async_retrying.py", line 192, in wrapped
    ret = yield from ret
  File "/usr/local/lib/python3.10/site-packages/async_retrying.py", line 44, in callback
    yield from asyncio.sleep(attempt * delay, loop=loop)
TypeError: sleep() got an unexpected keyword argument 'loop'

Diganostics data from the device

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.2.5",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.7",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Copenhagen",
    "os_name": "Linux",
    "os_version": "5.15.90",
    "supervisor": "2023.01.1",
    "host_os": "Home Assistant OS 9.5",
    "docker_version": "20.10.22",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "fuelprices_dk": {
      "version": "1.6",
      "requirements": [
        "beautifulsoup4",
        "html.parser"
      ]
    },
    "connectedcars_io": {
      "version": "0.2.0",
      "requirements": []
    },
    "xiaomi_cloud_map_extractor": {
      "version": "v2.2.0",
      "requirements": [
        "pillow",
        "pybase64",
        "python-miio",
        "requests",
        "pycryptodome"
      ]
    },
    "energidataservice": {
      "version": "1.2.6",
      "requirements": [
        "async-retrying==0.2.2",
        "CurrencyConverter==0.17.5"
      ]
    },
    "hacs": {
      "version": "1.30.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "audiconnect": {
      "version": "2021.1.1",
      "requirements": [
        "beautifulsoup4"
      ]
    },
    "eforsyning": {
      "version": "2.0.2",
      "requirements": []
    }
  },
  "integration_manifest": {
    "after_dependencies": [
      "http"
    ],
    "codeowners": [
      "@MTrab"
    ],
    "config_flow": true,
    "documentation": "https://github.com/MTrab/energidataservice/blob/master/README.md",
    "domain": "energidataservice",
    "iot_class": "cloud_polling",
    "issue_tracker": "https://github.com/MTrab/energidataservice/issues",
    "name": "Energi Data Service",
    "requirements": [
      "async-retrying==0.2.2",
      "CurrencyConverter==0.17.5"
    ],
    "version": "1.2.6",
    "is_built_in": false
  },
  "data": {
    "entry": {
      "entry_id": "21b01df0ba9a401fcb6fd8e2888e6cd9",
      "version": 1,
      "domain": "energidataservice",
      "title": "Energi Data Service",
      "data": {
        "name": "Energi Data Service"
      },
      "options": {
        "email": "**REDACTED**",
        "api_key": "**REDACTED**",
        "enable_forecast": true,
        "area": "West of the great belt",
        "vat": true,
        "in_cent": false,
        "decimals": 3,
        "pricetype": "kWh",
        "cost_template": "{{ 0.03 | float(0) }}",
        "name": "Energi Data Service",
        "country": "Denmark",
        "enable_tariffs": true,
        "tariff_charge_owner": "TREFOR El-net"
      },
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "user",
      "unique_id": "**REDACTED**",
      "disabled_by": null
    },
    "today": [
      [
        1.663,
        "2023-02-22T00:00:00+01:00"
      ],
      [
        1.557,
        "2023-02-22T01:00:00+01:00"
      ],
      [
        1.527,
        "2023-02-22T02:00:00+01:00"
      ],
      [
        1.557,
        "2023-02-22T03:00:00+01:00"
      ],
      [
        1.567,
        "2023-02-22T04:00:00+01:00"
      ],
      [
        1.656,
        "2023-02-22T05:00:00+01:00"
      ],
      [
        2.176,
        "2023-02-22T06:00:00+01:00"
      ],
      [
        2.321,
        "2023-02-22T07:00:00+01:00"
      ],
      [
        2.351,
        "2023-02-22T08:00:00+01:00"
      ],
      [
        2.242,
        "2023-02-22T09:00:00+01:00"
      ],
      [
        2.13,
        "2023-02-22T10:00:00+01:00"
      ],
      [
        1.985,
        "2023-02-22T11:00:00+01:00"
      ],
      [
        1.887,
        "2023-02-22T12:00:00+01:00"
      ],
      [
        1.884,
        "2023-02-22T13:00:00+01:00"
      ],
      [
        1.975,
        "2023-02-22T14:00:00+01:00"
      ],
      [
        2.115,
        "2023-02-22T15:00:00+01:00"
      ],
      [
        2.171,
        "2023-02-22T16:00:00+01:00"
      ],
      [
        3.294,
        "2023-02-22T17:00:00+01:00"
      ],
      [
        3.387,
        "2023-02-22T18:00:00+01:00"
      ],
      [
        3.366,
        "2023-02-22T19:00:00+01:00"
      ],
      [
        3.266,
        "2023-02-22T20:00:00+01:00"
      ],
      [
        2.144,
        "2023-02-22T21:00:00+01:00"
      ],
      [
        2.058,
        "2023-02-22T22:00:00+01:00"
      ],
      [
        1.962,
        "2023-02-22T23:00:00+01:00"
      ]
    ],
    "today_calculated": true,
    "api_today": [
      [
        139.899994,
        "2023-02-22T00:00:00+01:00"
      ],
      [
        128.529999,
        "2023-02-22T01:00:00+01:00"
      ],
      [
        125.300003,
        "2023-02-22T02:00:00+01:00"
      ],
      [
        128.529999,
        "2023-02-22T03:00:00+01:00"
      ],
      [
        129.529999,
        "2023-02-22T04:00:00+01:00"
      ],
      [
        139.190002,
        "2023-02-22T05:00:00+01:00"
      ],
      [
        157.490005,
        "2023-02-22T06:00:00+01:00"
      ],
      [
        173.130005,
        "2023-02-22T07:00:00+01:00"
      ],
      [
        176.339996,
        "2023-02-22T08:00:00+01:00"
      ],
      [
        164.550003,
        "2023-02-22T09:00:00+01:00"
      ],
      [
        152.529999,
        "2023-02-22T10:00:00+01:00"
      ],
      [
        136.990005,
        "2023-02-22T11:00:00+01:00"
      ],
      [
        126.449997,
        "2023-02-22T12:00:00+01:00"
      ],
      [
        126.080002,
        "2023-02-22T13:00:00+01:00"
      ],
      [
        135.919998,
        "2023-02-22T14:00:00+01:00"
      ],
      [
        150.899994,
        "2023-02-22T15:00:00+01:00"
      ],
      [
        156.949997,
        "2023-02-22T16:00:00+01:00"
      ],
      [
        165.009995,
        "2023-02-22T17:00:00+01:00"
      ],
      [
        175.0,
        "2023-02-22T18:00:00+01:00"
      ],
      [
        172.729996,
        "2023-02-22T19:00:00+01:00"
      ],
      [
        162.059998,
        "2023-02-22T20:00:00+01:00"
      ],
      [
        154.020004,
        "2023-02-22T21:00:00+01:00"
      ],
      [
        144.839996,
        "2023-02-22T22:00:00+01:00"
      ],
      [
        134.449997,
        "2023-02-22T23:00:00+01:00"
      ]
    ],
    "tomorrow": [
      [
        1.614,
        "2023-02-23T00:00:00+01:00"
      ],
      [
        1.584,
        "2023-02-23T01:00:00+01:00"
      ],
      [
        1.562,
        "2023-02-23T02:00:00+01:00"
      ],
      [
        1.522,
        "2023-02-23T03:00:00+01:00"
      ],
      [
        1.526,
        "2023-02-23T04:00:00+01:00"
      ],
      [
        1.57,
        "2023-02-23T05:00:00+01:00"
      ],
      [
        2.143,
        "2023-02-23T06:00:00+01:00"
      ],
      [
        2.292,
        "2023-02-23T07:00:00+01:00"
      ],
      [
        2.367,
        "2023-02-23T08:00:00+01:00"
      ],
      [
        2.236,
        "2023-02-23T09:00:00+01:00"
      ],
      [
        2.012,
        "2023-02-23T10:00:00+01:00"
      ],
      [
        1.825,
        "2023-02-23T11:00:00+01:00"
      ],
      [
        1.771,
        "2023-02-23T12:00:00+01:00"
      ],
      [
        1.719,
        "2023-02-23T13:00:00+01:00"
      ],
      [
        1.735,
        "2023-02-23T14:00:00+01:00"
      ],
      [
        1.737,
        "2023-02-23T15:00:00+01:00"
      ],
      [
        1.734,
        "2023-02-23T16:00:00+01:00"
      ],
      [
        2.881,
        "2023-02-23T17:00:00+01:00"
      ],
      [
        2.906,
        "2023-02-23T18:00:00+01:00"
      ],
      [
        2.799,
        "2023-02-23T19:00:00+01:00"
      ],
      [
        2.728,
        "2023-02-23T20:00:00+01:00"
      ],
      [
        1.704,
        "2023-02-23T21:00:00+01:00"
      ],
      [
        1.646,
        "2023-02-23T22:00:00+01:00"
      ],
      [
        1.617,
        "2023-02-23T23:00:00+01:00"
      ]
    ],
    "tomorrow_calculated": true,
    "api_tomorrow": [
      [
        134.669998,
        "2023-02-23T00:00:00+01:00"
      ],
      [
        131.389999,
        "2023-02-23T01:00:00+01:00"
      ],
      [
        128.990005,
        "2023-02-23T02:00:00+01:00"
      ],
      [
        124.779999,
        "2023-02-23T03:00:00+01:00"
      ],
      [
        125.169998,
        "2023-02-23T04:00:00+01:00"
      ],
      [
        129.929993,
        "2023-02-23T05:00:00+01:00"
      ],
      [
        153.979996,
        "2023-02-23T06:00:00+01:00"
      ],
      [
        170.0,
        "2023-02-23T07:00:00+01:00"
      ],
      [
        178.059998,
        "2023-02-23T08:00:00+01:00"
      ],
      [
        163.960007,
        "2023-02-23T09:00:00+01:00"
      ],
      [
        139.899994,
        "2023-02-23T10:00:00+01:00"
      ],
      [
        119.739998,
        "2023-02-23T11:00:00+01:00"
      ],
      [
        113.940002,
        "2023-02-23T12:00:00+01:00"
      ],
      [
        108.309998,
        "2023-02-23T13:00:00+01:00"
      ],
      [
        110.019997,
        "2023-02-23T14:00:00+01:00"
      ],
      [
        110.300003,
        "2023-02-23T15:00:00+01:00"
      ],
      [
        109.989998,
        "2023-02-23T16:00:00+01:00"
      ],
      [
        120.610001,
        "2023-02-23T17:00:00+01:00"
      ],
      [
        123.339996,
        "2023-02-23T18:00:00+01:00"
      ],
      [
        111.790001,
        "2023-02-23T19:00:00+01:00"
      ],
      [
        104.199997,
        "2023-02-23T20:00:00+01:00"
      ],
      [
        106.709999,
        "2023-02-23T21:00:00+01:00"
      ],
      [
        100.489998,
        "2023-02-23T22:00:00+01:00"
      ],
      [
        97.349998,
        "2023-02-23T23:00:00+01:00"
      ]
    ],
    "predictions": [
      [
        0.623,
        "2023-02-25T00:00:00+01:00"
      ],
      [
        0.562,
        "2023-02-25T01:00:00+01:00"
      ],
      [
        0.605,
        "2023-02-25T02:00:00+01:00"
      ],
      [
        0.581,
        "2023-02-25T03:00:00+01:00"
      ],
      [
        0.545,
        "2023-02-25T04:00:00+01:00"
      ],
      [
        0.564,
        "2023-02-25T05:00:00+01:00"
      ],
      [
        0.928,
        "2023-02-25T06:00:00+01:00"
      ],
      [
        0.91,
        "2023-02-25T07:00:00+01:00"
      ],
      [
        1.029,
        "2023-02-25T08:00:00+01:00"
      ],
      [
        1.13,
        "2023-02-25T09:00:00+01:00"
      ],
      [
        1.034,
        "2023-02-25T10:00:00+01:00"
      ],
      [
        0.936,
        "2023-02-25T11:00:00+01:00"
      ],
      [
        0.829,
        "2023-02-25T12:00:00+01:00"
      ],
      [
        0.712,
        "2023-02-25T13:00:00+01:00"
      ],
      [
        0.712,
        "2023-02-25T14:00:00+01:00"
      ],
      [
        0.712,
        "2023-02-25T15:00:00+01:00"
      ],
      [
        0.712,
        "2023-02-25T16:00:00+01:00"
      ],
      [
        1.928,
        "2023-02-25T17:00:00+01:00"
      ],
      [
        2.107,
        "2023-02-25T18:00:00+01:00"
      ],
      [
        2.196,
        "2023-02-25T19:00:00+01:00"
      ],
      [
        2.215,
        "2023-02-25T20:00:00+01:00"
      ],
      [
        1.168,
        "2023-02-25T21:00:00+01:00"
      ],
      [
        1.087,
        "2023-02-25T22:00:00+01:00"
      ],
      [
        1.031,
        "2023-02-25T23:00:00+01:00"
      ],
      [
        0.662,
        "2023-02-26T00:00:00+01:00"
      ],
      [
        0.688,
        "2023-02-26T01:00:00+01:00"
      ],
      [
        0.662,
        "2023-02-26T02:00:00+01:00"
      ],
      [
        0.656,
        "2023-02-26T03:00:00+01:00"
      ],
      [
        0.637,
        "2023-02-26T04:00:00+01:00"
      ],
      [
        0.628,
        "2023-02-26T05:00:00+01:00"
      ],
      [
        0.998,
        "2023-02-26T06:00:00+01:00"
      ],
      [
        1.052,
        "2023-02-26T07:00:00+01:00"
      ],
      [
        1.114,
        "2023-02-26T08:00:00+01:00"
      ],
      [
        1.274,
        "2023-02-26T09:00:00+01:00"
      ],
      [
        1.227,
        "2023-02-26T10:00:00+01:00"
      ],
      [
        1.108,
        "2023-02-26T11:00:00+01:00"
      ],
      [
        1.042,
        "2023-02-26T12:00:00+01:00"
      ],
      [
        1.077,
        "2023-02-26T13:00:00+01:00"
      ],
      [
        0.889,
        "2023-02-26T14:00:00+01:00"
      ],
      [
        0.814,
        "2023-02-26T15:00:00+01:00"
      ],
      [
        0.894,
        "2023-02-26T16:00:00+01:00"
      ],
      [
        2.077,
        "2023-02-26T17:00:00+01:00"
      ],
      [
        2.605,
        "2023-02-26T18:00:00+01:00"
      ],
      [
        2.95,
        "2023-02-26T19:00:00+01:00"
      ],
      [
        3.057,
        "2023-02-26T20:00:00+01:00"
      ],
      [
        1.743,
        "2023-02-26T21:00:00+01:00"
      ],
      [
        1.631,
        "2023-02-26T22:00:00+01:00"
      ],
      [
        1.453,
        "2023-02-26T23:00:00+01:00"
      ],
      [
        0.86,
        "2023-02-27T00:00:00+01:00"
      ],
      [
        1.056,
        "2023-02-27T01:00:00+01:00"
      ],
      [
        0.986,
        "2023-02-27T02:00:00+01:00"
      ],
      [
        0.972,
        "2023-02-27T03:00:00+01:00"
      ],
      [
        0.979,
        "2023-02-27T04:00:00+01:00"
      ],
      [
        1.056,
        "2023-02-27T05:00:00+01:00"
      ],
      [
        1.763,
        "2023-02-27T06:00:00+01:00"
      ],
      [
        2.226,
        "2023-02-27T07:00:00+01:00"
      ],
      [
        2.543,
        "2023-02-27T08:00:00+01:00"
      ],
      [
        2.559,
        "2023-02-27T09:00:00+01:00"
      ],
      [
        2.443,
        "2023-02-27T10:00:00+01:00"
      ],
      [
        2.103,
        "2023-02-27T11:00:00+01:00"
      ],
      [
        1.986,
        "2023-02-27T12:00:00+01:00"
      ],
      [
        1.927,
        "2023-02-27T13:00:00+01:00"
      ],
      [
        1.875,
        "2023-02-27T14:00:00+01:00"
      ],
      [
        1.853,
        "2023-02-27T15:00:00+01:00"
      ],
      [
        1.859,
        "2023-02-27T16:00:00+01:00"
      ],
      [
        3.027,
        "2023-02-27T17:00:00+01:00"
      ],
      [
        3.472,
        "2023-02-27T18:00:00+01:00"
      ],
      [
        3.801,
        "2023-02-27T19:00:00+01:00"
      ],
      [
        4.093,
        "2023-02-27T20:00:00+01:00"
      ],
      [
        2.78,
        "2023-02-27T21:00:00+01:00"
      ],
      [
        2.609,
        "2023-02-27T22:00:00+01:00"
      ],
      [
        2.121,
        "2023-02-27T23:00:00+01:00"
      ],
      [
        1.676,
        "2023-02-28T00:00:00+01:00"
      ],
      [
        1.554,
        "2023-02-28T01:00:00+01:00"
      ],
      [
        1.364,
        "2023-02-28T02:00:00+01:00"
      ],
      [
        1.351,
        "2023-02-28T03:00:00+01:00"
      ],
      [
        1.397,
        "2023-02-28T04:00:00+01:00"
      ],
      [
        1.329,
        "2023-02-28T05:00:00+01:00"
      ],
      [
        2.068,
        "2023-02-28T06:00:00+01:00"
      ],
      [
        2.734,
        "2023-02-28T07:00:00+01:00"
      ],
      [
        2.663,
        "2023-02-28T08:00:00+01:00"
      ],
      [
        2.586,
        "2023-02-28T09:00:00+01:00"
      ],
      [
        2.333,
        "2023-02-28T10:00:00+01:00"
      ],
      [
        2.384,
        "2023-02-28T11:00:00+01:00"
      ],
      [
        2.404,
        "2023-02-28T12:00:00+01:00"
      ],
      [
        2.351,
        "2023-02-28T13:00:00+01:00"
      ],
      [
        2.341,
        "2023-02-28T14:00:00+01:00"
      ],
      [
        2.282,
        "2023-02-28T15:00:00+01:00"
      ],
      [
        2.31,
        "2023-02-28T16:00:00+01:00"
      ],
      [
        3.541,
        "2023-02-28T17:00:00+01:00"
      ],
      [
        3.92,
        "2023-02-28T18:00:00+01:00"
      ],
      [
        4.223,
        "2023-02-28T19:00:00+01:00"
      ],
      [
        4.323,
        "2023-02-28T20:00:00+01:00"
      ],
      [
        3.181,
        "2023-02-28T21:00:00+01:00"
      ],
      [
        2.751,
        "2023-02-28T22:00:00+01:00"
      ],
      [
        2.58,
        "2023-02-28T23:00:00+01:00"
      ],
      [
        2.083,
        "2023-03-01T00:00:00+01:00"
      ],
      [
        2.053,
        "2023-03-01T01:00:00+01:00"
      ],
      [
        1.942,
        "2023-03-01T02:00:00+01:00"
      ],
      [
        1.846,
        "2023-03-01T03:00:00+01:00"
      ],
      [
        1.882,
        "2023-03-01T04:00:00+01:00"
      ],
      [
        1.906,
        "2023-03-01T05:00:00+01:00"
      ],
      [
        2.534,
        "2023-03-01T06:00:00+01:00"
      ],
      [
        2.986,
        "2023-03-01T07:00:00+01:00"
      ],
      [
        3.321,
        "2023-03-01T08:00:00+01:00"
      ],
      [
        3.151,
        "2023-03-01T09:00:00+01:00"
      ],
      [
        2.807,
        "2023-03-01T10:00:00+01:00"
      ],
      [
        2.543,
        "2023-03-01T11:00:00+01:00"
      ],
      [
        2.481,
        "2023-03-01T12:00:00+01:00"
      ],
      [
        2.431,
        "2023-03-01T13:00:00+01:00"
      ],
      [
        2.424,
        "2023-03-01T14:00:00+01:00"
      ],
      [
        2.498,
        "2023-03-01T15:00:00+01:00"
      ],
      [
        2.511,
        "2023-03-01T16:00:00+01:00"
      ],
      [
        3.724,
        "2023-03-01T17:00:00+01:00"
      ],
      [
        3.919,
        "2023-03-01T18:00:00+01:00"
      ],
      [
        4.31,
        "2023-03-01T19:00:00+01:00"
      ],
      [
        4.715,
        "2023-03-01T20:00:00+01:00"
      ],
      [
        3.324,
        "2023-03-01T21:00:00+01:00"
      ],
      [
        2.884,
        "2023-03-01T22:00:00+01:00"
      ],
      [
        2.531,
        "2023-03-01T23:00:00+01:00"
      ],
      [
        2.182,
        "2023-03-02T00:00:00+01:00"
      ],
      [
        2.218,
        "2023-03-02T01:00:00+01:00"
      ],
      [
        2.118,
        "2023-03-02T02:00:00+01:00"
      ],
      [
        2.12,
        "2023-03-02T03:00:00+01:00"
      ],
      [
        2.026,
        "2023-03-02T04:00:00+01:00"
      ],
      [
        2.049,
        "2023-03-02T05:00:00+01:00"
      ],
      [
        2.651,
        "2023-03-02T06:00:00+01:00"
      ]
    ],
    "api_predictions": [
      [
        208.49231118070452,
        "2023-02-25T00:00:00+01:00"
      ],
      [
        159.9756355312179,
        "2023-02-25T01:00:00+01:00"
      ],
      [
        194.63355552845906,
        "2023-02-25T02:00:00+01:00"
      ],
      [
        175.33069127527017,
        "2023-02-25T03:00:00+01:00"
      ],
      [
        146.64803054493223,
        "2023-02-25T04:00:00+01:00"
      ],
      [
        161.68864803415522,
        "2023-02-25T05:00:00+01:00"
      ],
      [
        172.87506427437972,
        "2023-02-25T06:00:00+01:00"
      ],
      [
        159.16125916229203,
        "2023-02-25T07:00:00+01:00"
      ],
      [
        253.6278702086405,
        "2023-02-25T08:00:00+01:00"
      ],
      [
        334.63660932375376,
        "2023-02-25T09:00:00+01:00"
      ],
      [
        257.916814012083,
        "2023-02-25T10:00:00+01:00"
      ],
      [
        179.9954980693485,
        "2023-02-25T11:00:00+01:00"
      ],
      [
        94.28773215725073,
        "2023-02-25T12:00:00+01:00"
      ],
      [
        0.0,
        "2023-02-25T13:00:00+01:00"
      ],
      [
        0.0,
        "2023-02-25T14:00:00+01:00"
      ],
      [
        0.0,
        "2023-02-25T15:00:00+01:00"
      ],
      [
        0.0,
        "2023-02-25T16:00:00+01:00"
      ],
      [
        135.08035522760076,
        "2023-02-25T17:00:00+01:00"
      ],
      [
        277.79596885737055,
        "2023-02-25T18:00:00+01:00"
      ],
      [
        348.90352778164686,
        "2023-02-25T19:00:00+01:00"
      ],
      [
        364.0698541319224,
        "2023-02-25T20:00:00+01:00"
      ],
      [
        364.98720551371343,
        "2023-02-25T21:00:00+01:00"
      ],
      [
        300.04892990518135,
        "2023-02-25T22:00:00+01:00"
      ],
      [
        255.81940007883395,
        "2023-02-25T23:00:00+01:00"
      ],
      [
        239.9019149621547,
        "2023-02-26T00:00:00+01:00"
      ],
      [
        260.55273162839296,
        "2023-02-26T01:00:00+01:00"
      ],
      [
        239.7457350909566,
        "2023-02-26T02:00:00+01:00"
      ],
      [
        235.19587852726272,
        "2023-02-26T03:00:00+01:00"
      ],
      [
        220.1336007035295,
        "2023-02-26T04:00:00+01:00"
      ],
      [
        213.09365584980014,
        "2023-02-26T05:00:00+01:00"
      ],
      [
        228.81540856815525,
        "2023-02-26T06:00:00+01:00"
      ],
      [
        272.32003532563226,
        "2023-02-26T07:00:00+01:00"
      ],
      [
        322.0384306069858,
        "2023-02-26T08:00:00+01:00"
      ],
      [
        449.6343677334487,
        "2023-02-26T09:00:00+01:00"
      ],
      [
        412.43549802344353,
        "2023-02-26T10:00:00+01:00"
      ],
      [
        316.9812385704954,
        "2023-02-26T11:00:00+01:00"
      ],
      [
        264.21906664289384,
        "2023-02-26T12:00:00+01:00"
      ],
      [
        292.09586253506814,
        "2023-02-26T13:00:00+01:00"
      ],
      [
        142.10395537474517,
        "2023-02-26T14:00:00+01:00"
      ],
      [
        81.79569900280325,
        "2023-02-26T15:00:00+01:00"
      ],
      [
        146.26111076213726,
        "2023-02-26T16:00:00+01:00"
      ],
      [
        254.19626692341353,
        "2023-02-26T17:00:00+01:00"
      ],
      [
        676.1847517151198,
        "2023-02-26T18:00:00+01:00"
      ],
      [
        952.6209039740377,
        "2023-02-26T19:00:00+01:00"
      ],
      [
        1037.8166755059444,
        "2023-02-26T20:00:00+01:00"
      ],
      [
        825.3103877278654,
        "2023-02-26T21:00:00+01:00"
      ],
      [
        735.8392743566737,
        "2023-02-26T22:00:00+01:00"
      ],
      [
        592.8676702416872,
        "2023-02-26T23:00:00+01:00"
      ],
      [
        398.3056783350214,
        "2023-02-27T00:00:00+01:00"
      ],
      [
        554.7338650777463,
        "2023-02-27T01:00:00+01:00"
      ],
      [
        499.4272999010193,
        "2023-02-27T02:00:00+01:00"
      ],
      [
        488.09216319077495,
        "2023-02-27T03:00:00+01:00"
      ],
      [
        493.5667512768309,
        "2023-02-27T04:00:00+01:00"
      ],
      [
        555.4070215010877,
        "2023-02-27T05:00:00+01:00"
      ],
      [
        841.170523781074,
        "2023-02-27T06:00:00+01:00"
      ],
      [
        1211.5461870611693,
        "2023-02-27T07:00:00+01:00"
      ],
      [
        1464.8616679001118,
        "2023-02-27T08:00:00+01:00"
      ],
      [
        1477.6322002649522,
        "2023-02-27T09:00:00+01:00"
      ],
      [
        1385.5641836263037,
        "2023-02-27T10:00:00+01:00"
      ],
      [
        1113.131060364465,
        "2023-02-27T11:00:00+01:00"
      ],
      [
        1019.7652223506966,
        "2023-02-27T12:00:00+01:00"
      ],
      [
        972.7207610803432,
        "2023-02-27T13:00:00+01:00"
      ],
      [
        930.8749481613922,
        "2023-02-27T14:00:00+01:00"
      ],
      [
        913.3098865830818,
        "2023-02-27T15:00:00+01:00"
      ],
      [
        917.6053448467817,
        "2023-02-27T16:00:00+01:00"
      ],
      [
        1014.1739657973114,
        "2023-02-27T17:00:00+01:00"
      ],
      [
        1369.61026419814,
        "2023-02-27T18:00:00+01:00"
      ],
      [
        1632.9501011824316,
        "2023-02-27T19:00:00+01:00"
      ],
      [
        1866.6351173892483,
        "2023-02-27T20:00:00+01:00"
      ],
      [
        1654.597267310606,
        "2023-02-27T21:00:00+01:00"
      ],
      [
        1518.0243838348633,
        "2023-02-27T22:00:00+01:00"
      ],
      [
        1127.4052574600037,
        "2023-02-27T23:00:00+01:00"
      ],
      [
        1050.7111488966696,
        "2023-02-28T00:00:00+01:00"
      ],
      [
        953.8854244510394,
        "2023-02-28T01:00:00+01:00"
      ],
      [
        801.3078405829501,
        "2023-02-28T02:00:00+01:00"
      ],
      [
        791.0502583569389,
        "2023-02-28T03:00:00+01:00"
      ],
      [
        828.1647905252646,
        "2023-02-28T04:00:00+01:00"
      ],
      [
        773.5826562151426,
        "2023-02-28T05:00:00+01:00"
      ],
      [
        1084.8521316770564,
        "2023-02-28T06:00:00+01:00"
      ],
      [
        1617.783209369496,
        "2023-02-28T07:00:00+01:00"
      ],
      [
        1561.4014095966063,
        "2023-02-28T08:00:00+01:00"
      ],
      [
        1499.9006762235458,
        "2023-02-28T09:00:00+01:00"
      ],
      [
        1296.9505741925484,
        "2023-02-28T10:00:00+01:00"
      ],
      [
        1338.3112730374721,
        "2023-02-28T11:00:00+01:00"
      ],
      [
        1354.0643053564784,
        "2023-02-28T12:00:00+01:00"
      ],
      [
        1311.450223285258,
        "2023-02-28T13:00:00+01:00"
      ],
      [
        1303.4330834673929,
        "2023-02-28T14:00:00+01:00"
      ],
      [
        1256.541017834634,
        "2023-02-28T15:00:00+01:00"
      ],
      [
        1278.670204852742,
        "2023-02-28T16:00:00+01:00"
      ],
      [
        1424.9452178317724,
        "2023-02-28T17:00:00+01:00"
      ],
      [
        1728.419762099613,
        "2023-02-28T18:00:00+01:00"
      ],
      [
        1970.8121719886165,
        "2023-02-28T19:00:00+01:00"
      ],
      [
        2050.9499742544804,
        "2023-02-28T20:00:00+01:00"
      ],
      [
        1975.8194201873937,
        "2023-02-28T21:00:00+01:00"
      ],
      [
        1631.7835774262328,
        "2023-02-28T22:00:00+01:00"
      ],
      [
        1494.6055741674513,
        "2023-02-28T23:00:00+01:00"
      ],
      [
        1376.920942224626,
        "2023-03-01T00:00:00+01:00"
      ],
      [
        1352.6355046206852,
        "2023-03-01T01:00:00+01:00"
      ],
      [
        1263.8138651468742,
        "2023-03-01T02:00:00+01:00"
      ],
      [
        1187.3531972203236,
        "2023-03-01T03:00:00+01:00"
      ],
      [
        1215.877772105912,
        "2023-03-01T04:00:00+01:00"
      ],
      [
        1235.3485926794513,
        "2023-03-01T05:00:00+01:00"
      ],
      [
        1458.3205401047408,
        "2023-03-01T06:00:00+01:00"
      ],
      [
        1819.3497015479186,
        "2023-03-01T07:00:00+01:00"
      ],
      [
        2087.69144964745,
        "2023-03-01T08:00:00+01:00"
      ],
      [
        1951.778987795218,
        "2023-03-01T09:00:00+01:00"
      ],
      [
        1676.595688630179,
        "2023-03-01T10:00:00+01:00"
      ],
      [
        1465.2732491211748,
        "2023-03-01T11:00:00+01:00"
      ],
      [
        1415.7626180984807,
        "2023-03-01T12:00:00+01:00"
      ],
      [
        1375.6342044611804,
        "2023-03-01T13:00:00+01:00"
      ],
      [
        1370.2042985815362,
        "2023-03-01T14:00:00+01:00"
      ],
      [
        1429.5539995524505,
        "2023-03-01T15:00:00+01:00"
      ],
      [
        1439.2533577058277,
        "2023-03-01T16:00:00+01:00"
      ],
      [
        1571.8996317112815,
        "2023-03-01T17:00:00+01:00"
      ],
      [
        1727.4371755189256,
        "2023-03-01T18:00:00+01:00"
      ],
      [
        2040.3821644375364,
        "2023-03-01T19:00:00+01:00"
      ],
      [
        2364.617829567972,
        "2023-03-01T20:00:00+01:00"
      ],
      [
        2089.762765510397,
        "2023-03-01T21:00:00+01:00"
      ],
      [
        1738.2205784792302,
        "2023-03-01T22:00:00+01:00"
      ],
      [
        1455.8620487796204,
        "2023-03-01T23:00:00+01:00"
      ],
      [
        1455.9079816694275,
        "2023-03-02T00:00:00+01:00"
      ],
      [
        1484.4276038845305,
        "2023-03-02T01:00:00+01:00"
      ],
      [
        1404.4504147557377,
        "2023-03-02T02:00:00+01:00"
      ],
      [
        1405.9776788718996,
        "2023-03-02T03:00:00+01:00"
      ],
      [
        1330.8915736814422,
        "2023-03-02T04:00:00+01:00"
      ],
      [
        1349.3409596064355,
        "2023-03-02T05:00:00+01:00"
      ],
      [
        1551.7074779251504,
        "2023-03-02T06:00:00+01:00"
      ]
    ],
    "tariff_data": {
      "additional_tariffs": {
        "transmissions_nettarif": 0.058,
        "systemtarif": 0.054,
        "elafgift": 0.008
      },
      "tariffs": {
        "0": 0.1397,
        "1": 0.1397,
        "2": 0.1397,
        "3": 0.1397,
        "4": 0.1397,
        "5": 0.1397,
        "6": 0.4192,
        "7": 0.4192,
        "8": 0.4192,
        "9": 0.4192,
        "10": 0.4192,
        "11": 0.4192,
        "12": 0.4192,
        "13": 0.4192,
        "14": 0.4192,
        "15": 0.4192,
        "16": 0.4192,
        "17": 1.2576,
        "18": 1.2576,
        "19": 1.2576,
        "20": 1.2576,
        "21": 0.4192,
        "22": 0.4192,
        "23": 0.4192
      }
    },
    "next_update": "13:37:56",
    "data_source": "Energi Data Service",
    "home_assistant_tz": "Europe/Copenhagen",
    "home_assistant_currency": "DKK"
  }
}
MTrab commented 1 year ago

Cannot recreate this issue for now - was it a one time occurance or is it every day?

mm98 commented 1 year ago

I thought about writing an update this morning .. but then forgot about it 😁

It worked like a charm this morning - no problems at all!!