[ModBus Vorlage] WhatWatt

Kann mir hier jemand weiterhelfen ? Ich habe das Gateway installiert. Leider ist bisher jeder Versuch gescheitert eine Vorlage zu erstellen.

Die Doku zu WhatWatt ist hier : whatwatt_Go_Modbus_v1.0

Ich habe mittels KI versucht eine Vorlage zu erstellen, aber die ist leider ungültig.

{ „elements“:

[ { „name“: „Spannung L1“, „address“: 30000, „functionCode“: 4, „dataType“: 7, „profile“: „~Volt“ },

{ „name“: „Spannung L2“, „address“: 30002, „functionCode“: 4, „dataType“: 7, „profile“: „~Volt“ }, { „name“: „Spannung L3“, „address“: 30004, „functionCode“: 4, „dataType“: 7, „profile“: „~Volt“ }, { „name“: „Strom L1“, „address“: 30006, „functionCode“: 4, „dataType“: 7, „profile“: „~Ampere“ }, { „name“: „Strom L2“, „address“: 30008, „functionCode“: 4, „dataType“: 7, „profile“: „~Ampere“ }, { „name“: „Strom L3“, „address“: 30010, „functionCode“: 4, „dataType“: 7, „profile“: „~Ampere“ }, { „name“: „Wirkleistung L1“, „address“: 30012, „functionCode“: 4, „dataType“: 7, „profile“: „~Watt.3600“ }, { „name“: „Wirkleistung L2“, „address“: 30014, „functionCode“: 4, „dataType“: 7, „profile“: „~Watt.3600“ }, { „name“: „Wirkleistung L3“, „address“: 30016, „functionCode“: 4, „dataType“: 7, „profile“: „~Watt.3600“ }, { „name“: „Wirkleistung Gesamt“, „address“: 30052, „functionCode“: 4, „dataType“: 7, „profile“: „~Watt.3600“ }, { „name“: „Netzfrequenz“, „address“: 30070, „functionCode“: 4, „dataType“: 7, „profile“: „~Hertz“ }, { „name“: „Energie Import (Total)“, „address“: 30072, „functionCode“: 4, „dataType“: 7, „profile“: „~Electricity“ }, { „name“: „Energie Export (Total)“, „address“: 30074, „functionCode“: 4, „dataType“: 7, „profile“: „~Electricity“ } ] }

Vielleicht kann mir jemand auf die Sprünge helfen, damit ich das zum laufen bekomme. ModBus ist für mich absolutes Neuland.

Habe vorher noch MQTT versucht, aber da kam keine Verbindung zu stande.

Hi, try this:

{
    "Addresses": [
        {
            "Active": true,
            "ByteOrder": -1,
            "CustomFactor": 0,
            "DataType": 7,
            "Factor": 0,
            "Ident": "ww_p_imp_total_w",
            "Length": 0,
            "Name": "Active_Power_Import_Total",
            "Profile": "~Watt",
            "ReadAddress": 501,
            "ReadFunctionCode": 4,
            "Translation": [],
            "WriteAddress": 0,
            "WriteFunctionCode": 0
        },
        {
            "Active": true,
            "ByteOrder": -1,
            "CustomFactor": 0,
            "DataType": 7,
            "Factor": 0,
            "Ident": "",
            "Length": 0,
            "Name": "Active_Power_Export_Total",
            "Profile": "~Watt",
            "ReadAddress": 505,
            "ReadFunctionCode": 4,
            "Translation": [],
            "WriteAddress": 0,
            "WriteFunctionCode": 0
        },
        {
            "Active": true,
            "ByteOrder": -1,
            "CustomFactor": 0,
            "DataType": 7,
            "Factor": 0,
            "Ident": "ww_p_imp_l1_w",
            "Length": 0,
            "Name": "Active_Power_L1",
            "Profile": "~Watt",
            "ReadAddress": 25,
            "ReadFunctionCode": 4,
            "Translation": [],
            "WriteAddress": 0,
            "WriteFunctionCode": 0
        },
        {
            "Active": true,
            "ByteOrder": -1,
            "CustomFactor": 0,
            "DataType": 7,
            "Factor": 0,
            "Ident": "ww_p_imp_l2_w",
            "Length": 0,
            "Name": "Active_Power_L2",
            "Profile": "~Watt",
            "ReadAddress": 27,
            "ReadFunctionCode": 4,
            "Translation": [],
            "WriteAddress": 0,
            "WriteFunctionCode": 0
        },
        {
            "Active": true,
            "ByteOrder": -1,
            "CustomFactor": 0,
            "DataType": 7,
            "Factor": 0,
            "Ident": "ww_p_imp_l3_w",
            "Length": 0,
            "Name": "Active_Power_L3",
            "Profile": "~Watt",
            "ReadAddress": 29,
            "ReadFunctionCode": 4,
            "Translation": [],
            "WriteAddress": 0,
            "WriteFunctionCode": 0
        },
        {
            "Active": true,
            "ByteOrder": -1,
            "CustomFactor": 0,
            "DataType": 7,
            "Factor": 0,
            "Ident": "ww_i_l1_a",
            "Length": 0,
            "Name": "Current_L1",
            "Profile": "~Ampere",
            "ReadAddress": 13,
            "ReadFunctionCode": 4,
            "Translation": [],
            "WriteAddress": 0,
            "WriteFunctionCode": 0
        },
        {
            "Active": true,
            "ByteOrder": -1,
            "CustomFactor": 0,
            "DataType": 7,
            "Factor": 0,
            "Ident": "ww_i_l2_a",
            "Length": 0,
            "Name": "Current_L2",
            "Profile": "~Ampere",
            "ReadAddress": 15,
            "ReadFunctionCode": 4,
            "Translation": [],
            "WriteAddress": 0,
            "WriteFunctionCode": 0
        },
        {
            "Active": true,
            "ByteOrder": -1,
            "CustomFactor": 0,
            "DataType": 7,
            "Factor": 0,
            "Ident": "ww_i_l3_a",
            "Length": 0,
            "Name": "Current_L3",
            "Profile": "~Ampere",
            "ReadAddress": 17,
            "ReadFunctionCode": 4,
            "Translation": [],
            "WriteAddress": 0,
            "WriteFunctionCode": 0
        },
        {
            "Active": true,
            "ByteOrder": -1,
            "CustomFactor": 0,
            "DataType": 7,
            "Factor": 0,
            "Ident": "ww_u_l1_v",
            "Length": 0,
            "Name": "Voltage_L1",
            "Profile": "~Volt.230",
            "ReadAddress": 1,
            "ReadFunctionCode": 4,
            "Translation": [],
            "WriteAddress": 0,
            "WriteFunctionCode": 0
        },
        {
            "Active": true,
            "ByteOrder": -1,
            "CustomFactor": 0,
            "DataType": 7,
            "Factor": 0,
            "Ident": "ww_u_l2_v",
            "Length": 0,
            "Name": "Voltage_L2",
            "Profile": "~Volt.230",
            "ReadAddress": 3,
            "ReadFunctionCode": 4,
            "Translation": [],
            "WriteAddress": 0,
            "WriteFunctionCode": 0
        },
        {
            "Active": true,
            "ByteOrder": -1,
            "CustomFactor": 0,
            "DataType": 7,
            "Factor": 0,
            "Ident": "ww_u_l3_v",
            "Length": 0,
            "Name": "Voltage_L3",
            "Profile": "~Volt.230",
            "ReadAddress": 5,
            "ReadFunctionCode": 4,
            "Translation": [],
            "WriteAddress": 0,
            "WriteFunctionCode": 0
        },
        {
            "Active": true,
            "ByteOrder": -1,
            "CustomFactor": 0,
            "DataType": 7,
            "Factor": 0,
            "Ident": "ww_e_imp_total_wh",
            "Length": 0,
            "Name": "Active_Energy_Import_Total",
            "Profile": "~Electricity.Wh",
            "ReadAddress": 549,
            "ReadFunctionCode": 4,
            "Translation": [],
            "WriteAddress": 0,
            "WriteFunctionCode": 0
        },
        {
            "Active": true,
            "ByteOrder": -1,
            "CustomFactor": 0,
            "DataType": 9,
            "Factor": 0,
            "Ident": "ww_e_imp_t1_wh",
            "Length": 0,
            "Name": "Active_Energy_Import_T1",
            "Profile": "~Electricity.Wh",
            "ReadAddress": 801,
            "ReadFunctionCode": 4,
            "Translation": [],
            "WriteAddress": 0,
            "WriteFunctionCode": 0
        },
        {
            "Active": true,
            "ByteOrder": -1,
            "CustomFactor": 0,
            "DataType": 9,
            "Factor": 0,
            "Ident": "ww_e_imp_t2_wh",
            "Length": 0,
            "Name": "Active_Energy_Import_T2",
            "Profile": "~Electricity.Wh",
            "ReadAddress": 805,
            "ReadFunctionCode": 4,
            "Translation": [],
            "WriteAddress": 0,
            "WriteFunctionCode": 0
        },
        {
            "Active": true,
            "ByteOrder": -1,
            "CustomFactor": 0,
            "DataType": 7,
            "Factor": 0,
            "Ident": "ww_e_exp_total_wh",
            "Length": 0,
            "Name": "Active_Energy_Export_Total",
            "Profile": "~Electricity.Wh",
            "ReadAddress": 553,
            "ReadFunctionCode": 4,
            "Translation": [],
            "WriteAddress": 0,
            "WriteFunctionCode": 0
        },
        {
            "Active": true,
            "ByteOrder": -1,
            "CustomFactor": 0,
            "DataType": 9,
            "Factor": 0,
            "Ident": "ww_e_exp_t1_wh",
            "Length": 0,
            "Name": "Active_Energy_Export_T1",
            "Profile": "~Electricity.Wh",
            "ReadAddress": 809,
            "ReadFunctionCode": 4,
            "Translation": [],
            "WriteAddress": 0,
            "WriteFunctionCode": 0
        },
        {
            "Active": true,
            "ByteOrder": -1,
            "CustomFactor": 0,
            "DataType": 9,
            "Factor": 0,
            "Ident": "ww_e_exp_t2_wh",
            "Length": 0,
            "Name": "Active_Energy_Export_T2",
            "Profile": "~Electricity.Wh",
            "ReadAddress": 813,
            "ReadFunctionCode": 4,
            "Translation": [],
            "WriteAddress": 0,
            "WriteFunctionCode": 0
        }
    ],
    "ByteOrder": 0,
    "Profiles": {},
    "Requests": {
        "Interval": 5000
    },
    "VirtualAddresses": []
}
1 „Gefällt mir“

Die Firma WhatWatt war so freundlich das Template zu erstellen. Ich habe es getestet und es funktioniert. Nicht alle Werte sind im Template vorhanden, aber die wichtigsten Daten sind da.

Lob an WhatWatt für den Einsatz und schnelle Reaktion.

whatwhatt-modbus-symcom.json (7,8 KB)