infradom / dynamic_grid_prices

Dynemic Grid Prices
MIT License
2 stars 0 forks source link

Day ahead prices not loaded automatically + last 24 entries show constant value #1

Open fitool opened 8 months ago

fitool commented 8 months ago

Hello,

first of all, thanks for the work done on this custom integration!

I've been using the integration for some time and since a few days there seems to be an issue with the automatic update of entries 24-47 within the 'raw_today' attribute of the "Dynamic_grid_prices Consumption Price" and "Dynamic_grid_prices Injection Price" entities. These entries all get the same value, which seems to be same value as entry 23.

Also the entity "Dynamic_grid_prices data merge count" has now always state value 48 while before it was 24 when the day ahead prices were not yet available.

When I reload the integration at the time that the day ahead prices are available, the data is loaded correctly.

I'm using the latest version of the integration on HA Core 2023.12.3, Supervisor 2023.12.0 & OS 11.2.

Any idea what might be wrong?

Thx, Kr,

David

infradom commented 8 months ago

Thanks, I also noticed strange behaviour the last few days. I already corrected one bug, but then there was an excessive amount of logging. Today, I reduced the logging. The root cause of the problems is that the entsoe api now returns zero data for the next day in the morning. In the past, it did not return any data for the next day before early afternoon 13:00

I hope entsoe will correct the error, but if they do not correct it in the coming days, I will make a dirty patch to detect this situation and correct it. The way there api works now since a couple of days, I cannot distinguish a zero price from the faulty zero values for the next day.

So, before 13:00 h, the data for the next day is rubbish (instead of no data). In the afternoon, we get the correct values for the next day. My latest github version should already be somewhat better (no more crash), but the final solution is not yet there.

Hope this helps ..

infradom commented 8 months ago

My github repository now contains a version v0.0.9 that might resolve the issue. Need a couple of days to be sure it resolves the issue. Feel free to test at your own risk ...