Skip to content

First Setup

When Hanergy opens for the first time, the setup wizard launches automatically. It walks through five steps to get the engine running with a basic configuration.


The welcome screen gives a brief overview of how the priority cascade works. Read through it, then click Get Started.


Map your Home Assistant energy sensors to the four fields Hanergy needs:

FieldWhat to enterExample entity
Grid ImportPower being drawn from the grid (W)sensor.grid_power_import
Grid ExportPower being sent to the grid (W)sensor.grid_power_export
ProductionSolar or wind generation output (W)sensor.solar_power
ConsumptionTotal household load (W) — optionalsensor.house_consumption

The Entities dropdown is populated from your live Home Assistant instance. Start typing the entity name to filter the list.


Add a controllable device for the engine to manage. A pool pump makes an excellent first device because it is a simple on/off (fixed) load:

  1. Enter a Name (e.g., “Pool Pump”).
  2. Select Type: Fixed.
  3. Set Switch Entity to the switch that controls the pump (e.g., switch.pool_pump).
  4. Set Rated Power to the pump’s power draw in watts (e.g., 750).
  5. Click Save Device.

The priorities screen shows an ordered list. Each entry links a device to a minimum surplus requirement.

Add a priority entry for the pool pump:

  1. Click Add Priority.
  2. Select Device: Pool Pump.
  3. Set Min Surplus to the minimum surplus required before the pump turns on (e.g., 800 W — slightly above the pump’s rated power to leave headroom).
  4. Click Save.

The pool pump will now activate whenever surplus solar production exceeds 800 W and deactivate when it drops below that level.


The final wizard step shows a summary of your energy sensors, devices, and priorities. Review the configuration and click Save and Start. The engine begins its evaluation loop immediately.


After completing the wizard, use the main dashboard to confirm that Hanergy is operating correctly.

The dashboard shows live values for production, consumption, grid import, grid export, and calculated surplus. If the values match what you see in your Home Assistant energy dashboard, the entity mapping is correct.

Below the energy flow, each configured device shows its current state:

StateMeaning
OffDevice is inactive — insufficient surplus or threshold already met
PendingEngine wants to activate — waiting for hysteresis delay
ActiveDevice is running — current setpoint and estimated power shown
SheddingEngine has issued a turn-off command — waiting for confirmation
UnavailableThe Home Assistant entity is not responding
ErrorThe device has exceeded consecutive command failures

The History tab shows a ring buffer of the last 500 evaluation cycles. Each entry includes the timestamp, smoothed surplus at the time of the decision, actions taken with reasons, and remaining surplus after allocation.


  • Add more devices — configure dynamic loads (EV chargers, heat pumps) and deferred loads (washing machines).
  • Fine-tune priorities — set up multi-level priority entries and threshold-based stopping.
  • Adjust engine settings — tune the evaluation interval, smoothing, and hysteresis timers.