[ { "id": "36ae66b997d3bee8", "type": "tab", "label": "Modbus TCP", "disabled": false, "info": "", "env": [] }, { "id": "53f1612d25657c83", "type": "comment", "z": "36ae66b997d3bee8", "name": "Anleitung Forum", "info": "[https://forum.iobroker.net/topic/51639/howto-huawei-sun2000-wr-modbus-mit-node-red-read-write]()", "x": 100, "y": 40, "wires": [] }, { "id": "61fb972167d70b02", "type": "comment", "z": "36ae66b997d3bee8", "name": "WR IP ändern", "info": "Rechts auf Konfiguration klicken\n\nDann \"Bei allen Flows\" aufklappen und die\nIP unter \"WLAN-FE\" eintragen", "x": 90, "y": 80, "wires": [] }, { "id": "e76e0121c98a115b", "type": "modbus-getter", "z": "36ae66b997d3bee8", "name": "32016-32114", "showStatusActivities": false, "showErrors": false, "showWarnings": true, "logIOActivities": false, "unitid": "1", "dataType": "HoldingRegister", "adr": "32016", "quantity": "100", "server": "d7d090b4955d4ad3", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "emptyMsgOnFail": false, "keepMsgProperties": false, "delayOnStart": false, "startDelayTime": "", "x": 230, "y": 160, "wires": [ [ "a728d7d2d683dd2c" ], [] ] }, { "id": "cb4b0d19bc6f7d49", "type": "inject", "z": "36ae66b997d3bee8", "name": "1m", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "60", "crontab": "", "once": true, "onceDelay": "5", "topic": "", "payload": "", "payloadType": "date", "x": 170, "y": 820, "wires": [ [ "e76e0121c98a115b" ] ] }, { "id": "456d1b8811a02e8a", "type": "comment", "z": "36ae66b997d3bee8", "name": "WR1 (ID1)", "info": "", "x": 220, "y": 120, "wires": [] }, { "id": "a728d7d2d683dd2c", "type": "buffer-parser", "z": "36ae66b997d3bee8", "name": "Inverter", "data": "payload", "dataType": "msg", "specification": "spec", "specificationType": "ui", "items": [ { "type": "int16be", "name": "32016 - PV1 voltage [V]", "offset": 0, "length": 1, "offsetbit": 0, "scale": "/10", "mask": "" }, { "type": "int16be", "name": "32017 - PV1 current [A]", "offset": 2, "length": 1, "offsetbit": 0, "scale": "/100", "mask": "" }, { "type": "int16be", "name": "32018 - PV2 voltage [V]", "offset": 4, "length": 1, "offsetbit": 0, "scale": "/10", "mask": "" }, { "type": "int16be", "name": "32019 - PV2 current [A]", "offset": 6, "length": 1, "offsetbit": 0, "scale": "/100", "mask": "" }, { "type": "int32be", "name": "32064 - Input power [kW]", "offset": 96, "length": 1, "offsetbit": 0, "scale": "/1000", "mask": "" }, { "type": "uint16be", "name": "32066 - Line voltage between phases A and B [V]", "offset": 100, "length": 1, "offsetbit": 0, "scale": "/10", "mask": "" }, { "type": "uint16be", "name": "32067 - Line voltage between phases B and C [V]", "offset": 102, "length": 1, "offsetbit": 0, "scale": "/10", "mask": "" }, { "type": "uint16be", "name": "32068 - Line voltage between phases C and A [V]", "offset": 104, "length": 1, "offsetbit": 0, "scale": "/10", "mask": "" }, { "type": "uint16be", "name": "32069 - Phase A voltage [V]", "offset": 106, "length": 1, "offsetbit": 0, "scale": "/10", "mask": "" }, { "type": "uint16be", "name": "32070 - Phase B voltage [V]", "offset": 108, "length": 1, "offsetbit": 0, "scale": "/10", "mask": "" }, { "type": "uint16be", "name": "32071 - Phase C voltage [V]", "offset": 110, "length": 1, "offsetbit": 0, "scale": "/10", "mask": "" }, { "type": "int32be", "name": "32072 - Phase A current [A]", "offset": 112, "length": 1, "offsetbit": 0, "scale": "/1000", "mask": "" }, { "type": "int32be", "name": "32074 - Phase B current [A]", "offset": 116, "length": 1, "offsetbit": 0, "scale": "/1000", "mask": "" }, { "type": "int32be", "name": "32076 - Phase C current [A]", "offset": 120, "length": 1, "offsetbit": 0, "scale": "/1000", "mask": "" }, { "type": "int32be", "name": "32078 - Peak active power of current day [kW]", "offset": 124, "length": 1, "offsetbit": 0, "scale": "/1000", "mask": "" }, { "type": "int32be", "name": "32080 - Active power [W]", "offset": 128, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "int32be", "name": "32082 - Reactive power [kVar]", "offset": 132, "length": 1, "offsetbit": 0, "scale": "/1000", "mask": "" }, { "type": "int16be", "name": "32084 - Power factor [N/A]", "offset": 136, "length": 1, "offsetbit": 0, "scale": "/1000", "mask": "" }, { "type": "uint16be", "name": "32085 - Grid frequency [Hz]", "offset": 138, "length": 1, "offsetbit": 0, "scale": "/100", "mask": "" }, { "type": "uint16be", "name": "32086 - Efficiency [%]", "offset": 140, "length": 1, "offsetbit": 0, "scale": "/100", "mask": "" }, { "type": "int16be", "name": "32087 - Internal temperature [°C]", "offset": 142, "length": 1, "offsetbit": 0, "scale": "/10", "mask": "" }, { "type": "uint16be", "name": "32088 - Insulation resistance [MΩ]", "offset": 144, "length": 1, "offsetbit": 0, "scale": "/1000", "mask": "" }, { "type": "uint16be", "name": "32089 - Device status [N/A]", "offset": 146, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "uint16be", "name": "32090 - Fault code [N/A]", "offset": 148, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "uint32be", "name": "32091 - Startup time [N/A]", "offset": 150, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "uint32be", "name": "32093 - Shutdown time [N/A]", "offset": 154, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "uint32be", "name": "32106 - Accumulated energy yield [kWh]", "offset": 180, "length": 1, "offsetbit": 0, "scale": "/100", "mask": "" }, { "type": "uint32be", "name": "32114 - Daily energy yield [kWh]", "offset": 196, "length": 1, "offsetbit": 0, "scale": "/100", "mask": "" } ], "swap1": "", "swap2": "", "swap3": "", "swap1Type": "swap", "swap2Type": "swap", "swap3Type": "swap", "msgProperty": "payload", "msgPropertyType": "str", "resultType": "value", "resultTypeType": "return", "multipleResult": true, "fanOutMultipleResult": true, "setTopic": true, "outputs": 28, "x": 820, "y": 760, "wires": [ [ "62b56d6d6791382b", "c0edd9111272d686" ], [ "57ed24d0bcbea0b8", "b199762f4ab3d1e0" ], [ "23fe565c498f0279", "5f88e697cf4bf629" ], [ "dcf27ba3aa59ae56", "cec420a6b6250c71" ], [ "4462bedaab050658" ], [ "3fcefff973592535" ], [ "85a65839aecd1ed1" ], [ "67a056e7fd2dc9f8" ], [ "c64331b9eb5122ef" ], [ "623474c2185c6a73" ], [ "6b813229f315c5c5" ], [ "5283f0e279c4e4d9" ], [ "0031b331c2b623a1" ], [ "c957b7aec2fef1b9" ], [ "05665d710a3a7617" ], [ "8d442046553629d6" ], [ "bf19fb0a090bd912" ], [ "99c803f19e3c712e" ], [ "04d822fd131ebe29" ], [ "a61762effe428c02" ], [ "c2aab896ce4aee80" ], [ "9f0bd9ae3e314311" ], [ "5920e494260cbbae" ], [ "c0b26557304d145f" ], [ "6ee1ca92b4cc5845" ], [ "77adafc530fb8b16" ], [ "3c6f4d1688dd6480" ], [ "1faffcd363dce017" ] ] }, { "id": "62b56d6d6791382b", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32016 - PV1 voltage [V]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.PV1_voltage", "ack": "true", "autoCreate": "true", "stateName": "PV1_voltage", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "V", "stateMin": "", "stateMax": "", "x": 1430, "y": 80, "wires": [] }, { "id": "57ed24d0bcbea0b8", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32017 - PV1 current [A]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.PV1_current", "ack": "true", "autoCreate": "true", "stateName": "PV1_current", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "A", "stateMin": "", "stateMax": "", "x": 1430, "y": 140, "wires": [] }, { "id": "23fe565c498f0279", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32018 - PV2 voltage [V]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.PV2_voltage", "ack": "true", "autoCreate": "true", "stateName": "PV2_voltage", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "V", "stateMin": "", "stateMax": "", "x": 1430, "y": 200, "wires": [] }, { "id": "dcf27ba3aa59ae56", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32019 - PV2 current [A]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.PV2_current", "ack": "true", "autoCreate": "true", "stateName": "PV2_current", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "A", "stateMin": "", "stateMax": "", "x": 1430, "y": 260, "wires": [] }, { "id": "4462bedaab050658", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32064 - Input power [kW]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Input_power", "ack": "true", "autoCreate": "true", "stateName": "Input_power", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "kW", "stateMin": "", "stateMax": "", "x": 1430, "y": 320, "wires": [] }, { "id": "67a056e7fd2dc9f8", "type": "ioBroker out", "z": "36ae66b997d3bee8", "d": true, "name": "32068 - Line voltage between phases C and A [V]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Line_voltage_between_phases_C_and_A", "ack": "true", "autoCreate": "true", "stateName": "Line_voltage_between_phases_C_and_A", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "V", "stateMin": "", "stateMax": "", "x": 1510, "y": 480, "wires": [] }, { "id": "85a65839aecd1ed1", "type": "ioBroker out", "z": "36ae66b997d3bee8", "d": true, "name": "32067 - Line voltage between phases B and C [V]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Line_voltage_between_phases_B_and_C", "ack": "true", "autoCreate": "true", "stateName": "Line_voltage_between_phases_B_and_C", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "V", "stateMin": "", "stateMax": "", "x": 1510, "y": 440, "wires": [] }, { "id": "c64331b9eb5122ef", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32069 - Phase A voltage [V]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Phase_A_voltage", "ack": "true", "autoCreate": "true", "stateName": "Phase_A_voltage", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "V", "stateMin": "", "stateMax": "", "x": 1440, "y": 560, "wires": [] }, { "id": "623474c2185c6a73", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32070 - Phase B voltage [V]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Phase_B_voltage", "ack": "true", "autoCreate": "true", "stateName": "Phase_B_voltage", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "V", "stateMin": "", "stateMax": "", "x": 1440, "y": 620, "wires": [] }, { "id": "6b813229f315c5c5", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32071 - Phase C voltage [V]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Phase_C_voltage", "ack": "true", "autoCreate": "true", "stateName": "Phase_C_voltage", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "V", "stateMin": "", "stateMax": "", "x": 1440, "y": 680, "wires": [] }, { "id": "5283f0e279c4e4d9", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32072 - Phase A current [A]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Phase_A_current", "ack": "true", "autoCreate": "true", "stateName": "Phase_A_current", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "A", "stateMin": "", "stateMax": "", "x": 1440, "y": 740, "wires": [] }, { "id": "0031b331c2b623a1", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32074 - Phase B current [A]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Phase_B_current", "ack": "true", "autoCreate": "true", "stateName": "Phase_B_current", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "A", "stateMin": "", "stateMax": "", "x": 1440, "y": 800, "wires": [] }, { "id": "c957b7aec2fef1b9", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32076 - Phase C current [A]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Phase_C_current", "ack": "true", "autoCreate": "true", "stateName": "Phase_C_current", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "A", "stateMin": "", "stateMax": "", "x": 1440, "y": 860, "wires": [] }, { "id": "05665d710a3a7617", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32078 - Peak active power of current day [kW]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Peak_active_power_of_current_day", "ack": "true", "autoCreate": "true", "stateName": "Peak_active_power_of_current_day", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "kW", "stateMin": "", "stateMax": "", "x": 1500, "y": 920, "wires": [] }, { "id": "99c803f19e3c712e", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32084 - Power factor [N/A]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Power_factor", "ack": "true", "autoCreate": "true", "stateName": "Power_factor", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1440, "y": 1100, "wires": [] }, { "id": "a61762effe428c02", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32086 - Efficiency [%]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Efficiency", "ack": "true", "autoCreate": "true", "stateName": "Efficiency", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "%", "stateMin": "", "stateMax": "", "x": 1420, "y": 1220, "wires": [] }, { "id": "9f0bd9ae3e314311", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32088 - Insulation resistance [MΩ]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Insulation_resistance", "ack": "true", "autoCreate": "true", "stateName": "Insulation_resistance", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "MΩ", "stateMin": "", "stateMax": "", "x": 1460, "y": 1340, "wires": [] }, { "id": "f16dcdea30ab4d79", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32089 - Device status [N/A]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Device_status", "ack": "true", "autoCreate": "true", "stateName": "Device_status", "role": "Power", "payloadType": "string", "readonly": "false", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1440, "y": 1400, "wires": [] }, { "id": "c2aab896ce4aee80", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32087 - Internal temperature [°C]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Internal_temperature", "ack": "true", "autoCreate": "true", "stateName": "Internal_temperature", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "°C", "stateMin": "", "stateMax": "", "x": 1460, "y": 1280, "wires": [] }, { "id": "04d822fd131ebe29", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32085 - Grid frequency [Hz]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Grid_frequency", "ack": "true", "autoCreate": "true", "stateName": "Grid_frequency", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "Hz", "stateMin": "", "stateMax": "", "x": 1440, "y": 1160, "wires": [] }, { "id": "8d442046553629d6", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32080 - Active power [W]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Active_power", "ack": "true", "autoCreate": "true", "stateName": "Active_power", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "W", "stateMin": "", "stateMax": "", "x": 1430, "y": 980, "wires": [] }, { "id": "bf19fb0a090bd912", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32082 - Reactive power [kVar]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Reactive_power", "ack": "true", "autoCreate": "true", "stateName": "Reactive_power", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "kVar", "stateMin": "", "stateMax": "", "x": 1450, "y": 1040, "wires": [] }, { "id": "c0b26557304d145f", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32090 - Fault code [N/A]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Fault_code", "ack": "true", "autoCreate": "true", "stateName": "Fault_code", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1430, "y": 1460, "wires": [] }, { "id": "cc85ae37d3361968", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32091 - Startup time [date]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Startup_time", "ack": "true", "autoCreate": "true", "stateName": "Startup_time", "role": "Power", "payloadType": "string", "readonly": "false", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1440, "y": 1520, "wires": [] }, { "id": "f7fc2b08de967d4c", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32093 - Shutdown time [date]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Shutdown_time", "ack": "true", "autoCreate": "true", "stateName": "Shutdown_time", "role": "Power", "payloadType": "string", "readonly": "false", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1440, "y": 1580, "wires": [] }, { "id": "3c6f4d1688dd6480", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32106 - Accumulated energy yield [kWh]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Accumulated_energy_yield", "ack": "true", "autoCreate": "true", "stateName": "Accumulated_energy_yield", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "kW", "stateMin": "", "stateMax": "", "x": 1480, "y": 1640, "wires": [] }, { "id": "1faffcd363dce017", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "32114 - Daily energy yield [kWh]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Daily_energy_yield", "ack": "true", "autoCreate": "true", "stateName": "Daily_energy_yield", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "kW", "stateMin": "", "stateMax": "", "x": 1450, "y": 1700, "wires": [] }, { "id": "afc6f1c9e5f78899", "type": "change", "z": "36ae66b997d3bee8", "name": "Time/Date (UTC)", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$moment(msg.payload*1000).locale(\"de\").utc().format('kk:mm [Uhr] (dddd, DD.MM.YYYY)')", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1150, "y": 1580, "wires": [ [ "f7fc2b08de967d4c" ] ] }, { "id": "bec97877a559d50b", "type": "change", "z": "36ae66b997d3bee8", "name": "Time/Date (UTC)", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$moment(msg.payload*1000).locale(\"de\").utc().format('kk:mm [Uhr] (dddd, DD.MM.YYYY)')", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1150, "y": 1480, "wires": [ [ "cc85ae37d3361968" ] ] }, { "id": "6ee1ca92b4cc5845", "type": "switch", "z": "36ae66b997d3bee8", "name": "Gültige Uhrzeit?", "property": "payload", "propertyType": "msg", "rules": [ { "t": "neq", "v": "0xffffffff", "vt": "str" }, { "t": "eq", "v": "0xffffffff", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 960, "y": 1500, "wires": [ [ "bec97877a559d50b" ], [ "4019b49adb0a9050" ] ] }, { "id": "4019b49adb0a9050", "type": "change", "z": "36ae66b997d3bee8", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "--", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1150, "y": 1520, "wires": [ [ "cc85ae37d3361968" ] ] }, { "id": "77adafc530fb8b16", "type": "switch", "z": "36ae66b997d3bee8", "name": "Gültige Uhrzeit?", "property": "payload", "propertyType": "msg", "rules": [ { "t": "neq", "v": "0xffffffff", "vt": "str" }, { "t": "eq", "v": "0xffffffff", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 960, "y": 1600, "wires": [ [ "afc6f1c9e5f78899" ], [ "cb1b1367e2ca6302" ] ] }, { "id": "cb1b1367e2ca6302", "type": "change", "z": "36ae66b997d3bee8", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "--", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1150, "y": 1620, "wires": [ [ "f7fc2b08de967d4c" ] ] }, { "id": "5920e494260cbbae", "type": "function", "z": "36ae66b997d3bee8", "name": "Device status Text", "func": "\nswitch (parseInt(msg.payload)) {\n case 0x0000:\n msg.payload = \"Standby: initializing\";\n break;\n case 0x0001:\n msg.payload = \"Standby: detecting insulation resistance\";\n break;\n case 0x0002:\n msg.payload = \"Standby: detecting irradiation\";\n break;\n case 0x0003:\n msg.payload = \"Standby: drid detecting\";\n break;\n case 0x0100:\n msg.payload = \"Starting\";\n break;\n case 0x0200:\n msg.payload = \"On-grid\";\n break;\n case 0x0201:\n msg.payload = \"Grid connection: power limited\";\n break;\n case 0x0202:\n msg.payload = \"Grid connection: self-derating\";\n break;\n case 0x0203:\n msg.payload = \"Off-grid Running\";\n break;\n case 0x0300:\n msg.payload = \"Shutdown: fault\";\n break;\n case 0x0301:\n msg.payload = \"Shutdown: command\";\n break;\n case 0x0302:\n msg.payload = \"Shutdown: OVGR\";\n break;\n case 0x0303:\n msg.payload = \"Shutdown: communication disconnected\";\n break;\n case 0x0304:\n msg.payload = \"Shutdown: power limited\";\n break;\n case 0x0305:\n msg.payload = \"Shutdown: manual startup required\";\n break;\n case 0x0306:\n msg.payload = \"Shutdown: DC switches disconnected\";\n break;\n case 0x0307:\n msg.payload = \"Shutdown: rapid cutoff\";\n break;\n case 0x0308:\n msg.payload = \"Shutdown: input underpower\";\n break;\n case 0x0401:\n msg.payload = \"Grid scheduling: cosφ-P curve\";\n break;\n case 0x0402:\n msg.payload = \"Grid scheduling: Q-U curve\";\n break;\n case 0x0403:\n msg.payload = \"Grid scheduling: PF-U curve\";\n break;\n case 0x0404:\n msg.payload = \"Grid scheduling: dry contact\";\n break;\n case 0x0405:\n msg.payload = \"Grid scheduling: Q-P curve\";\n break;\n case 0x0500:\n msg.payload = \"Spot-check ready\";\n break;\n case 0x0501:\n msg.payload = \"Spot-checking\";\n break;\n case 0x0600:\n msg.payload = \"Inspecting\";\n break;\n case 0x0700:\n msg.payload = \"AFCI self check\";\n break;\n case 0x0800:\n msg.payload = \"I-V scanning\";\n break;\n case 0x0900:\n msg.payload = \"DC input detection\";\n break;\n case 0x0A00:\n msg.payload = \"Running: off-grid charging\";\n break;\n case 0xA000:\n msg.payload = \"Standby: no irradiation\";\n break; \n default:\n msg.payload = \"shed unknown sensor\";\n}\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1150, "y": 1400, "wires": [ [ "f16dcdea30ab4d79" ] ] }, { "id": "3fcefff973592535", "type": "ioBroker out", "z": "36ae66b997d3bee8", "d": true, "name": "32066 - Line voltage between phases A and B [V]", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.Line_voltage_between_phases_A_and_B", "ack": "true", "autoCreate": "true", "stateName": "Line_voltage_between_phases_A_and_B", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "V", "stateMin": "", "stateMax": "", "x": 1510, "y": 400, "wires": [] }, { "id": "dccafbfa16ade279", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "PV_Gaube W", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.PV_Gaube_W", "ack": "true", "autoCreate": "true", "stateName": "Huawei", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "W", "stateMin": "0", "stateMax": "13000", "x": 2210, "y": 180, "wires": [] }, { "id": "c0edd9111272d686", "type": "change", "z": "36ae66b997d3bee8", "name": "topic: Voltage", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "Voltage", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1680, "y": 60, "wires": [ [ "ca5cb0808fb39b64" ] ] }, { "id": "b199762f4ab3d1e0", "type": "change", "z": "36ae66b997d3bee8", "name": "topic: Current", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "Current", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1680, "y": 100, "wires": [ [ "ca5cb0808fb39b64" ] ] }, { "id": "ca5cb0808fb39b64", "type": "join", "z": "36ae66b997d3bee8", "name": "", "mode": "custom", "build": "object", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "2", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 1890, "y": 60, "wires": [ [ "68ce73f20f8f676f" ] ] }, { "id": "68ce73f20f8f676f", "type": "change", "z": "36ae66b997d3bee8", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.Voltage * payload.Current", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1990, "y": 100, "wires": [ [ "b3a1fa25c925a453" ] ] }, { "id": "b3a1fa25c925a453", "type": "calculator", "z": "36ae66b997d3bee8", "name": "", "inputMsgField": "payload", "outputMsgField": "payload", "operation": "floor", "constant": "", "round": true, "decimals": 0, "x": 2110, "y": 140, "wires": [ [ "dccafbfa16ade279" ] ] }, { "id": "ea07659dfb86b70a", "type": "ioBroker out", "z": "36ae66b997d3bee8", "name": "PV_Strasse W", "topic": "0_userdata.0.Photovoltaik.Huawei.Inverter1.PV_Strasse_W", "ack": "true", "autoCreate": "true", "stateName": "Huawei", "role": "Power", "payloadType": "number", "readonly": "false", "stateUnit": "W", "stateMin": "0", "stateMax": "13000", "x": 2220, "y": 300, "wires": [] }, { "id": "5f88e697cf4bf629", "type": "change", "z": "36ae66b997d3bee8", "name": "topic: Voltage", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "Voltage", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1680, "y": 180, "wires": [ [ "2fa32452e17d114d" ] ] }, { "id": "cec420a6b6250c71", "type": "change", "z": "36ae66b997d3bee8", "name": "topic: Current", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "Current", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1680, "y": 220, "wires": [ [ "2fa32452e17d114d" ] ] }, { "id": "2fa32452e17d114d", "type": "join", "z": "36ae66b997d3bee8", "name": "", "mode": "custom", "build": "object", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "2", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 1890, "y": 180, "wires": [ [ "a0bbe25aaf50b57a" ] ] }, { "id": "a0bbe25aaf50b57a", "type": "change", "z": "36ae66b997d3bee8", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.Voltage * payload.Current", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1990, "y": 220, "wires": [ [ "bd88b0376d85e6d0" ] ] }, { "id": "bd88b0376d85e6d0", "type": "calculator", "z": "36ae66b997d3bee8", "name": "", "inputMsgField": "payload", "outputMsgField": "payload", "operation": "floor", "constant": "", "round": true, "decimals": 0, "x": 2110, "y": 260, "wires": [ [ "ea07659dfb86b70a" ] ] }, { "id": "d7d090b4955d4ad3", "type": "modbus-client", "name": "WLAN-FE", "clienttype": "tcp", "bufferCommands": true, "stateLogEnabled": false, "queueLogEnabled": false, "failureLogEnabled": false, "tcpHost": "192.168.178.66", "tcpPort": "502", "tcpType": "DEFAULT", "serialPort": "/dev/ttyUSB", "serialType": "RTU-BUFFERD", "serialBaudrate": "9600", "serialDatabits": "8", "serialStopbits": "1", "serialParity": "none", "serialConnectionDelay": "100", "serialAsciiResponseStartDelimiter": "", "unit_id": "1", "commandDelay": "1", "clientTimeout": "5000", "reconnectOnTimeout": true, "reconnectTimeout": "2000", "parallelUnitIdsAllowed": true } ]