/web/COM0 Afri Blanck, Engineer
Blog / 2026-11-19

Seasonal battery reserve on a Fronius GEN24 with Home Assistant

#home-assistant #fronius #solar

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

Table 1: The method was set up on the following system.
ComponentValue
InverterFronius Symo GEN24 6.0 Plus
BatteryBYD HVS+, 12.4 kWh
SoftwareHome Assistant with the core Fronius integration, no custom integration
Previous reserve7%, fixed

Schedule

Table 2: The minimum reserve follows the month.
MonthsMinimum reserve (%)
April, May, June, July, August10
March, September20
February, October50
November, December, January80

Procedure

  1. 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.
  2. Restart Home Assistant. Reloading the integration was not sufficient on the test system.
  3. 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.
  4. Add the automation (Listing 1).
Listing 1: The automation has two triggers: daily at 13:08 and on every change of the backup mode.
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:

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

Confirmed behavior

The following behavior was confirmed on the test system.

Documented behavior

The following behavior is documented but was not tested on the test system.

Open questions