# Matismart MPM4000

Bron: https://docs.evcc.io/nl/meters/matismart-mpm4000

Each of the four three-phase measuring circuits (X1 to X4) is configured as a separate meter, e.g. grid on X1 and charger on X2.

Wiring mode and current direction are configured on the device.

## Parameters

| Naam | Omschrijving | Standaard / voorbeeld | |
| --- | --- | --- | --- |
| modbus | Modbus Type (rs485, tcpip) |  |  |
| channel | Measuring circuit Measuring circuit X1 to X4 (1, 2, 3, 4) | 1 |  |

## Configuratievoorbeeld voor evcc.yaml

```yaml
meters:
    - name: my_grid
      type: template
      template: matismart-mpm4000
      usage: grid
      
      # RS485 via adapter (Modbus RTU)
      modbus: rs485serial
      id: 1
      device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
      baudrate: 9600 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
      comset: "8N1" # Kommunikationsparameter für den Adapter
      
      # RS485 via TCP/IP (Modbus RTU)
      modbus: rs485tcpip
      id: 1
      host:  # Hostname
      port: 502 # Port
      
      # Modbus TCP
      modbus: tcpip
      id: 1
      host:  # Hostname
      port: 502 # Port
      channel: 1 # Measuring circuit, Measuring circuit X1 to X4 [1, 2, 3, 4]
```

```yaml
meters:
    - name: my_pv
      type: template
      template: matismart-mpm4000
      usage: pv
      
      # RS485 via adapter (Modbus RTU)
      modbus: rs485serial
      id: 1
      device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
      baudrate: 9600 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
      comset: "8N1" # Kommunikationsparameter für den Adapter
      
      # RS485 via TCP/IP (Modbus RTU)
      modbus: rs485tcpip
      id: 1
      host:  # Hostname
      port: 502 # Port
      
      # Modbus TCP
      modbus: tcpip
      id: 1
      host:  # Hostname
      port: 502 # Port
      channel: 1 # Measuring circuit, Measuring circuit X1 to X4 [1, 2, 3, 4]
```

```yaml
meters:
    - name: my_charger
      type: template
      template: matismart-mpm4000
      usage: charge
      
      # RS485 via adapter (Modbus RTU)
      modbus: rs485serial
      id: 1
      device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
      baudrate: 9600 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
      comset: "8N1" # Kommunikationsparameter für den Adapter
      
      # RS485 via TCP/IP (Modbus RTU)
      modbus: rs485tcpip
      id: 1
      host:  # Hostname
      port: 502 # Port
      
      # Modbus TCP
      modbus: tcpip
      id: 1
      host:  # Hostname
      port: 502 # Port
      channel: 1 # Measuring circuit, Measuring circuit X1 to X4 [1, 2, 3, 4]
```

```yaml
meters:
    - name: my_aux
      type: template
      template: matismart-mpm4000
      usage: aux
      
      # RS485 via adapter (Modbus RTU)
      modbus: rs485serial
      id: 1
      device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
      baudrate: 9600 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
      comset: "8N1" # Kommunikationsparameter für den Adapter
      
      # RS485 via TCP/IP (Modbus RTU)
      modbus: rs485tcpip
      id: 1
      host:  # Hostname
      port: 502 # Port
      
      # Modbus TCP
      modbus: tcpip
      id: 1
      host:  # Hostname
      port: 502 # Port
      channel: 1 # Measuring circuit, Measuring circuit X1 to X4 [1, 2, 3, 4]
```
