# Demo battery

Source: https://docs.evcc.io/en/meters/demo-battery

For demonstration purposes. Battery with a fixed set of values.

## Parameters

| Name | Description | Default / example | |
| --- | --- | --- | --- |
| power | Power |  W |  |
| soc | Charge |  % |  |
| controllable | Controllable Supports active battery control |  | advanced |
| capacity | Battery capacity | 50 kWh | advanced |
| minsoc | Minimum charge Lower limit as configured on the battery system. Used by optimizer. | 0 % | advanced |
| maxsoc | Maximum charge Upper limit as configured on the battery system. Used by optimizer and for grid charging. | 100 % | advanced |
| maxchargepower | Maximum charge power For forced charging of the battery. |  W | advanced |
| maxdischargepower | Maximum discharge power Maximum discharge power of the storage. |  W | advanced |
| energy | Meter reading |  kWh | advanced |
| currentL1 | L1 current |  A | advanced |
| currentL2 | L2 current |  A | advanced |
| currentL3 | L3 current |  A | advanced |
| maxacpower | Maximum AC power of the hybrid inverter | 0 W | advanced |

## Configuration example for evcc.yaml

```yaml
meters:
    - name: my_battery
      type: template
      template: demo-battery
      usage: battery
      power: # Power (W), optional
      soc: # Charge (%), optional
      controllable: # Controllable, Supports active battery control (optional)
      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)
      maxchargepower: # Maximum charge power (W), For forced charging of the battery. (optional)
      maxdischargepower: # Maximum discharge power (W), Maximum discharge power of the storage. (optional)
      energy: # Meter reading (kWh), optional
      currentL1: # L1 current (A), optional
      currentL2: # L2 current (A), optional
      currentL3: # L3 current (A), optional
```
