Enphase Envoy with Energy Dashboard

Hi, thanks for the really useful post. Sorry to bother you, my Envoy, although metered, does not have an entity for consumption. Does that mean I’m stuffed?

thanks, Andrew.

Hi Andrew,
How do you know it dies not have an entity for consumption?
What version of Envoy and Homeassistant do you have?

Daniel

Just check your envoy for how many CT wires you have connected. Each CT has a white and a blue wire. If you install the EnPhase installers tool kit and your installer allowed user access then you can enable the meters there. Or ask him to same them.

Hi Daniel,
The consumption entity is not listed along with the others. I’m on HA 2022.7.7 and my Enphase software is D3.17.3. Thanks!

Hi Chris, thanks for replying.
As far as I can see, there are no CT clamps anywhere on our system. The supply from the panels goes straight into our PV meter and from there goes to the supply cupboard via a breaker box. Unfortunately I don’t have a login for the tool kit. I’ll try applying for one and see what happens!.

Hi Andrew,
Does anyone know if D3.17 is supported?
I would try to see if you can get your Envoy updated. I was on D4.xx and have been updated to D5.0.x and both have worked.
From what I have ready I would avoid D.7.??? as this add security headaches
Daniel

Thanks Daniel. I think a lot hinges on me getting access to the installers software, or getting the installer in.

Hi,

The reason why instantaneous power is used instead of lifetime figures is the difficulty in extracting grid import/export from the only 2 available CT clamp sensors being production and consumption.
The unique formula only works with the instantaneous sensors.

See

And

Hi,
Thanks for the information.
I did find that the data returned from the Envoy has ‘net-consumption’ data but this would be consumption - production which we can do with math so I have not completed the change I started to bring these values through.

I understand that the first linked post gives a NET ENERGY value. I was thinking that we could use the derivative integration to get the average NET POWER.
Then (per the original post in this thread) I could do the max math function to create import/export power numbers and then use the integration integration to get the import/export energy and as it is derived from energy numbers to start it should be more accurate.

Is this feasible?
You mention “The unique formula only works with the instantaneous sensors”, is this the max function?

The reason I am considering this is that I don’t trust integrating power with samples 1-2min apart. I’m collecting data and yesterday the Enphase data shows I consumed 25.547 kWh but HA (with the implemented method at the start of this thread) shows 21.96 kWh (for the day in week view) which is 14% lower, when I go to the day view it shows 25.2 kWh which is only 1.4% lower… not sure what is going on here.
Does this match up with others experiences?
Note: I’m still awaiting inspection of my system the solar is off when I’m not home so I don’t have production figures to compare to yet.

Edit: updated power reported by HA in different views

I think the model of envoy makes a difference to the wiring.
Here is the ct clamp diagram for the 120v (USA) model ENV-S-AM1-120

And here is the wiring diagram for the 230v (Australia) model ENV-S-WM1-230-M

For single phase, only IA terminals are used.

Hi @oneda538,

It depends on what you want HA to do with the information.

In my case, I wanted HA automation to make decisions based on near real-time observations (every 60 seconds) regarding how much power was being imported from the grid or exported to the grid.

For example, I currently have an automation that turns off my pool pump when grid import power is above 100 watts for 5 minutes and turns the pool pump back on when grid export power is above 1100 watts for 20 minutes.

The other reason why I chose the instantaneous power sensors was that most people get charged different rates for different times of the day.

The 3rd reason is that I observed erroneous solar production (only 4 watt hours per hour) figures at night. I wanted to be able to correct the erroneous nighttime production figures that would potentially incorrectly skew the today_s and lifetime figures. See https://community.home-assistant.io/t/enhpase-envoy-on-2021-8-with-new-energy-feature/328668/3?u=del13r

It all boils down to energy dashboard requiring seperate grid import and grid export sensors which enphase is unable to natively provide as the CT clamps only record production and consumption. That’s where the formula comes in to extract grid import/export information at that point in time.

From my testing at the time, using the lifetime energy or the today_s energy sensors did not allow any of the above requirements to happen.

In regards to running your HA on a container, do you mean docker? I briefly tried docker install and quickly reverted back due to the difficulty of installing add-ons.

Hi @oneda538

Please see this post regarding why the native energy sensors didn’t work for extracting grid import and grid export.

It all gets back to energy dashboard requiring an odometer style counter that only ever increments for each grid import and grid export sensor. Odometers by design are never meant to go backwards in value. The caveat is that they can be reset back to 0 nightly for example.

Here is what my energy retailer recorded for Saturday

Here is what my energy dashboard recorded using the integration integration.

1 Like

Hi - thank you so much for sending me the diagrams. Just makes me realise how far behind we are in the UK. Many thanks for taking the time.

Kindest regards,

Andrew.

1 Like

Pretty sure UK uses 230V as well. see Enhpase Envoy on 2021.8 with new Energy feature - #176 by del13r as well for 230v combiner box.

Is there a way to alert on grid failure/ grid on status? I don’t see an entity that relates to that even though its available in the envoy.local view.
Otherwise is there an obvious way to deduce that from the entity data that is available?

Hi @automateme1,

In my case, I do not have a battery and everything in my house will turn off when the grid fails.
I have setup a https://healthchecks.io/ alert to alert me via email when home assistant fails to send a heartbeat every 5 mins. This is what I use to tell me if there is a problem with either home assistant or the grid.

Here is the integration I use for sending the heartbeat from home assistant.
https://github.com/custom-components/healthchecksio

Where about in http://envoy.local/home do you see the grid on/fail status?
What model Envoy do you have?
What version of Envoy firmware are you on?
Have you tried checking the json files on the Envoy?
eg. http://envoy.local/production.json or http://envoy.local/home.json

Hi @automateme1

If you can find the element you are after in one of the json files, I was able to scrape data using ‘platform: rest’ and turned certain values in the json file in to a sensor.

see https://community.home-assistant.io/t/enhpase-envoy-on-2021-8-with-new-energy-feature/328668/100?u=del13r

Hi there,

Go to your developer tab and select “states” then search for entities like “AC” or “voltage” to see if you already have something reporting the mains supply. Then you can create an automation to send a alert when that entity chores outside of your desired setting.

I’m my case i have a Sofar Battery inverter and Myenergi product that tracks the AC in my home.