kotope / aio_energy_management

Home Assistant All-In-One Energy Management integration
MIT License
6 stars 0 forks source link

Every other day values not calclulated if starting_today is false and last_hour is 23 #3

Closed kotope closed 13 hours ago

kotope commented 3 weeks ago

As the day changes to next day at 00:00, every other day will run on failsafe on conditions where starting_today is false and last_hour is 23.

Until fix is available, use last_hour as 22 to skip the final hour.

This is going to be fixed at the same when creating support to show two possible values if expiration is after nordpool publishing hours.

xoferz commented 5 days ago

came here to say just that :-)

kotope commented 5 days ago

Unfortunately fixing this has been taking some time, mostly due my busy schedules during last weeks.

Good news though that the changes are almost written now and just needs some final touches and testing :-)

xoferz commented 2 days ago

Today is missing for me again. Last_hour is 22. Nordpool info itself for today is ok.

kotope commented 1 day ago

Most probably something has happened between 23.00-00.00 that the Nord Pool data has not been received by aio energy management. If you have logs available between 23-00 and dare to send me those, I can verify the cause of your issue.

Anyhow, during the weekend I pushed required changed to 'feature/next_item' and now I'm running the new version on my own environment for few days before making the release. Just to be sure I won't break anything :-) So far everything has been fine and I will be making a new release tomorrow if no surprises comes.

xoferz commented 1 day ago

There is nothing in the log about this unfortunately, I checked. Current conf:

aio_energy_management:

calendar: name: energy_management unique_id: energy_management cheapest_hours:

(code <> here seems to eat linefeeds)

Both calendars are empty. Nordpool data has been there - I also use nordpool_diff component and that keeps on working.

xoferz commented 1 day ago

And they appeared for tomorrow, 17/09 Seems still every other day Screenshot 2024-09-16 at 14 51 34

kotope commented 13 hours ago

This should now be fixed with the v0.1.1 release.

Please re-open if issue still persists :)