Skip to content

Energy Flow Display

The energy flow panel shows the current state of your energy system at a glance: how much the panels are producing, how much the household is consuming, what is being imported or exported to the grid, and how much surplus is available for managed loads.


ValueDescription
ProductionTotal solar (or wind) power currently being generated, in watts. Read from the production sensor configured in Settings > Energy Entities.
ConsumptionTotal household power consumption, in watts. If a consumption sensor is configured, Hanergy reads it directly. Otherwise, it derives consumption from production + grid import - grid export.
Grid ImportPower currently being drawn from the grid, in watts. A value above zero means the household (including managed loads) is consuming more than solar production covers.
Grid ExportPower currently being sent to the grid, in watts. A value above zero means there is unused surplus — an opportunity to activate more loads or increase setpoints.
SurplusThe smoothed surplus value the engine uses for allocation decisions. This is production minus consumption, after EMA smoothing and the surplus buffer subtraction.

Hanergy derives surplus on every evaluation cycle:

  1. Read production, grid import, and grid export sensors from Home Assistant.
  2. Calculate raw surplus: production - consumption (or equivalently, grid_export - grid_import).
  3. Apply exponential moving average (EMA) smoothing to dampen cloud transients. The smoothing_alpha engine setting controls how responsive the smoothed value is (lower = more smoothing, higher = more responsive).
  4. Subtract surplus_buffer_w (default: 100 W) as a safety margin.
  5. The resulting value is the available surplus shown on the dashboard and used for allocation.

If a sensor value shows as “unavailable” on the energy flow panel:

  • The entity does not exist in Home Assistant. Verify the entity ID in Settings > Energy Entities matches exactly what HA reports (entity IDs are case-sensitive).
  • The entity is offline. Check HA Developer Tools > States and search for the entity. If it shows as unavailable, the underlying device or integration has lost contact.
  • Fresh start. After a restart, entity values may show as zero or unavailable until the first state-change event arrives from Home Assistant (typically within one evaluation cycle, default 10 seconds).