carohauta / oma-helen-ha-integration

Home Assistant integration for Oma Helen data
MIT License
35 stars 6 forks source link

Using HA energy dashboard, first day of month has zero consumption #4

Closed lakofsth closed 1 year ago

lakofsth commented 1 year ago

My guess without looking at code is that we'd be requesting the previous day of the month from the API on the first day of the month.

carohauta commented 1 year ago

The Helen API data is lagging behind for about one day – sometimes even two days. This also means that the HA integration data is lagging behind and is noticeable especially in the beginning of each month when it might show zero usage for the first day or two. You might notice that the last month total usage will update accordingly in this case.

Because the Helen API data usually updates only once per day, I configured the HA integration itself to update only once every six hours. This of course could in some cases create additional six hours delay on top.

lakofsth commented 1 year ago

Thanks for getting back to me. I am not sure how to go about integrating the last month usage data into the HA energy dashboard. It seems to want a single source for supplier information. So I suppose I had thought that a logical solution on the first day of the month would be to request the last day of the previous month - since every day in the HA dashboard is effectively reflecting the previous day's usage.

On Mon, 6 Mar 2023 at 09:30, Caro Hautamäki @.***> wrote:

The Helen API data is lagging behind for about one day – sometimes even two days. This also means that the HA integration data is lagging behind and is noticeable especially in the beginning of each month when it might show zero usage for the first day or two. You might notice that the last month total usage will update accordingly in this case.

Because the Helen API data usually updates only once per day, I configured the HA integration itself to update only once every six hours. This of course could in some cases create additional six hours delay on top.

— Reply to this email directly, view it on GitHub https://github.com/carohauta/oma-helen-ha-integration/issues/4#issuecomment-1455598966, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALDHVSQGTHLTND53MK2TUFDW2WHAZANCNFSM6AAAAAAVNVOJXA . You are receiving this because you authored the thread.Message ID: @.***>

lakofsth commented 1 year ago

Maybe simplest to close this