Ovo Energy Integrations - how to configure properly on the Energy dashboard?

My energy provider is Ovo Energy and I have installed the integration.

It returns gas and electricity usage costs and seems to show yesterday’s values.
ovo

My problem is how to represent this on the Energy dashboard - some days it shows double or even treble the actual usage when you compare it to the values shown on Ovo’s own app.

HA seems to pull down readings one or more times in a day, and when it does it more than once, the energy dashboard doubles up.

I have tried using Helpers with Daily resets, and a variety of combinations of the Delta and Net settings but not been able to get a consistent result.

Has anyone got it working reliably? Any pointers for me? .

A wild guess would be that the data read from/by the integration returns 0 every now and then. Such a zero would be interpreted as a counter reset, and resulting in doubling the values.

Is there any trace in the logs about the integration that had a (read) error?

1 Like

Thanks for the pointer. I looked at the logs and couldn’t see any erros, but I think I may have found something - It looks like the repeats are when I have restarted Home Assistant (I’m still playing with it so am doing that reasonably often)

Is there a way to force just one update a day?

Actually, maybe that’s not it - I just restarted HA and it’s not duplicated.

If you open up the history from those entities, can you see the value briefly dropping to zero around the time of the duplication?

It doesn’t look like it - see below

(The gap is because I had some maintenance on the NAS and stopped all containers)

Any other ideas?

Thanks for your help on this…

Ah, I see. The graphs are supposed to only go up, and count the overal total accumulated usage.

After some more inspection, it seems this graph is showing your daily usage instead of your overall usage. This means that every time you use less than the day before, it will assume it started from zero and sum it completely up again.

You might want to fiddle with Utility Meter - Home Assistant, maybe you can use this sensor als source for a utility_meter which can then be used in the energy dashboard.

That’s correct - it reports yesterday’s usage.

I have been trying to get the Utility Meter helper to work, but it’s hit & miss for me.

I have been using “Daily Reset Cycle” and various combinations of the delta and net tick boxes but haven’t been able to get a reliable measure working. It seems that it collects more than once on some days.

The integration returns 8 entities
ovo entities

The Date of last readings do seem to be correct, only changing once per day

Here’s an example of the Utility Meter which is daily reset, delta on, net off which shows that it reguarly adds in yesterday’s usage again

Hmm, that’s a bummer. I wonder whether your energy supplier would deliver the total sum or not, and thus whether it would be useful to create a ticket on the repo of the integration requesting such sensor.

The only other solution I can think of at this moment is making something yourself consisting of an automation that triggers when the start time changes, after which it takes an input_number and add the reading value to it and store the sum back to the input_number. Then this input_number can be constructed in such way that it can be used in the energy dashboard.

Firstly, thanks for your time helping and for your suggestions - I am very new to HA and trying to work out how to do the automation you suggested, but currently failing :frowning:

I think I need to do the steps below:

  1. Create helper fields for a date/time “input_datetime.ovo_last_date” (to store the date/time from the end date) and a number field “input_number.ovo.meter_reading” to become the meter reading.

  2. Create an automation with a trigger of “sensor.ovo_last_electrictity_end_time” and conditions where “sensor.ovo_last_electrictity_end_time” is different from “input_date.ovo_last_date”

  3. The create an action that sets “input_datetime.ovo_last_date” to “sensor.ovo_last_electrictity_end_time” and adds sensor.ovo_last_electricity_reading" to “input_number.ovo.meter_reading”

Does this sound right?

I’ve been trying to follow the documentation and think I understand the triggers and conditions but cannot fathom how to create the action update the “input” fields using the output of the ovo entities.

Any pointers?

Thanks again

You’re welcome.

You might not need the input_datetime, as I would think that when setting a trigger on the end_time, HA would do that internally, only triggering on a change. But if that doesn’t work, you’re indeed on the right track.

For setting the input_number, you can use the set_value service (see Input Number - Home Assistant ), and use a template as value. This template can then use the current state of the input_number and actual reading and sum them up. In the developer tools, you can fiddle with the templates.

Thanks for the help. I’ll have a play around at the weekend and hopefully nail it :slight_smile: