# Kostal Smart Energy Meter (via inverter)

Source: https://docs.evcc.io/en/meters/kostal-smart-energy-meter-via-inverter

The energy meter must be installed in sensor position 2 (grid connection). Sensor position 1 (House consumption) is not supported.

## Parameters

| Name | Description | Default / example | |
| --- | --- | --- | --- |
| modbus | Modbus Type (tcpip) |  |  |

## Configuration example for evcc.yaml

```yaml
meters:
    - name: my_grid
      type: template
      template: kostal-ksem-inverter
      usage: grid
      
      # Modbus TCP
      modbus: tcpip
      id: 71
      host:  # Hostname
      port: 1502 # Port
```
