Ah, well behind the scenes, the original power sensors from the envoy are updated every minute. You can see this when looking at the original sensor.
The integration/energy sensors follow the source sensors and update whenever the source sensors are updated.
As for apexcharts that replicate the look of the enphase app, I’ll post my current config yaml here:
To draw the grey area, I had to add a net power sensor:
template:
- sensor:
- name: Net Power
state_class: measurement
unit_of_measurement: W
device_class: power
icon: mdi:transmission-tower
state: >
{% set production = states('sensor.solar_power_corrected') | int(0) %}
{% set consumption = states('sensor.envoy_SN_current_power_consumption') | int(0) %}
{{ (production - consumption) }}
Then in the edit dashboard, add card, custom: apex cards chart, card config section of the dashboard I did this:
type: custom:apexcharts-card
graph_span: 24h
stacked: true
header:
show: true
title: Total Power
series:
- entity: sensor.solar_power_corrected
type: column
name: Produced
color: '#01B4DE'
group_by:
func: avg
duration: 5min
- entity: sensor.envoy_SN_current_power_consumption
transform: return x *-1 ;
type: column
name: Consumed
color: '#F37320'
group_by:
func: avg
duration: 5min
- entity: sensor.net_power
type: column
name: Imported/Exported
transform: return x *-1 ;
color: '#545456'
group_by:
func: avg
duration: 5min
The duration field is only used to choose how granular/thick to draw the column of data in the graph. The duration field has no effect on how often home assistant records the data.
End result is this
Keeping in mind that this view is only charting the consumption and production and net power sensors in W or KW
If you meant grid import and grid export energy figures in Wh or KWh, then they are also updated every minute at the least, but if it’s night time then the grid export sensor won’t update till the sun comes up and energy starts being sold to the grid.