# Huawei SUN2000 & Smart Dongle

Kilde: https://docs.evcc.io/da/external-limit/huawei-sun2000-and-smart-dongle

Curtailment limits feed-in power to the desired percentage of the maximum AC power of the connected inverters. In case no meter (DDSU/DTSU666 or SmartPS) is installed at the feed-in point, the inverter power is limited rather than the feed-in power.

In case a Huawei SmartAssistant (EMMA) is employed, the corresponding EMMA feed-in limitation device must be used.

## Parametre

| Navn | Beskrivelse | Standard / eksempel | |
| --- | --- | --- | --- |
| modbus | Modbus Type (rs485, tcpip) |  |  |

## Konfigurationseksempel til evcc.yaml

```yaml
curtailers:
    - name: my_curtailer
      type: template
      template: huawei-sun2000-sdongle
      
      # 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
      timeout: 5s # optional
      
      # RS485 via TCP/IP (Modbus RTU)
      modbus: rs485tcpip
      id: 1
      host:  # Hostname
      port: 502 # Port
      timeout: 5s # optional
      
      # Modbus TCP
      modbus: tcpip
      id: 1
      host:  # Hostname
      port: 502 # Port
      timeout: 5s # optional
```
