core: Current power consumption and production are not shown as long term statistics
The problem
The two Envoy nnnn Current Power Consumption and Production entities of the Enphase Envoy integration are not shown in the energy dashboard when selecting the sources. Only the Last Seven Days, Lifetime and Today’s Energy Production/Consumption can be selected.
The entity attributes are the following:
sensor.envoy_nnnnnnnnnn _current_power_consumption:
state: 2488
state_class: measurement
unit_of_measurement: W
icon: mdi:flash
friendly_name: Envoy nnnnnnnnnn Current Power Consumption
sensor.envoy_nnnnnnnnnn_current_power_production:
state: -3
state_class: measurement
unit_of_measurement: W
icon: mdi:flash
friendly_name: Envoy nnnnnnnnnn Current Power Production
The state class of the entities that are shown (and selectable) is total_increasing:
sensor.envoy_nnnnnnnnnn_last_seven_days_energy_consumption
state_class: total_increasing
unit_of_measurement: Wh
device_class: energy
icon: mdi:flash
friendly_name: Envoy nnnnnnnnnn Last Seven Days Energy Consumption
See: https://developers.home-assistant.io/docs/core/entity/sensor#long-term-statistics.
What version of Home Assistant Core has the issue?
2022.11.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
enphase_envoy
Link to integration documentation on our website
https://www.home-assistant.io/integrations/enphase_envoy
Diagnostics information
config_entry-enphase_envoy-104742ceab5a4a3c9bb75986b26427c0.json.txt
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
The Envoy Gateway is an Envoy-S-Metered-EM:
- SKU: ENV-S-WM-230
- Firmware: D5.0.55
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (3 by maintainers)
Are we clear about the question here? Scanning through all the comments and references it seems the ask is about
net energy consumption(grid energy import) andnet energy production(grid energy export) that can be added to the energy dashboard forgrid consumptionandreturn to grid.Or is the ask for power import and export, which can not be added to the energy dashboard as @rrozema mentions.
Since both come from same source, the consumption CT installed in Solar included mode, both can be provided from the ivp/meters/readings endpoint. I have started the migration of the data collection logic from @briancmpbll’s custom integration to pyenphase which is now the source for HA. Once that is available in pyenphase, it can be added to the HA Enphase_Envoy as well.
As said, this will only work for Envoy metered with installed and configured CT and the consumption CT measuring the grid exchange (Solar included) mode.
The library pyenphase has been updated for this. Update of Home Assistant is in the works.
That’s exactly the issue. As I’ve mentioned in the description, now some of us are workarounding this by using the proposal mentioned in this community thread Enphase Envoy with Energy Dashboard.
Thanks for your work 😃