nordpool
nordpool copied to clipboard
Values for tomorrow are null
As per #85, I'm raising a new issue with logs attached. It also appears to reference #82
Version of the custom_component
Latest version 0.0.4
Homeassistant version
Home Assistant 2022.2.0
Configuration
logger:
default: info
logs:
nordpool: debug
custom_components.nordpool: debug
custom_components.nordpool.sensor: debug
custom_components.nordpool.aio_price: debug
sensor:
- platform: nordpool
region: "Oslo"
currency: "NOK"
Describe the bug
Tomorrow's values fail to update. If I restart the system it works, but after a day, it no longer updates.
It appears that it first tries to check for tomorrow's price at 13:10:46 on the current day, which returns a value of 'inf', then it checks every hour and continues to fail. The first time it checkts, it logs a json response where all the values are 'inf', in all the other times (every hour) there doesn't appear to be a json response (at least not logged).
Is the first check for tomorrows values at the expected time of just after 13:00? Shouldn't it be some time after 14:00?
I'm also referencing #82 as it appears that tomorrow valid field is set to 'true' even though all values for tomorrow are null.
Without knowing too much of the workings of the plugin, it seems like there could be multiple issues, 1. with when to first check for the updated values, and 2. being able to check for values at a later stage (as the plugin is in an inconsistent error state potentially regarding the tomorrow valid state..).
Debug log
Received a generic warning Setup of sensor platform nordpool is taking over 10 seconds. in addition to the logs below:
.......
2022-03-18 13:00:00 DEBUG (MainThread) [custom_components.nordpool] Called new_hr callback
2022-03-18 13:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] called check_stuff
2022-03-18 13:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] NordpoolSensor _data_tomorrow is none, trying to fetch it.
2022-03-18 13:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_oslo_nok_3_10_025 _current_price 1799.01
...
2022-03-18 13:10:46 DEBUG (MainThread) [custom_components.nordpool] Called new_data_cb
2022-03-18 13:10:46 DEBUG (MainThread) [custom_components.nordpool] Updating tomorrows prices.
2022-03-18 13:10:46 DEBUG (MainThread) [custom_components.nordpool] calling _update tomorrow 2022-03-19 13:10:46.005477+01:00
2022-03-18 13:10:46 DEBUG (MainThread) [custom_components.nordpool.aio_price] requested https://www.nordpoolgroup.com/api/marketdata/page/10?currency=NOK&endDate=18-03-2022 {'currency': 'NOK', 'endDate': '18-03-2022'}
2022-03-18 13:10:46 DEBUG (MainThread) [custom_components.nordpool.aio_price] requested https://www.nordpoolgroup.com/api/marketdata/page/10?currency=NOK&endDate=17-03-2022 {'currency': 'NOK', 'endDate': '17-03-2022'}
2022-03-18 13:10:46 DEBUG (MainThread) [custom_components.nordpool.aio_price] requested https://www.nordpoolgroup.com/api/marketdata/page/10?currency=NOK&endDate=19-03-2022 {'currency': 'NOK', 'endDate': '19-03-2022'}
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.aio_price] join_result_for_correct_time 2022-03-19 13:10:46.005477+01:00
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.aio_price] Combines result: defaultdict(<class 'dict'>, {'areas': {'SYS': {'Min': inf, 'Max': inf, 'Average': inf, 'Peak': inf, 'Off-peak 1': inf, 'Off-peak 2': inf, 'values': [{'start': datetime.datetime(2022, 3, 18, 23, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 0, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 0, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 1, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 1, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 2, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 2, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 3, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 3, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 4, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 4, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 5, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 5, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 6, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 6, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 7, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 7, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 8, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 8, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 9, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 9, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 10, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 10, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 11, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 11, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 12, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 12, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 13, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 13, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 14, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 14, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 15, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 15, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 16, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 16, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 17, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 17, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 18, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 18, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 19, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 19, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 20, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 20, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 21, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 21, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 22, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 22, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 23, 0, tzinfo=<UTC>), 'value': inf}]}, 'SE1': {'Min': inf, 'Max': inf, 'Average': inf, 'Peak': inf, 'Off-peak 1': inf, 'Off-peak 2': inf, 'values': [{'start': datetime.datetime(2022, 3, 18, 23, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 0, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 0, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 1, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 1, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 2, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 2, 0, tzinfo=<UTC>), 'end': datetime.datetime(2022, 3, 19, 3, 0, tzinfo=<UTC>), 'value': inf}, {'start': datetime.datetime(2022, 3, 19, 3, 0, tzinfo=<UTC>), 'end':
[I cropped the JSON it as it was too long to post]
....
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] called check_stuff
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] NordpoolSensor _data_tomorrow is none, trying to fetch it.
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_oslo_nok_3_10_025 _current_price 1799.01
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 13:10:47 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
....
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool] Called new_hr callback
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] called check_stuff
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_oslo_nok_3_10_025 _current_price 1792.41
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 14:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
...
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool] Called new_hr callback
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] called check_stuff
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] Updated nordpool_kwh_oslo_nok_3_10_025 _current_price 1793.38
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
2022-03-18 15:00:00 DEBUG (MainThread) [custom_components.nordpool.sensor] api returned junk infinty inf
Thanks for a awesome bug report. Your right that there are multiple issues they are all related to missing info from the api. Reload the sensors and see if i got time for a fix in sunday
Hi, this link might help to understand the problem. https://developers.nordpoolgroup.com/docs/da-introduction?fbclid=IwAR1ibGErGfykbqXbhyz834AIUdhtXx8w7iU6Cgu6m9Rgjmn9P2TwTjY1v64
Hi, this link might help to understand the problem. https://developers.nordpoolgroup.com/docs/da-introduction?fbclid=IwAR1ibGErGfykbqXbhyz834AIUdhtXx8w7iU6Cgu6m9Rgjmn9P2TwTjY1v64
I have got the same error, and the link you found seems to be the cause. Crossing our fingers that @Hellowlol is able to fix it quickly
Seems that Nordpool has closed down the API used in our sensor, and switched to the new API: https://developers.nordpoolgroup.com/docs/introduction-1
Ok, now I also do not have tomorrows prices? Is there any fix? EDIT: After nordpool app reload, tomorrows prices appeared again
@raudraido : It will fail again tomorrow. I have had the error every day the past 2-3 days.
Same problem here
Can also confirm this problem for DK2 - started a couple of days ago. If I restart HA the prices will appear, but if will fail the following day.
This problem seems to be solvable. However, I'm more concerned about that now Nordpool has officially depreciated this API. It can completely stop working any day. I remember reading a statement from them a year ago or so, that they were considering to offer a limited API for free for personal (non-profit) use. But I haven't seen anything about that lately.
Maybe it is possible to integrate FI,EE,LV,LT market data from link bellow. I was using it before I found this nordpool app. https://dashboard.elering.ee/assets/api-doc.html#/nps-controller
I also havent seen update notifications from their own app couple of days.
Also started experiencing this issue. Seems the data is fixed after "reloading" the integration so would it not solve for now to make the coordinator run more frequently than what seems to be once per day currently.
eg: run it every 5 minutes and if the values are not empty do the actual request otherwise do a NOOP.
Alternatively is there a way to automate the reload of an integration through a service call or similar?
duplicate of #124?
Anyone else experienced it again now?
Same
Been working fine since 20 March, then failed again yesterday.
Now it seams like it is totally dead.. 😭
Reload the integration will bring back values for tomorrow (if set up from interface rather than yaml)
Had to delete it complety and reistall it, then it worked :-) But it seams like when using setup from yaml it will not work... So I have no ideas on how to add aditional dost now :-(
I have nordpool sensor configured in yaml. Tried just a restart of Templates, that didn't work. But restart of Home Assistant solved it for me. I got tomorrow values without need to reinstall the nordpool sensor.
But something is wrong since we have to restart Home Assistant quite often to get the integration to work again. Crossing our fingers that @Hellowlol can spend his time to fix the sensor.
I use HACS and simply "reload" the integration and things are good again. Kinda annoying, might do an automation to reload it :D
So it has been working reliably for me of late, although I did make 1 change in the code. I set it back from updating at 13:00ish to 14:00ish to run the update. This is a crude hack of course, and the better option if you want to test things out is to try the code from #127 which is looking to make it more reliable.
nordpool/init.py
# Handles futures updates
cb_update_tomorrow = async_track_time_change_in_tz(
hass,
new_data_cb,
hour=14, // **** Changed this value from 13 to 14
minute=RANDOM_MINUTE,
second=RANDOM_SECOND,
tz=timezone("Europe/Stockholm"),
)
Instead of checking once at a particular time it should run every 5 minutes or similar and if there is already data simply do a NOOP.
If the system is down at 14:00 for one minute then your "fix" won't work 🤷🏻
So it has been working reliably for me of late, although I did make 1 change in the code. I set it back from updating at 13:00ish to 14:00ish to run the update. This is a crude hack of course, and the better option if you want to test things out is to try the code from #127 which is looking to make it more reliable.
nordpool/init.py
# Handles futures updates cb_update_tomorrow = async_track_time_change_in_tz( hass, new_data_cb, hour=14, // **** Changed this value from 13 to 14 minute=RANDOM_MINUTE, second=RANDOM_SECOND, tz=timezone("Europe/Stockholm"), )
worked for me as a temporary fix at least :)
Instead of checking once at a particular time it should run every 5 minutes or similar and if there is already data simply do a NOOP.
If the system is down at 14:00 for one minute then your "fix" won't work 🤷🏻
@dogmatic69 Yes that is correct, which is why I called it a crude hack until the new version is released that does properly check the api response and retries as required.
I’m having this issue as per today. Tomorrow values are null and it doesn’t help by reloading the plugin
@riksarchen please open a new issue using the issue template. Reload should work, if it don’t is most likely another problem.
I also still have this issue, since several months actually. Tomorrows prices were null today, only way to get them was to restart HA.
How do you folks reload the plugin?
integration -> nordpool -> reload
Mhh, mine is installed via HACS and I don't have that option, but I can see it for the official integrations 🤔
Go to Configuration -> Devices & Services Find Nordpool and click the 3 little dots

And then click reload

This is only possible if you configured with GUI. Not with yaml configuration.