Blog / 2026-11-19
Seasonal battery reserve on a Fronius GEN24 with Home Assistant
This article describes a Home Assistant automation that sets the minimum battery reserve of a Fronius GEN24 inverter by month. The method uses local Modbus TCP and the core Fronius integration. It requires neither a cloud service nor a custom integration.
Test system
| Component | Value |
|---|---|
| Inverter | Fronius Symo GEN24 6.0 Plus |
| Battery | BYD HVS+, 12.4 kWh |
| Software | Home Assistant with the core Fronius integration, no custom integration |
| Previous reserve | 7%, fixed |
Schedule
| Months | Minimum reserve (%) |
|---|---|
| April, May, June, July, August | 10 |
| March, September | 20 |
| February, October | 50 |
| November, December, January | 80 |
Procedure
- In the inverter UI under Communication > Modbus, switch on the Modbus TCP server and "Inverter control via Modbus". Without the second switch, Home Assistant creates no control entities.
- Restart Home Assistant. Reloading the integration was not sufficient on the test system.
- Open the inverter device in Home Assistant. The number entity "Battery minimum reserve" is listed under Configuration, with a range of 0 to 100% and a step of 1.
- Add the automation (Listing 1).
alias: Seasonal battery reserve
triggers:
- trigger: time
at: "13:08:00"
- trigger: state
entity_id: binary_sensor.garage_fronius_solarnet_backup_mode
to:
- "on"
- "off"
actions:
- action: number.set_value
target:
entity_id: number.garage_fronius_gen24_battery_minimum_reserve
data:
value: >
{{ 7 if is_state('binary_sensor.garage_fronius_solarnet_backup_mode', 'on')
else {1: 80, 2: 50, 3: 20, 4: 10, 5: 10, 6: 10,
7: 10, 8: 10, 9: 20, 10: 50, 11: 80, 12: 80}[now().month] }}
The automation behaves as follows:
- With the grid available, the reserve of the current month is set.
- With the backup mode on, the reserve is set to 7% (recommended battery minimum).
- A missed day is corrected by the next run.
13:08 is my local solar maximum in summer. In winter it is off by one hour but that does not matter much in the low season.
Verification
- The first read of the entity returned 7.0, identical to the value set in the inverter UI.
- The automation is in operation. The reserve was at 80% as of November 14, 2026.
Confirmed behavior
The following behavior was confirmed on the test system.
- With the grid available, the battery does not discharge below the reserve (Fronius).
- With the State of Charge (SOC) below the reserve, the battery recharges from the grid (unless solar power is available). The reported rate is 0.5 kW (fronius_modbus). Every step up of the schedule can trigger that recharge, especially in fall and winter.
Documented behavior
The following behavior is documented but was not tested on the test system.
- In backup mode, the reserve and manually set SOC limits do not apply. The battery discharges to the minimum preset by its manufacturer (Fronius). Thus, the backup trigger in the automation is a safeguard, not a requirement.
Open questions
- It is open which field of the inverter UI shows the written value: "SoC Minimum" or "Reserve Capacity".
- A backup test with the SOC below the reserve is pending.