Zum Inhalt

SMA Wechselrichter Integration

Unterstützte Modelle

  • Sunny Boy
  • Sunny Tripower
  • Sunny Island
  • Sunny Central

Kommunikationsprotokolle

  1. Webconnect
  2. REST API
  3. JSON Datenformat
  4. HTTPS Verschlüsselung

  5. Modbus TCP

  6. Port 502
  7. Sunspec konform
  8. Echtzeit-Daten

Konfiguration

Webconnect

const smaConfig = {
  ip: "192.168.1.100",
  port: 80,
  username: "user",
  password: "pass",
  protocol: "http"
};

Modbus TCP

const smaModbusConfig = {
  ip: "192.168.1.100",
  port: 502,
  unitId: 3,
  timeout: 5000
};

Datenmodell

interface SMAData {
  power: {
    current: number;    // Watt
    daily: number;      // kWh
    total: number;      // kWh
  };
  voltage: {
    l1: number;        // Volt
    l2: number;        // Volt
    l3: number;        // Volt
  };
  status: string;      // "Running" | "Error" | "Standby"
  temperature: number; // Celsius
}

Fehlercodes

Code Beschreibung Lösung
101 Netzfehler Netzparameter prüfen
301 Überspannung Automatischer Neustart
401 Gerätekühlung Lüfter reinigen
501 Isolationsfehler Installation prüfen