Enphase Envoy with Energy Dashboard

Yeah each one has a value

Thats great news then. Your envoy is recording consumption and production.
At what point did you decide this wasnt going to work?

Wait, you have more than 1 envoy? Im confused now.
Most houses only have 1 envoy.
Which envoy are you showing me in your screenshots that have values for both production and consumption?

I’ll have to play around with it a bit more. Maybe I can get something to work.

I maintain the Enphase Envoy sensor code in Home Assistant (or atleast try to been bust the last few months) just getting back to it now and trying to get the Return to Grid values to correctly appear in Home Assistant.

I have access to multiple Envoys, but only have one at home. The others are for testing :slight_smile:

1 Like

That net-consumption in the backend will most likely be the same as Net Power at envoy.local

image

That’s what I’m hoping for. So I don’t need to worry about any calculations, just pass the value from the Envoy to the API to Home Assistant

Sorry, I am still trying to work out what you are doing and why.
Is this to try and make it work better with the energy dashboard?

1 Like

From my understanding just adding an Envoy to Home Assistant is not enough to have the Energy Dashboard show, Solar Production, Consumption, and Return to Grid values. Currently the only sensors that can be added from the Envoy to Home Assistant that will appear in the Energy Dashboard are for the Solar Production and Total Consumption. Right?

So to display Return to Grid values people have to make their own sensor/template. They really should not have to do that.

Unless I’m missing something

I agree with you on the shouldnt have to setup extra sensors part, however what I have learned is that the envoy is not collecting grid in and grid out figures separately.

From the envoy point of view, it has 1 CT clamp is on the mains measuring energy going EITHER to OR from the grid (never both) and by how much. Thats the issue here. The grid in/out figure is combined and stored in a single value as consumption. (because you will never have grid in/out occuring at the same time). The current version of the energy dashboard needs these figures separated.

The only other figure envoy is interested in is solar panel production which is stored under production.

Currently the only way to separate these grid in/out figures stored in current_consumption is to calculate them against current_production and get the difference.

In order to do that you need both:
You need to subtract current_production from current_consumption to calculate and separate grid import.
You need to subtract current_consumption from current_production to calculate and separate grid export.

I suspect providing an extra net-consumption figure will not change this but I welcome you to try.

The only solution I can see is perhaps the Home Assistant Devs improving future versions of the energy dashboard so that it can ingest solar inverter lifetime energy production and lifetime energy consumption figures and do the difference calculation for us. That will remove the need for us to create sensors manually. At the moment that is not an option.

1 Like

When you click on any of those sensors, you are supposed to see a graph.

If you dont see a graph like this, then your Home Assistant may not be configured to record properly.

I would say any figure other than 0 once the sun has gone down is not mean to happen.
If you have a constant minus figure overnight, wouldnt that cause your production totals to go down/backwards?

1 Like

For some reason, I am getting zeroes for all the grid values. And, now I am wondering whether it’s worth the effort to set this up.

I had set up a simple dashboard with Grafana with InfluxDB as the database and it was fun to play around with. This [screenshot] is the first version of the Grafana dashboard I’m working on right now…

[The 7-day numbers are off as the production started only yesterday evening.]

2 Likes

I would say that the only sensor that actually works with energy dashboard is Solar Production Lifetime.

If you try to use Total Consumption Lifetime, it wont be accurate.
Total Consumption Lifetime doesnt only represent just grid import, it also includes power the house consumed from the solar panels which has nothing to do with the grid. That makes this sensor inaccurate and irrelevant for use anywhere in the energy dashboard.

Just checking you havent modifed the default recorder settings in Home Assistant?

I dont know much about Grafana, but that’s a great design.

1 Like

You should definitely try out the Grafana, InfluxDB integrations in HomeAssistant. It’s very powerful to create beautiful dashboards and pretty easy to learn. :blush:

1 Like

I have some nice graphs in grafana as wel. Maybe this could be an inspiration for someone. If not, scroll further :smiley:
Each bar is one day.
Gebruik = import
Levering = export


2 Likes

@del13r If the Total Consumption data coming directly from the Enphase Envoy is inaccurate what should it be, as the API is just reading data from the device which should be doing the calculations from W to Wh on its own. Enphase MyEnlighten should be using the same values that I am pulling from the envoy_reader API, are those values inaccurate?

I’m just trying to get a sense of what might need to be changed in the code, so others don’t have to create sensors in Home Assistant for them to get good energy data. Please understand I don’t have access to an Envoy with Consumption and MyEnlighten to compare data values.

Here is what my enlighten on iOS looks like

Here is what home assistant looks like for the same day

It appears that my enlighten may also doing the same calculation in their front end.

The only reason why I said the word inaccurate is because the consumption figure available to us in home assistant includes both grid and home/self consumption combined. This combining of the data is what makes it a inaccurate source for home assistant energy dashboard.

Once we subtract production from consumption, currently via manually created sensors, that is what makes it accurate allows us to see the accurate grid consumption is what I meant.

@del13r This gives me a good data point. Thank you for the comparison!

1 Like

I have just updated post number 4 as I figured out how to calculate the total cost per day inclusive of export credit, daily service charge and retailer discount. Enhpase Envoy on 2021.8 with new Energy feature - #4 by del13r

2 Likes