You only have that graph if you have the Envoy Metered including the CT-clamps installed.
If you have the Envoy Standard then you only get to see the production side. Not the consumption side. You can use a P1 reader (e.g. a P1 cable connected to a Raspberry Pi with HA) to get the consumption side. And let HA create the dashboard for you.
Really appreciate this information! So I have (2) Envoy Emphase combiners for my system. How would I leverage your instructions to combine the two together for import/export energy information?
I don’t know what you mean. But if you have an envoy standard you would need your P1 information to combine them in HA to get the info on production, usage, export and import.
Does anybody in this topic ‘Enphase’ has a home battery which you want to add to the Home assistant dashboard.
The Enlighten app is showing in it’s ‘live status’ view the charge or discharge rate of the battery but there are no counters exposed (apart from the current battery percentage / capacity etc…). Did somebody figure out how to grab this info from the Enphase Envoy?
KR
Yves
Last time I looked at that url (when I had v7 for a few weeks), the data seemed to be displayed in “blocks” of 30 seconds and was useless for near real time. Is that still the case, ie, you see a page full of data, then a 30 second pause, then another page of data etc
On my v5 system, that url gives updated data every time it’s called and I don’t need to authenticate first
. It seems to be split into two components - the first being the sum of Consumption and separate reading for each phase, and the second being the Net calculation between Consumption and Generation - it’s +ve if power is being Imported and -ve if power is being exported.
It’s JSON data so would be easy to create a sensor from it - after you do the Enphase v7 token dance of course.
I second what @vk2him says. I’ve been using a constantly refreshing dashboard of power usage and solar production using his excellent mqtt add on. HA easily handles it, and the CPU on my HA Blue barely budges. I’ve stuck on D5 firmware so I can be certain to maintain this functionality, with the conjecture around whether it’s even possible with D7.
In this case, I was importing 961 watts from the grid.
So, to find house consumption, I would have to add both of these readings together to get 1,116.288 watts that my house was consuming.
Similarly, if my panels were generating 2000 watts and the net grid reading was -500 watts, I would add them together and find that my house consumption is 1500w
Maybe a stab in the dark here, but I’ve read MOST of this thread and no matter what I can’t seem to get the custom sensors to work (but this is my first time making custom sensors, but I’m super familiar with JSON/YAML).
I did notice that the FIRST post above and some of the interim state screenshots differ slightly so maybe the first post is out of date?
I believe it was state_class I saw posted differently by del13r and some people keep talking about changing device_class but I don’t think that’s right.
Any suggestions to what I’m doing wrong would be appreciated! I’m giving up for the day to see if its just one of those “fixes itself overnight” issues…
template:
- sensor:
name: Grid Import Power
state_class: measurement
icon: mdi:transmission-tower
unit_of_measurement: W
device_class: power
state: >
{{ [0, states('sensor.envoy_REDACTED_current_power_consumption') | int - states('sensor.envoy_REDACTED_current_power_production') | int ] | max }}
- sensor:
name: Grid Export Power
state_class: measurement
icon: mdi:transmission-tower
unit_of_measurement: W
device_class: power
state: >
{{ [0, states('sensor.envoy_REDACTED_current_power_production') | int - states('sensor.envoy_REDACTED_current_power_consumption') | int ] | max }}
- sensor:
name: Solar Power Corrected
state_class: measurement
icon: mdi:solar-panel
unit_of_measurement: W
device_class: power
state: >
{% set value = states('sensor.envoy_REDACTED_current_power_production') | int %}
{% if value <= 4 -%}
0
{%- else -%}
{{ value }}
{%- endif %}
sensor:
- platform: integration
name: Grid Import Energy
source: sensor.grid_import_power
unit_prefix: k
unit_time: h
method: left
- platform: integration
name: Grid Export Energy
source: sensor.grid_export_power
unit_prefix: k
unit_time: h
method: left