Skip to content

Devices

A device (also called a “load”) is any piece of electrical equipment that Hanergy can control. Each device is defined once and then referenced by one or more entries in the priority list.


Hanergy supports three device types, each suited to different kinds of equipment:

TypeControl MethodExample Equipment
DynamicAdjustable setpoint (amps, °C, %) + on/offEV charger, heat pump, battery inverter
FixedOn/off onlyPool pump, irrigation valve, dehumidifier
DeferredUser-triggered, then solar-poweredWashing machine, dishwasher

Dynamic devices give the engine two levers: an on/off switch and a continuously adjustable parameter. The engine modulates the parameter to match available surplus, rather than switching the device on and off repeatedly.

This makes dynamic devices the most efficient type — the engine can absorb exactly the right amount of surplus with minimal waste.

FieldRequiredDescription
NameYesHuman-readable label shown in the UI and dashboard.
Switch EntityYesHome Assistant entity that turns the device on/off (switch.* or input_boolean.*).
Parameter EntityYesHome Assistant entity for the adjustable setpoint (number.* or input_number.*). The engine writes to this entity to change the device’s power level.
Parameter MinYesMinimum allowed value. The engine never writes a value below this. Must match the actual hardware minimum.
Parameter MaxYesMaximum allowed value.
Parameter UnitNoDisplay unit — A, °C, %, etc. Shown in the UI only; does not affect calculations.
Watts per UnitYesApproximate power consumption per unit of the parameter, in watts. Used to estimate how much surplus a given setpoint will consume.
Feedback EntityNoHome Assistant sensor that reports progress toward a goal (battery %, tank temperature). Used by priority entries with a threshold to determine when the device is satisfied.
Rated PowerYesMaximum power consumption at maximum setpoint, in watts.
Minimum PowerNoPower consumption at minimum setpoint, in watts. Improves surplus accounting if provided.
Ramp TimeNoSeconds to wait after switching on before adjusting the parameter. Some equipment needs time to reach operating conditions before accepting setpoint changes.

The watts_per_unit value does not need to be exact — it is used for planning, not real-time metering. However, a grossly wrong value will cause the engine to either under-use surplus or attempt to activate devices it cannot sustain.

A practical calibration method:

  1. Switch the device on manually at the minimum setpoint.
  2. Note the stable power reading from your production and grid sensors.
  3. Increase the parameter to the maximum and note the power reading again.
  4. Divide the difference in watts by the difference in parameter units.

A single-phase EV charger with a current range of 6-32 A, using the car’s battery state of charge as the feedback sensor.

FieldValue
NameEV Charger
Switch Entityswitch.ev_charger
Parameter Entitynumber.ev_charger_amps
Parameter Min6
Parameter Max32
Parameter UnitA
Watts per Unit230
Feedback Entitysensor.ev_battery_soc
Rated Power7,360 W
Minimum Power1,380 W
Ramp Time5 s

A heat pump water heater with a temperature setpoint range of 40-70 °C. The feedback sensor is the tank temperature.

FieldValue
NameHeat Pump DHW
Switch Entityswitch.heat_pump
Parameter Entitynumber.heat_pump_setpoint
Parameter Min40
Parameter Max70
Parameter Unit°C
Watts per Unit15
Feedback Entitysensor.hot_water_tank_temp
Rated Power2,000 W
Minimum Power900 W
Ramp Time60 s

Fixed devices are the simplest type. The engine can only switch them on or off. When surplus exceeds the minimum threshold defined in the priority entry, the engine switches the device on. When surplus drops, it switches it off — subject to the minimum on-time and off-time guards in engine settings.

FieldRequiredDescription
NameYesHuman-readable label.
Switch EntityYesHome Assistant entity for on/off control.
Rated PowerYesPower consumption when running, in watts. Used for surplus accounting.
FieldValue
NamePool Pump
Switch Entityswitch.pool_pump
Rated Power750 W
FieldValue
NameDehumidifier
Switch Entityswitch.dehumidifier
Rated Power500 W

A dehumidifier runs whenever enough surplus is available. The dehumidifier’s own humidistat handles when to stop — from Hanergy’s perspective, it simply stays on as long as surplus permits.


Deferred devices model appliances that run a complete, fixed-duration cycle — a washing machine, dishwasher, or tumble dryer — where the user decides when to request a run, but is happy for the actual start to be delayed until surplus is available.

  1. The user presses a physical button or activates a Home Assistant helper (the trigger entity).
  2. Hanergy sees the trigger and queues the device.
  3. When surplus exceeds the device’s minimum surplus threshold (defined in the priority entry), the engine switches it on.
  4. After the estimated runtime elapses, the engine switches the device off (or the appliance’s internal program may stop it first).
FieldRequiredDescription
NameYesHuman-readable label.
Switch EntityYesHome Assistant entity to switch the appliance on/off.
Rated PowerYesApproximate power draw during the cycle, in watts.
Estimated RuntimeYesExpected cycle duration in minutes. Used to estimate whether the cycle can complete before surplus drops.
Trigger EntityYesHome Assistant entity the user activates to request a run. Typically an input_button or input_boolean.
FieldValue
NameWashing Machine
Switch Entityswitch.washing_machine
Rated Power2,000 W
Estimated Runtime90 min
Trigger Entityinput_button.start_washing_machine

The user loads the washing machine and presses the input_button in the Home Assistant companion app (or a physical Zigbee button mapped to the helper). Hanergy queues the run and waits for sustained surplus before starting.

FieldValue
NameDishwasher
Switch Entityswitch.dishwasher
Rated Power1,800 W
Estimated Runtime60 min
Trigger Entityinput_button.start_dishwasher