Have a few things…
First wanted to comment on the CO2 Signal.
When looking at the integration, it shows no errors. (seems good right?)
…but click on it and look at the details, mine does not report anything.
I’ve let this sit for a while… no change.
Next item @del13r (sorry on the other thread… I couldn’t locate this one in the slew of posts from the older thread). Much appreciate your work in this, I’ve read this top to bottom.
My setup is: Envoy Combiner (X-IQ-AM1-240-3-ES) connected to a 400amp (split x2-200amp main panels). So I have 2 sets of CT’s. I’ve verified all my connections are good with Enphase support
Enlighten output for today
Prior to the “Energy” integration, I was using my own setup to monitor values. This is just polling/using the default Enphase sensors, so I know I have good data.
For the life of me, I cannot get a single value to post in the energy section
I can see values using your sensors/templates you created (except for the import power/energy), which I am not sure if that is related to me producing more than I need… so nothing is being imported at the moment??
Here are the sensor lookups
…and here are the code blocks (inserted into configuration.yaml)
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_xxx_current_power_consumption') | int - states('sensor.envoy_xxx_current_power_production') | int ] | max }}
- sensor:
name: Grid Export Power
state_class: measurement
icon: mdi:solar-panel-large
unit_of_measurement: W
device_class: power
state: >
{{ [0, states('sensor.envoy_xxx_current_power_production') | int - states('sensor.envoy_xxx_current_power_consumption') | int ] | max }}
- sensor:
name: Solar Power Corrected
state_class: measurement
icon: mdi:solar-panel-large
unit_of_measurement: W
device_class: power
state: >
{% set value = states('sensor.envoy_xxx_current_power_production') | int %}
{% if value <= 5 %}
0
{% elif is_state("sun.sun","below_horizon") %}
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
- platform: integration
name: Solar Energy Corrected
source: sensor.solar_power_corrected
unit_prefix: k
unit_time: h
I can add a couple of the items… but not the import energy
This all I get
The odd thing I can see is the grid import energy doesn’t have a device_class: energy showing up
EDIT: I was able to use the customize section for entities and add the device_class and unit_of_measurement to Grid Import Power. Very odd that HA would not pick this up from the template sensor definition. This allowed me to add it into the Energy config… However I still do not get accurate values. My exported should be much more than 8.5kWh