Utility Company Data Tracking

I’ve been battling with trying to get this working for the last couple of days but I’m finally at the point where I need to throw in the towel and ask for help.

I can access half hourly data consumption through my electricity companies API which I can successfully import into home assistant using a command line sensor and curl. The data consists of a single half hour period and is measured in kWh.

What I want to do is keep a running total of the half hour usage on both a monthly and daily basis. I had assumed that the Utility Meter integration would be the right way to go about this however the utility meter sensor never really updates and when it does it does so by a fraction the amount I would expect.

Is a utility meter the right integration to be using to achieve what I’m aiming for? Bonus points of the solution suggested can be integrated into the new energy dashboard.

What you probably need to do is to accumulate the half-hourly values in an input_number, then pass that input_number to utility_meter.

For me, my local electric company canceled their home energy bridge so I was searching for a non-cloud, home brew solution. I bought the Aotec Energy meters and was surprised at all the hoops I had to jump through. I ended up installing EmonCMS to act as the data storage. So the energy meters capture the info, send it to HA via Z-Wave, which then sends it off Emon for long term storage. HA sees the live data and I have to pull historical or combined data from Emon.