# SENEC .Home P4

Source: https://docs.evcc.io/en/meters/senec-home-p4

Cloud connection via the SENEC.Connect API. A subscription key from the SENEC developer portal is required. Access is read-only, battery control is not possible.

## Parameters

| Name | Description | Default / example | |
| --- | --- | --- | --- |
| token | Subscription key Subscription key from the SENEC developer portal (sent as header `Ocp-Apim-Subscription-Key`). |  |  |
| 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 % |  |
| maxacpower | Maximum AC power of the hybrid inverter | 0 W | advanced |

## Configuration example for evcc.yaml

```yaml
meters:
    - name: my_grid
      type: template
      template: senec-connect
      usage: grid
      token: # Subscription key, Subscription key from the SENEC developer portal (sent as header `Ocp-Apim-Subscription-Key`).
```

```yaml
meters:
    - name: my_pv
      type: template
      template: senec-connect
      usage: pv
      token: # Subscription key, Subscription key from the SENEC developer portal (sent as header `Ocp-Apim-Subscription-Key`).
      maxacpower: 0 # Maximum AC power of the hybrid inverter (W), optional
```

```yaml
meters:
    - name: my_battery
      type: template
      template: senec-connect
      usage: battery
      token: # Subscription key, Subscription key from the SENEC developer portal (sent as header `Ocp-Apim-Subscription-Key`).
      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)
```
