# SMA Sunny Boy Storage 1.5/2.0/2.5 (Modbus)

Source: https://docs.evcc.io/en/meters/sma-sunny-boy-storage-1-5-2-0-2-5-modbus

Supported features: battery-control

## Parameters

| Name | Description | Default / example | |
| --- | --- | --- | --- |
| modbus | Modbus Type ModbusTCP server needs to be enabled. (tcpip) |  |  |
| maxchargepower | Maximum charge power For forced charging of the battery. | 4200 W |  |
| capacity | Battery capacity | 50 kWh |  |
| minsoc | Minimum charge Lower limit as configured on the battery system. Used by optimizer. | 0 % |  |
| maxsoc | Maximum charge Upper limit as configured on the battery system. Used by optimizer and for grid charging. | 100 % |  |
| maxdischargepower | Maximum discharge power Maximum discharge power of the storage. |  W | advanced |
| watchdog | Watchdog | 60s | advanced |

## Configuration example for evcc.yaml

```yaml
meters:
    - name: my_battery
      type: template
      template: sma-sbs-15-25-modbus
      usage: battery
      
      # Modbus TCP
      modbus: tcpip
      id: 3
      host:  # Hostname
      port: 502 # Port
      maxchargepower: 4200 # Maximum charge power (W), For forced charging of the battery.
      capacity: 50 # Battery capacity (kWh), optional
      minsoc: 0 # Minimum charge (%), Lower limit as configured on the battery system. Used by optimizer. (optional)
      maxsoc: 100 # Maximum charge (%), Upper limit as configured on the battery system. Used by optimizer and for grid charging. (optional)
      maxdischargepower: # Maximum discharge power (W), Maximum discharge power of the storage. (optional)
      watchdog: 60s # Watchdog, optional
```
