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

Sensor doesn't update on new day #429

Open
roccolord opened this issue Oct 29, 2024 · 7 comments
Open

Sensor doesn't update on new day #429

roccolord opened this issue Oct 29, 2024 · 7 comments

Comments

@roccolord
Copy link

roccolord commented Oct 29, 2024

Version of the custom_component

0.0.15

Homeassistant version

2024.10.3

Configuration

Configured through UI

Describe the bug

I have to sensors for the same region with different additional_costs_current_hour (one for selling and one for buying), one of them stop updating after midnight, even though both where working fine before midnight and both had tomorrow_valid: true before midnight

Looking though the log it's strange that then sensors have names like: nordpool_kwh_se4_sek_3_10_0, nordpool_kwh_se4_sek_4_10_0 even if they are named correctly in the UI. Also strange are the are both updating twice every hour (with a little different price also, super weird), it's like there are some artefact stuff left somewhere that are messing with me. This started after updating to 0.0.15.

Debug log

bad sensor has not shifted date correctly was ok before midnight (had values for 2024-10-29 in tomorrow):
state_class: total
average: 0.2424625
off_peak_1: 0.039275
off_peak_2: 0.718825
peak: 0.21913333333333335
min: 0.0219
max: 1.286
mean: 0.1471
unit: kWh
currency: SEK
country: Sweden
region: SE4
low_price: false
price_percent_to_average: 4.0505232767953805
today:
  - 0.028
  - 0.025
  - 0.0219
  - 0.0224
  - 0.0322
  - 0.047
  - 0.0564
  - 0.0813
  - 0.1583
  - 0.1603
  - 0.1359
  - 0.0909
  - 0.0895
  - 0.1125
  - 0.1706
  - 0.2858
  - 0.3178
  - 0.3708
  - 0.3989
  - 0.3383
  - 0.3223
  - 0.2849
  - 1.286
  - 0.9821
tomorrow: []
tomorrow_valid: false
raw_today:
  - start: "2024-10-28T00:00:00+01:00"
    end: "2024-10-28T01:00:00+01:00"
    value: 0.028
  - start: "2024-10-28T01:00:00+01:00"
    end: "2024-10-28T02:00:00+01:00"
    value: 0.025
  - start: "2024-10-28T02:00:00+01:00"
    end: "2024-10-28T03:00:00+01:00"
    value: 0.0219
  - start: "2024-10-28T03:00:00+01:00"
    end: "2024-10-28T04:00:00+01:00"
    value: 0.0224
  - start: "2024-10-28T04:00:00+01:00"
    end: "2024-10-28T05:00:00+01:00"
    value: 0.0322
  - start: "2024-10-28T05:00:00+01:00"
    end: "2024-10-28T06:00:00+01:00"
    value: 0.047
  - start: "2024-10-28T06:00:00+01:00"
    end: "2024-10-28T07:00:00+01:00"
    value: 0.0564
  - start: "2024-10-28T07:00:00+01:00"
    end: "2024-10-28T08:00:00+01:00"
    value: 0.0813
  - start: "2024-10-28T08:00:00+01:00"
    end: "2024-10-28T09:00:00+01:00"
    value: 0.1583
  - start: "2024-10-28T09:00:00+01:00"
    end: "2024-10-28T10:00:00+01:00"
    value: 0.1603
  - start: "2024-10-28T10:00:00+01:00"
    end: "2024-10-28T11:00:00+01:00"
    value: 0.1359
  - start: "2024-10-28T11:00:00+01:00"
    end: "2024-10-28T12:00:00+01:00"
    value: 0.0909
  - start: "2024-10-28T12:00:00+01:00"
    end: "2024-10-28T13:00:00+01:00"
    value: 0.0895
  - start: "2024-10-28T13:00:00+01:00"
    end: "2024-10-28T14:00:00+01:00"
    value: 0.1125
  - start: "2024-10-28T14:00:00+01:00"
    end: "2024-10-28T15:00:00+01:00"
    value: 0.1706
  - start: "2024-10-28T15:00:00+01:00"
    end: "2024-10-28T16:00:00+01:00"
    value: 0.2858
  - start: "2024-10-28T16:00:00+01:00"
    end: "2024-10-28T17:00:00+01:00"
    value: 0.3178
  - start: "2024-10-28T17:00:00+01:00"
    end: "2024-10-28T18:00:00+01:00"
    value: 0.3708
  - start: "2024-10-28T18:00:00+01:00"
    end: "2024-10-28T19:00:00+01:00"
    value: 0.3989
  - start: "2024-10-28T19:00:00+01:00"
    end: "2024-10-28T20:00:00+01:00"
    value: 0.3383
  - start: "2024-10-28T20:00:00+01:00"
    end: "2024-10-28T21:00:00+01:00"
    value: 0.3223
  - start: "2024-10-28T21:00:00+01:00"
    end: "2024-10-28T22:00:00+01:00"
    value: 0.2849
  - start: "2024-10-28T22:00:00+01:00"
    end: "2024-10-28T23:00:00+01:00"
    value: 1.286
  - start: "2024-10-28T23:00:00+01:00"
    end: "2024-10-29T00:00:00+01:00"
    value: 0.9821
raw_tomorrow: []
current_price: 0.9821
additional_costs_current_hour: 0.05628
price_in_cents: false
unit_of_measurement: SEK/kWh
device_class: monetary
icon: mdi:flash
friendly_name: nordpool_in

Good sensor:
state_class: total
average: 1.59975
off_peak_1: 1.37875
off_peak_2: 0.80625
peak: 2.0115833333333333
min: 0.077
max: 3.379
mean: 1.468
unit: kWh
currency: SEK
country: Sweden
region: SE4
low_price: true
price_percent_to_average: 0.9764025629004532
today:
  - 1.261
  - 1.246
  - 1.207
  - 1.226
  - 1.22
  - 1.398
  - 1.562
  - 1.91
  - 1.836
  - 1.588
  - 1.485
  - 1.396
  - 1.31
  - 1.451
  - 1.66
  - 2.077
  - 2.541
  - 3.379
  - 3.033
  - 2.383
  - 1.675
  - 1.308
  - 0.165
  - 0.077
tomorrow: []
tomorrow_valid: false
raw_today:
  - start: "2024-10-29T00:00:00+01:00"
    end: "2024-10-29T01:00:00+01:00"
    value: 1.261
  - start: "2024-10-29T01:00:00+01:00"
    end: "2024-10-29T02:00:00+01:00"
    value: 1.246
  - start: "2024-10-29T02:00:00+01:00"
    end: "2024-10-29T03:00:00+01:00"
    value: 1.207
  - start: "2024-10-29T03:00:00+01:00"
    end: "2024-10-29T04:00:00+01:00"
    value: 1.226
  - start: "2024-10-29T04:00:00+01:00"
    end: "2024-10-29T05:00:00+01:00"
    value: 1.22
  - start: "2024-10-29T05:00:00+01:00"
    end: "2024-10-29T06:00:00+01:00"
    value: 1.398
  - start: "2024-10-29T06:00:00+01:00"
    end: "2024-10-29T07:00:00+01:00"
    value: 1.562
  - start: "2024-10-29T07:00:00+01:00"
    end: "2024-10-29T08:00:00+01:00"
    value: 1.91
  - start: "2024-10-29T08:00:00+01:00"
    end: "2024-10-29T09:00:00+01:00"
    value: 1.836
  - start: "2024-10-29T09:00:00+01:00"
    end: "2024-10-29T10:00:00+01:00"
    value: 1.588
  - start: "2024-10-29T10:00:00+01:00"
    end: "2024-10-29T11:00:00+01:00"
    value: 1.485
  - start: "2024-10-29T11:00:00+01:00"
    end: "2024-10-29T12:00:00+01:00"
    value: 1.396
  - start: "2024-10-29T12:00:00+01:00"
    end: "2024-10-29T13:00:00+01:00"
    value: 1.31
  - start: "2024-10-29T13:00:00+01:00"
    end: "2024-10-29T14:00:00+01:00"
    value: 1.451
  - start: "2024-10-29T14:00:00+01:00"
    end: "2024-10-29T15:00:00+01:00"
    value: 1.66
  - start: "2024-10-29T15:00:00+01:00"
    end: "2024-10-29T16:00:00+01:00"
    value: 2.077
  - start: "2024-10-29T16:00:00+01:00"
    end: "2024-10-29T17:00:00+01:00"
    value: 2.541
  - start: "2024-10-29T17:00:00+01:00"
    end: "2024-10-29T18:00:00+01:00"
    value: 3.379
  - start: "2024-10-29T18:00:00+01:00"
    end: "2024-10-29T19:00:00+01:00"
    value: 3.033
  - start: "2024-10-29T19:00:00+01:00"
    end: "2024-10-29T20:00:00+01:00"
    value: 2.383
  - start: "2024-10-29T20:00:00+01:00"
    end: "2024-10-29T21:00:00+01:00"
    value: 1.675
  - start: "2024-10-29T21:00:00+01:00"
    end: "2024-10-29T22:00:00+01:00"
    value: 1.308
  - start: "2024-10-29T22:00:00+01:00"
    end: "2024-10-29T23:00:00+01:00"
    value: 0.165
  - start: "2024-10-29T23:00:00+01:00"
    end: "2024-10-30T00:00:00+01:00"
    value: 0.077
raw_tomorrow: []
current_price: 1.562
additional_costs_current_hour: 0.1
price_in_cents: false
unit_of_measurement: SEK/kWh
device_class: monetary
icon: mdi:flash
friendly_name: nordpool


yesterdays debug log with midnight:

2024-10-28 15:08:07.063 DEBUG (MainThread) [custom_components.nordpool] Updating today's prices.
2024-10-28 15:08:07.063 DEBUG (MainThread) [custom_components.nordpool] calling _update today None ['SE4']
2024-10-28 15:08:07.204 DEBUG (MainThread) [custom_components.nordpool.aio_price] requested https://dataportal-api.nordpoolgroup.com/api/DayAheadPrices?currency=SEK&market=DayAhead&deliveryArea=SE4&date=2024-10-27 {'currency': 'SEK', 'market': 'DayAhead', 'deliveryArea': 'SE4', 'date': '2024-10-27'}
2024-10-28 15:08:07.212 DEBUG (MainThread) [custom_components.nordpool.aio_price] requested https://dataportal-api.nordpoolgroup.com/api/DayAheadPrices?currency=SEK&market=DayAhead&deliveryArea=SE4&date=2024-10-28 {'currency': 'SEK', 'market': 'DayAhead', 'deliveryArea': 'SE4', 'date': '2024-10-28'}
2024-10-28 15:08:07.220 DEBUG (MainThread) [custom_components.nordpool.aio_price] requested https://dataportal-api.nordpoolgroup.com/api/DayAheadPrices?currency=SEK&market=DayAhead&deliveryArea=SE4&date=2024-10-29 {'currency': 'SEK', 'market': 'DayAhead', 'deliveryArea': 'SE4', 'date': '2024-10-29'}
2024-10-28 15:08:07.315 DEBUG (MainThread) [custom_components.nordpool] Updating tomorrows prices.
2024-10-28 15:08:07.315 DEBUG (MainThread) [custom_components.nordpool] calling _update tomorrow 2024-10-29 15:08:07.315481+01:00 ['SE4']
2024-10-28 15:08:07.354 DEBUG (MainThread) [custom_components.nordpool.aio_price] requested https://dataportal-api.nordpoolgroup.com/api/DayAheadPrices?currency=SEK&market=DayAhead&deliveryArea=SE4&date=2024-10-27 {'currency': 'SEK', 'market': 'DayAhead', 'deliveryArea': 'SE4', 'date': '2024-10-27'}
2024-10-28 15:08:07.358 DEBUG (MainThread) [custom_components.nordpool.aio_price] requested https://dataportal-api.nordpoolgroup.com/api/DayAheadPrices?currency=SEK&market=DayAhead&deliveryArea=SE4&date=2024-10-29 {'currency': 'SEK', 'market': 'DayAhead', 'deliveryArea': 'SE4', 'date': '2024-10-29'}
2024-10-28 15:08:07.359 DEBUG (MainThread) [custom_components.nordpool.aio_price] requested https://dataportal-api.nordpoolgroup.com/api/DayAheadPrices?currency=SEK&market=DayAhead&deliveryArea=SE4&date=2024-10-28 {'currency': 'SEK', 'market': 'DayAhead', 'deliveryArea': 'SE4', 'date': '2024-10-28'}
2024-10-28 15:08:07.433 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 15:08:07.436 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 15:08:07.438 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 15:08:07.441 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 15:08:07.443 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 229.69
2024-10-28 15:08:07.444 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 15:08:07.446 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_4_10_0 _current_price 229.69
2024-10-28 15:08:07.446 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 15:08:07.449 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_4_10_0 _current_price 229.5
2024-10-28 15:08:07.455 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 15:08:07.459 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 229.5
2024-10-28 15:08:07.472 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 229.5
2024-10-28 16:00:00.057 DEBUG (MainThread) [custom_components.nordpool] Called new_hr callback
2024-10-28 16:00:00.057 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 16:00:00.060 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 16:00:00.063 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 16:00:00.066 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 16:00:00.068 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 261.69
2024-10-28 16:00:00.069 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 16:00:00.071 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_4_10_0 _current_price 261.69
2024-10-28 16:00:00.071 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 16:00:00.073 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_4_10_0 _current_price 261.47
2024-10-28 16:00:00.080 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 16:00:00.085 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 261.47
2024-10-28 17:00:00.057 DEBUG (MainThread) [custom_components.nordpool] Called new_hr callback
2024-10-28 17:00:00.058 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 17:00:00.060 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 17:00:00.062 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 17:00:00.066 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 17:00:00.068 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 314.78
2024-10-28 17:00:00.069 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 17:00:00.071 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_4_10_0 _current_price 314.78
2024-10-28 17:00:00.072 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 17:00:00.075 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_4_10_0 _current_price 314.52
2024-10-28 17:00:00.081 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 17:00:00.083 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 314.52
2024-10-28 18:00:00.057 DEBUG (MainThread) [custom_components.nordpool] Called new_hr callback
2024-10-28 18:00:00.057 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 18:00:00.060 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 18:00:00.063 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 18:00:00.066 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 18:00:00.068 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 342.88
2024-10-28 18:00:00.069 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 18:00:00.071 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_4_10_0 _current_price 342.88
2024-10-28 18:00:00.071 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 18:00:00.074 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_4_10_0 _current_price 342.59
2024-10-28 18:00:00.080 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 18:00:00.082 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 342.59
2024-10-28 19:00:00.057 DEBUG (MainThread) [custom_components.nordpool] Called new_hr callback
2024-10-28 19:00:00.057 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 19:00:00.060 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 19:00:00.062 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 19:00:00.065 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 19:00:00.067 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 282.22
2024-10-28 19:00:00.068 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 19:00:00.070 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_4_10_0 _current_price 282.22
2024-10-28 19:00:00.071 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 19:00:00.073 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_4_10_0 _current_price 281.98
2024-10-28 19:00:00.079 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 19:00:00.084 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 281.98
2024-10-28 20:00:00.058 DEBUG (MainThread) [custom_components.nordpool] Called new_hr callback
2024-10-28 20:00:00.059 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 20:00:00.061 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 20:00:00.064 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 20:00:00.067 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 20:00:00.070 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 266.28
2024-10-28 20:00:00.071 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 20:00:00.073 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_4_10_0 _current_price 266.28
2024-10-28 20:00:00.074 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 20:00:00.078 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_4_10_0 _current_price 266.05
2024-10-28 20:00:00.085 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 20:00:00.095 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 266.05
2024-10-28 21:00:00.059 DEBUG (MainThread) [custom_components.nordpool] Called new_hr callback
2024-10-28 21:00:00.060 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 21:00:00.062 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 21:00:00.068 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 21:00:00.070 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 21:00:00.073 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 228.78
2024-10-28 21:00:00.073 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 21:00:00.076 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_4_10_0 _current_price 228.78
2024-10-28 21:00:00.076 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 21:00:00.078 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_4_10_0 _current_price 228.59
2024-10-28 21:00:00.084 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 21:00:00.089 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 228.59
2024-10-28 22:00:00.057 DEBUG (MainThread) [custom_components.nordpool] Called new_hr callback
2024-10-28 22:00:00.058 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 22:00:00.060 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 22:00:00.063 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 22:00:00.066 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 22:00:00.068 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 1230.69
2024-10-28 22:00:00.069 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 22:00:00.071 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_4_10_0 _current_price 1230.69
2024-10-28 22:00:00.072 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 22:00:00.074 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_4_10_0 _current_price 1229.67
2024-10-28 22:00:00.080 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 22:00:00.084 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 1229.67
2024-10-28 23:00:00.057 DEBUG (MainThread) [custom_components.nordpool] Called new_hr callback
2024-10-28 23:00:00.057 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 23:00:00.059 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 23:00:00.062 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 23:00:00.065 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 23:00:00.067 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 926.57
2024-10-28 23:00:00.068 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 23:00:00.070 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_4_10_0 _current_price 926.57
2024-10-28 23:00:00.071 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 23:00:00.073 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_4_10_0 _current_price 925.81
2024-10-28 23:00:00.079 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-28 23:00:00.084 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 925.81
2024-10-29 00:00:00.057 DEBUG (MainThread) [custom_components.nordpool] Called new_hr callback
2024-10-29 00:00:00.058 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 00:00:00.060 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 00:00:00.063 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 00:00:00.066 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 00:00:00.068 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 00:00:00.071 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 00:00:00.080 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 00:00:00.356 DEBUG (MainThread) [custom_components.nordpool] Called new_day_cb callback
2024-10-29 00:00:00.356 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_day
2024-10-29 00:00:00.356 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 00:00:00.359 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_day
2024-10-29 00:00:00.359 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 00:00:00.363 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_day
2024-10-29 00:00:00.363 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 00:00:00.365 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_day
2024-10-29 00:00:00.366 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 00:00:00.368 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_day
2024-10-29 00:00:00.369 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 00:00:00.371 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_day
2024-10-29 00:00:00.371 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 00:00:00.377 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_day
2024-10-29 00:00:00.378 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 00:00:00.387 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 1161.34
2024-10-29 01:00:00.057 DEBUG (MainThread) [custom_components.nordpool] Called new_hr callback
2024-10-29 01:00:00.058 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 01:00:00.060 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 01:00:00.062 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 01:00:00.066 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 01:00:00.069 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 01:00:00.072 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 01:00:00.077 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 01:00:00.079 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 1146.31
2024-10-29 02:00:00.057 DEBUG (MainThread) [custom_components.nordpool] Called new_hr callback
2024-10-29 02:00:00.057 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 02:00:00.060 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 02:00:00.063 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 02:00:00.066 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 02:00:00.069 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 02:00:00.071 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 02:00:00.076 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 02:00:00.079 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 1106.84
2024-10-29 03:00:00.057 DEBUG (MainThread) [custom_components.nordpool] Called new_hr callback
2024-10-29 03:00:00.057 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 03:00:00.060 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 03:00:00.062 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 03:00:00.066 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 03:00:00.068 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 03:00:00.071 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 03:00:00.076 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 03:00:00.078 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 1126.46
2024-10-29 04:00:00.057 DEBUG (MainThread) [custom_components.nordpool] Called new_hr callback
2024-10-29 04:00:00.057 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 04:00:00.060 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 04:00:00.062 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 04:00:00.065 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 04:00:00.068 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 04:00:00.071 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 04:00:00.076 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 04:00:00.078 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 1120.15
2024-10-29 05:00:00.057 DEBUG (MainThread) [custom_components.nordpool] Called new_hr callback
2024-10-29 05:00:00.057 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 05:00:00.060 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 05:00:00.064 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 05:00:00.066 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 05:00:00.069 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 05:00:00.071 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 05:00:00.077 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 05:00:00.081 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 1297.77
2024-10-29 06:00:00.057 DEBUG (MainThread) [custom_components.nordpool] Called new_hr callback
2024-10-29 06:00:00.057 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 06:00:00.060 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 06:00:00.063 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 06:00:00.066 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 06:00:00.069 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 06:00:00.071 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 06:00:00.077 DEBUG (MainThread) [custom_components.nordpool.sensor] handle_new_hr
2024-10-29 06:00:00.079 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_se4_sek_3_10_0 _current_price 1461.63

CleanShot 2024-10-29 at 06 47 07
CleanShot 2024-10-29 at 06 47 44
CleanShot 2024-10-29 at 06 48 15
CleanShot 2024-10-29 at 06 53 57
CleanShot 2024-10-29 at 06 54 15
CleanShot 2024-10-29 at 06 54 52

@roccolord
Copy link
Author

looking at my on log I see that something is seriously wrong with the addons when you have tried to add sensors, which you can't if you add additional sensor for same setup with different additional cost, since they will get the same name as the other. Then there will be a mental heywire of stuff running that are not present. Then when removing the, not much is done (if I look in the code). Maybe an idea to merge the unique entity_id patch soon.

@Hellowlol
Copy link
Collaborator

Not really. This is already been documented and asked multiple times. The ability to set your own unique id is most likely never going to get merged.

@Hellowlol Hellowlol reopened this Oct 30, 2024
@Hellowlol
Copy link
Collaborator

I reread your issue. Thanks for the report. What ha version are you using?

@Hellowlol
Copy link
Collaborator

Hellowlol commented Oct 31, 2024

The entire log is super weird at it does not make sense at all. Seems like there are some additional sensors that messes things up. Please remove them all sensors and the entire nordpool.. Restart ha and add them back again. If the issue persist post the new log

@roccolord
Copy link
Author

I reread your issue. Thanks for the report. What ha version are you using?

2024.10.3? As stated in the issue.

@roccolord
Copy link
Author

The entire log is super weird at it does not make sense at all. Seems like there are some additional sensors that messes things up. Please remove them all sensors and the entire nordpool.. Restart ha and add them back again. If the issue persist post the new log

It makes sense, since I added a couple of sensors (was trying to change the additional cost for both in and out price), it failed cause of the sensor got the same name as the old one and the failed halfway, creating a Integration entries without device and entity, but obviously adding some other stuff to HA. Reloading the integration in that state does not help. Removing Integration entries doesn't. Restarting HA (after tomorrow's price has arrived) looks to be the only solution to get out of it.

image

@roccolord
Copy link
Author

Not really. This is already been documented and asked multiple times. The ability to set your own unique id is most likely never going to get merged.

Would be nice if the integration didn't create the same id, for the same setup for a sensor where only the additional cost is different, and the fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants