Integrating delayed energy consumption into the energy dashboard

Hi all. My energy provider has an API that I’ve been able to tap into to get hourly energy usage in kilowatt hours. The only issue is they only provide this data the day after. So for example, if today is Wednesday then if I query at 1:00 a.m. today, the latest data I will have access to is Tuesday’s hourly data.

I want to integrate this into my energy dashboard, but I don’t know how to set up a delay like this. Am I just overthinking this? I am not sure exactly what entities I should be using to rig this up. I can build a custom integration to fetch the data and provide it as a sensor, but I don’t know how to integrate it into the energy dashboard to just show up for yesterday.

Thanks.

Hello. I don’t know how this is done exactly, but you can have a look at the following integration, as it does import data from the energy provider website (Tauron eLicznik), which is also typically updated with a day delay. The integration actually imports all historical data (not just yesterday) and inserts it into the HA database somehow in a way that the energy dashboard can work with.

So since you are building a custom integration, maybe you can implement a similar solution in it. But I’m just a user, I don’t know any technical details of how this works.

1 Like