{
  "version": 2,
  "activePoll": 0,
  "polls": [],
  "gateway": {
    "endpoints": [
      {
        "id": "ep_sun2000",
        "name": "SUN2000",
        "type": "tcp",
        "host": "192.168.1.100",
        "port": 502,
        "timeout": 3000
      }
    ],
    "rows": [
      {
        "id": "row_1",
        "name": "PV power",
        "enabled": true,
        "endpointId": "ep_sun2000",
        "mode": "read",
        "srcUnit": 1,
        "srcRegType": "holdingRegisters",
        "srcAddr": 32064,
        "dataType": "int32",
        "wordOrder": "big",
        "scale": 0.001,
        "offset": 0,
        "pollInterval": 5000,
        "dstKind": "mqtt",
        "mqttTopic": "",
        "mqttUnit": "kW",
        "mqttClass": "power"
      },
      {
        "id": "row_2",
        "name": "Active power",
        "enabled": true,
        "endpointId": "ep_sun2000",
        "mode": "read",
        "srcUnit": 1,
        "srcRegType": "holdingRegisters",
        "srcAddr": 32080,
        "dataType": "int32",
        "wordOrder": "big",
        "scale": 0.001,
        "offset": 0,
        "pollInterval": 5000,
        "dstKind": "mqtt",
        "mqttTopic": "",
        "mqttUnit": "kW",
        "mqttClass": "power"
      },
      {
        "id": "row_3",
        "name": "Yield today",
        "enabled": true,
        "endpointId": "ep_sun2000",
        "mode": "read",
        "srcUnit": 1,
        "srcRegType": "holdingRegisters",
        "srcAddr": 32114,
        "dataType": "uint32",
        "wordOrder": "big",
        "scale": 0.01,
        "offset": 0,
        "pollInterval": 30000,
        "dstKind": "mqtt",
        "mqttTopic": "",
        "mqttUnit": "kWh",
        "mqttClass": "energy"
      },
      {
        "id": "row_4",
        "name": "Yield total",
        "enabled": true,
        "endpointId": "ep_sun2000",
        "mode": "read",
        "srcUnit": 1,
        "srcRegType": "holdingRegisters",
        "srcAddr": 32106,
        "dataType": "uint32",
        "wordOrder": "big",
        "scale": 0.01,
        "offset": 0,
        "pollInterval": 30000,
        "dstKind": "mqtt",
        "mqttTopic": "",
        "mqttUnit": "kWh",
        "mqttClass": "energy"
      },
      {
        "id": "row_5",
        "name": "Phase A voltage",
        "enabled": true,
        "endpointId": "ep_sun2000",
        "mode": "read",
        "srcUnit": 1,
        "srcRegType": "holdingRegisters",
        "srcAddr": 32069,
        "dataType": "uint16",
        "wordOrder": "big",
        "scale": 0.1,
        "offset": 0,
        "pollInterval": 10000,
        "dstKind": "mqtt",
        "mqttTopic": "",
        "mqttUnit": "V",
        "mqttClass": "voltage"
      },
      {
        "id": "row_6",
        "name": "Grid frequency",
        "enabled": true,
        "endpointId": "ep_sun2000",
        "mode": "read",
        "srcUnit": 1,
        "srcRegType": "holdingRegisters",
        "srcAddr": 32085,
        "dataType": "uint16",
        "wordOrder": "big",
        "scale": 0.01,
        "offset": 0,
        "pollInterval": 10000,
        "dstKind": "mqtt",
        "mqttTopic": "",
        "mqttUnit": "Hz",
        "mqttClass": "frequency"
      },
      {
        "id": "row_7",
        "name": "Inverter temperature",
        "enabled": true,
        "endpointId": "ep_sun2000",
        "mode": "read",
        "srcUnit": 1,
        "srcRegType": "holdingRegisters",
        "srcAddr": 32087,
        "dataType": "int16",
        "wordOrder": "big",
        "scale": 0.1,
        "offset": 0,
        "pollInterval": 30000,
        "dstKind": "mqtt",
        "mqttTopic": "",
        "mqttUnit": "°C",
        "mqttClass": "temperature"
      },
      {
        "id": "row_8",
        "name": "Efficiency",
        "enabled": true,
        "endpointId": "ep_sun2000",
        "mode": "read",
        "srcUnit": 1,
        "srcRegType": "holdingRegisters",
        "srcAddr": 32086,
        "dataType": "uint16",
        "wordOrder": "big",
        "scale": 0.01,
        "offset": 0,
        "pollInterval": 30000,
        "dstKind": "mqtt",
        "mqttTopic": "",
        "mqttUnit": "%",
        "mqttClass": ""
      },
      {
        "id": "row_9",
        "name": "Device status",
        "enabled": true,
        "endpointId": "ep_sun2000",
        "mode": "read",
        "srcUnit": 1,
        "srcRegType": "holdingRegisters",
        "srcAddr": 32089,
        "dataType": "uint16",
        "wordOrder": "big",
        "scale": 1,
        "offset": 0,
        "pollInterval": 10000,
        "dstKind": "mqtt",
        "mqttTopic": "",
        "mqttUnit": "",
        "mqttClass": ""
      },
      {
        "id": "row_10",
        "name": "Grid power (export +)",
        "enabled": true,
        "endpointId": "ep_sun2000",
        "mode": "read",
        "srcUnit": 1,
        "srcRegType": "holdingRegisters",
        "srcAddr": 37113,
        "dataType": "int32",
        "wordOrder": "big",
        "scale": 1,
        "offset": 0,
        "pollInterval": 5000,
        "dstKind": "mqtt",
        "mqttTopic": "",
        "mqttUnit": "W",
        "mqttClass": "power"
      },
      {
        "id": "row_11",
        "name": "Grid exported",
        "enabled": true,
        "endpointId": "ep_sun2000",
        "mode": "read",
        "srcUnit": 1,
        "srcRegType": "holdingRegisters",
        "srcAddr": 37119,
        "dataType": "int32",
        "wordOrder": "big",
        "scale": 0.01,
        "offset": 0,
        "pollInterval": 30000,
        "dstKind": "mqtt",
        "mqttTopic": "",
        "mqttUnit": "kWh",
        "mqttClass": "energy"
      },
      {
        "id": "row_12",
        "name": "Grid imported",
        "enabled": true,
        "endpointId": "ep_sun2000",
        "mode": "read",
        "srcUnit": 1,
        "srcRegType": "holdingRegisters",
        "srcAddr": 37121,
        "dataType": "int32",
        "wordOrder": "big",
        "scale": 0.01,
        "offset": 0,
        "pollInterval": 30000,
        "dstKind": "mqtt",
        "mqttTopic": "",
        "mqttUnit": "kWh",
        "mqttClass": "energy"
      },
      {
        "id": "row_13",
        "name": "Battery SOC",
        "enabled": false,
        "endpointId": "ep_sun2000",
        "mode": "read",
        "srcUnit": 1,
        "srcRegType": "holdingRegisters",
        "srcAddr": 37760,
        "dataType": "uint16",
        "wordOrder": "big",
        "scale": 0.1,
        "offset": 0,
        "pollInterval": 10000,
        "dstKind": "mqtt",
        "mqttTopic": "",
        "mqttUnit": "%",
        "mqttClass": "battery"
      },
      {
        "id": "row_14",
        "name": "Battery power (charge +)",
        "enabled": false,
        "endpointId": "ep_sun2000",
        "mode": "read",
        "srcUnit": 1,
        "srcRegType": "holdingRegisters",
        "srcAddr": 37765,
        "dataType": "int32",
        "wordOrder": "big",
        "scale": 1,
        "offset": 0,
        "pollInterval": 5000,
        "dstKind": "mqtt",
        "mqttTopic": "",
        "mqttUnit": "W",
        "mqttClass": "power"
      },
      {
        "id": "row_15",
        "name": "Battery charged total",
        "enabled": false,
        "endpointId": "ep_sun2000",
        "mode": "read",
        "srcUnit": 1,
        "srcRegType": "holdingRegisters",
        "srcAddr": 37780,
        "dataType": "uint32",
        "wordOrder": "big",
        "scale": 0.01,
        "offset": 0,
        "pollInterval": 30000,
        "dstKind": "mqtt",
        "mqttTopic": "",
        "mqttUnit": "kWh",
        "mqttClass": "energy"
      },
      {
        "id": "row_16",
        "name": "Battery discharged total",
        "enabled": false,
        "endpointId": "ep_sun2000",
        "mode": "read",
        "srcUnit": 1,
        "srcRegType": "holdingRegisters",
        "srcAddr": 37782,
        "dataType": "uint32",
        "wordOrder": "big",
        "scale": 0.01,
        "offset": 0,
        "pollInterval": 30000,
        "dstKind": "mqtt",
        "mqttTopic": "",
        "mqttUnit": "kWh",
        "mqttClass": "energy"
      }
    ],
    "plc": {
      "port": 5020
    },
    "autoStart": false,
    "s7Server": {
      "enabled": false,
      "port": 102,
      "allow": ""
    },
    "mqtt": {
      "enabled": true,
      "host": "",
      "port": 1883,
      "tls": false,
      "user": "",
      "base": "sun2000",
      "ha": true,
      "haPrefix": "homeassistant"
    }
  }
}