# FRITZ! FRITZ!Smart Energy 200

Source: https://docs.evcc.io/en/meters/fritz-fritz-smart-energy-200

## Parameters

| Name | Description | Default / example | |
| --- | --- | --- | --- |
| user | Username e.g. email address, user id, etc. |  |  |
| password | Password Service account password |  |  |
| ain | Actor Identification Number (AIN) Printed on the type label on the back of the device. | 307788992233 |  |
| uri | URI HTTP(S) address | https://fritz.box |  |
| firmware82 | Use new REST API (FritzOS 8.2+) Use the new REST API for FritzOS version 8.2 and later |  | advanced |
| unit | Unit Unit index for multi-unit devices (REST API only) | 1 | advanced |

## Configuration example for evcc.yaml

```yaml
meters:
    - name: my_pv
      type: template
      template: fritzdect
      usage: pv
      user: # Username, e.g. email address, user id, etc.
      password: # Password, Service account password
      ain: 307788992233 # Actor Identification Number (AIN), Printed on the type label on the back of the device.
      uri: https://fritz.box # URI, HTTP(S) address (optional)
      firmware82: # Use new REST API (FritzOS 8.2+), Use the new REST API for FritzOS version 8.2 and later (optional)
      unit: 1 # Unit, Unit index for multi-unit devices (REST API only) (optional)
```

```yaml
meters:
    - name: my_charger
      type: template
      template: fritzdect
      usage: charge
      user: # Username, e.g. email address, user id, etc.
      password: # Password, Service account password
      ain: 307788992233 # Actor Identification Number (AIN), Printed on the type label on the back of the device.
      uri: https://fritz.box # URI, HTTP(S) address (optional)
      firmware82: # Use new REST API (FritzOS 8.2+), Use the new REST API for FritzOS version 8.2 and later (optional)
      unit: 1 # Unit, Unit index for multi-unit devices (REST API only) (optional)
```
