FlipFlip Energy API

Parallel Inverters

Behind-the-meter sites with more than one inverter wire them in parallel: one master inverter and one or more slaves. Flip models the whole stack as one device: the master. This page covers what to commission, how to combine values across inverters, and how to handle commands.

Why only the master

The master is the control point for the stack:

  • It takes the VPP instructions. The master accepts the operating mode and power setpoint and shares the work out across the slaves. Slaves follow the master and are not controlled on their own.
  • It measures the site. The grid meter (CT) is normally wired to the master, so grid import/export is measured once, for the whole home.
  • A VPP dispatches the site, not the inverter. Programs enroll a home and expect one stated capacity and one power response from it.

If you register each inverter as its own device, Flip sees several batteries at one site. Each is dispatched separately, the site is counted more than once, and the slaves receive commands they cannot act on. So register only the master, and report values for the whole stack under it.


Commissioning

Send one entry in devices for the site, using the master's id and serial_number. Do not send the slaves.

Fill the device attributes for the whole stack:

FieldHow to fill it
battery_capacity_whSum across all inverters' batteries
inverter_ac_max_discharge_w / inverter_ac_max_charge_wSum across inverters
battery_dc_max_discharge_w / battery_dc_max_charge_wSum across batteries
site_export_limit_wSingle value: the export limit at the meter applies to the whole site, so don't sum it
round_trip_efficiencySingle value for the stack
capabilities.*Single value for the site (for example, has_solar is true if any inverter has solar)

Telemetry

Report one reading per interval under the master's device_id, combining the inverters as follows. Field names are from POST /v1/telemetry/BATTERY_COUNTER. On POST /v1/telemetry/BATTERY, apply the same rules to the matching fields: sum battery_total_energy_charge_wh, battery_total_energy_discharge_wh and solar_total_energy_wh; report grid_total_energy_wh and home_total_energy_wh once for the site; and use the master's start_time and duration_s.

FieldHow to combine
battery_energy_charge_wh_counter, battery_energy_discharge_wh_counter, solar_energy_wh_counterSum
battery_last_power_charge_w, battery_last_power_discharge_w, solar_last_power_wSum
battery_last_stored_energy_wh, battery_last_capacity_energy_whSum
battery_last_state_of_charge_percentageWeighted by capacity: total stored energy ÷ total capacity × 100
battery_last_state_of_health_percentageWeighted by capacity
grid_*, home_* (power and counters)Site total, measured once at the meter. Don't add up copies of the same meter reading from each inverter
battery_last_backup_reserve_percentage, last_mode, device_settings, last_is_grid_online, is_weather_alarm_activeThe master's value
last_is_onlineWhether the master is reachable and controllable
last_has_active_faulttrue if any inverter has an active fault
faultsFaults from all inverters, combined into one list
timestampThe master's reading time

State of charge: weight it, don't average it

Batteries in a stack often differ in size, so a plain average of each inverter's state of charge is wrong.

CapacityStoredState of charge
Inverter A20,000 Wh10,000 Wh50%
Inverter B10,000 Wh2,000 Wh20%
Stack30,000 Wh12,000 Wh40% (12,000 ÷ 30,000)

A plain average would report 35% and understate the energy available.

Keep counters steady when a slave drops out

If a slave misses a reading, keep adding its last known counter values to the sum. If you leave it out instead, the summed counter drops, and a drop in a lifetime counter reads as a reset.


Control

Commands arrive for the master device, and they apply to the whole stack:

  • setpoint_w is the target for the whole stack, not for each inverter. Pass it to the master and let the master share it across the slaves.
  • backup_reserve_percentage is the reserve for the whole stack.
  • Acknowledge commands for the master only, not for each inverter, via PATCH /v1/command/{commandId}.

See Battery Modes for what each mode should do.


Already registered the slaves?

If a site was commissioned with one device per inverter, contact us and we'll remove the extra devices. Then update the master with the stack totals above, and send all telemetry under the master's device_id. When you start summing, add only each slave's increase from that point on, so the master's counters don't jump by the slaves' lifetime totals.


Checklist

  • Commission one device per site: the master
  • Sum capacity and power limits across the stack; send export limit, efficiency and capabilities once
  • Sum energy counters, battery and solar power, stored energy and capacity
  • Report state of charge as total stored energy ÷ total capacity
  • Report grid and home values once, for the site
  • Keep summed counters steady when a slave misses a reading
  • Treat command setpoints as stack totals, and acknowledge for the master only