# Solarlog

Source: https://docs.evcc.io/en/meters/solarlog

We recommend to use this device for grid power values only, if no other device is available providing this data.
If you have a home battery installed, please do not use this device at all for grid power values.

## Parameters

| Name | Description | Default / example | |
| --- | --- | --- | --- |
| host | IP address or hostname | 192.0.2.2 |  |
| port | Port | 502 |  |

## Configuration example for evcc.yaml

```yaml
meters:
    - name: my_grid
      type: template
      template: solarlog
      usage: grid
      host: 192.0.2.2 # IP address or hostname
      port: 502 # Port, optional
```

```yaml
meters:
    - name: my_pv
      type: template
      template: solarlog
      usage: pv
      host: 192.0.2.2 # IP address or hostname
      port: 502 # Port, optional
```
