[ { "id": "9fc0f809.f00518", "type": "tab", "label": "Kostal", "disabled": false, "info": "" }, { "id": "638fe75.9e0c298", "type": "inject", "z": "9fc0f809.f00518", "name": "5s Abfrage", "props": [ { "p": "payload" } ], "repeat": "10", "crontab": "", "once": true, "onceDelay": "0", "topic": "", "payload": "", "payloadType": "date", "x": 110, "y": 100, "wires": [ [ "983417a1d1b779b5" ] ] }, { "id": "aa2ccdef.a81888", "type": "modbus-getter", "z": "9fc0f809.f00518", "name": "100-150", "showStatusActivities": false, "showErrors": false, "logIOActivities": false, "unitid": "71", "dataType": "HoldingRegister", "adr": "100", "quantity": "100", "server": "b4cd9e0d.fcbb7", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "emptyMsgOnFail": false, "keepMsgProperties": false, "x": 300, "y": 160, "wires": [ [ "fa8ee63d.afaf18" ], [] ] }, { "id": "fa8ee63d.afaf18", "type": "buffer-parser", "z": "9fc0f809.f00518", "name": "", "data": "responseBuffer.buffer", "dataType": "msg", "specification": "spec", "specificationType": "ui", "items": [ { "type": "floatle", "name": "total_dc_power_w", "offset": 0, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "uint32le", "name": "enery_manager_state", "offset": 8, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "home_own_consumption_from_battery_w", "offset": 12, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "home_own_consumption_from_grid_w", "offset": 16, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "total_home_consumption_battery_wh", "offset": 20, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "total_home_consumption_grid_wh", "offset": 24, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "total_home_consumption_pv_wh", "offset": 28, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "home_own_consumption_from_pv_w", "offset": 32, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "total_home_consumption_wh", "offset": 36, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "isolation_resistance_ohm", "offset": 40, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "power_limit_from_evu_percent", "offset": 44, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "total_home_consumption_rate_percent", "offset": 48, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "worktime_s", "offset": 88, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "actual_cos_phi", "offset": 100, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" } ], "swap1": "swap16", "swap2": "", "swap3": "", "swap1Type": "swap", "swap2Type": "swap", "swap3Type": "swap", "msgProperty": "payload", "msgPropertyType": "str", "resultType": "keyvalue", "resultTypeType": "output", "multipleResult": false, "fanOutMultipleResult": false, "setTopic": true, "outputs": 1, "x": 530, "y": 160, "wires": [ [ "41fe61bffd6d0b49", "32d1d7f45d428573", "34b2f18076f13632", "267fb7a593b49fb6", "f38a469ab04e2e6c" ] ] }, { "id": "bbedcb67af9a9461", "type": "buffer-parser", "z": "9fc0f809.f00518", "name": "", "data": "responseBuffer.buffer", "dataType": "msg", "specification": "spec", "specificationType": "ui", "items": [ { "type": "floatle", "name": "current_phase_1_a", "offset": 8, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "active_power_phase_1_w", "offset": 12, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "voltage_phase_1_v", "offset": 16, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "current_phase_2_a", "offset": 20, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "active_power_phase_2_w", "offset": 24, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "voltage_phase_2_v", "offset": 28, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "current_phase_3_a", "offset": 32, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "active_power_phase_3_w", "offset": 36, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "voltage_phase_3_v", "offset": 40, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "total_ac_active_power_w", "offset": 44, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "total_ac_reactive_power_var", "offset": 48, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "total_ac_apparent_power_va", "offset": 56, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" } ], "swap1": "swap16", "swap2": "", "swap3": "", "swap1Type": "swap", "swap2Type": "swap", "swap3Type": "swap", "msgProperty": "payload", "msgPropertyType": "str", "resultType": "keyvalue", "resultTypeType": "output", "multipleResult": false, "fanOutMultipleResult": false, "setTopic": true, "outputs": 1, "x": 490, "y": 340, "wires": [ [ "668e7630c9238085", "ecc4fda4783f0b14", "473c6f373c7083d8", "044c268188c2cd3b", "7baed96214db668c", "9a415e39253841c5", "1118bcfdc174c47c", "defef7770122815d", "20bf24fad0ac9ccf", "20a95bbfced68ea8", "3defa567742b09b7", "d4cafc0a52946f0f", "570344abc82b95f2" ] ] }, { "id": "41fe61bffd6d0b49", "type": "modbus-getter", "z": "9fc0f809.f00518", "name": "150-200", "showStatusActivities": false, "showErrors": false, "logIOActivities": false, "unitid": "71", "dataType": "HoldingRegister", "adr": "150", "quantity": "100", "server": "b4cd9e0d.fcbb7", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "emptyMsgOnFail": false, "keepMsgProperties": false, "x": 300, "y": 340, "wires": [ [ "bbedcb67af9a9461" ], [] ] }, { "id": "668e7630c9238085", "type": "modbus-getter", "z": "9fc0f809.f00518", "name": "258 - 286", "showStatusActivities": false, "showErrors": false, "logIOActivities": false, "unitid": "71", "dataType": "HoldingRegister", "adr": "258", "quantity": "32", "server": "b4cd9e0d.fcbb7", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "emptyMsgOnFail": false, "keepMsgProperties": false, "x": 300, "y": 840, "wires": [ [ "49ea3575fb0bef46" ], [] ] }, { "id": "49ea3575fb0bef46", "type": "buffer-parser", "z": "9fc0f809.f00518", "name": "", "data": "responseBuffer.buffer", "dataType": "msg", "specification": "spec", "specificationType": "ui", "items": [ { "type": "floatle", "name": "current_dc1_a", "offset": 0, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "power_dc1_w", "offset": 4, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "voltage_dc1_v", "offset": 16, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "current_dc2_a", "offset": 20, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "power_dc2_w", "offset": 24, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "voltage_dc2_v", "offset": 36, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "current_dc3_a", "offset": 40, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "power_dc3_w", "offset": 44, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "voltage_dc3_v", "offset": 56, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" } ], "swap1": "swap16", "swap2": "", "swap3": "", "swap1Type": "swap", "swap2Type": "swap", "swap3Type": "swap", "msgProperty": "payload", "msgPropertyType": "str", "resultType": "keyvalue", "resultTypeType": "output", "multipleResult": false, "fanOutMultipleResult": false, "setTopic": true, "outputs": 1, "x": 530, "y": 840, "wires": [ [ "46622779e14d2413", "72f037ba613b39a9", "e2bfbd9abab4ef2e", "2d67d14cc4dc3924", "c2142b30fa717754", "62853048bd37c0e6", "1ff12516b73234fc", "e4364e53de4a7dcb", "293346b0e5b50dc8", "477dc76d3adf160a" ] ] }, { "id": "46622779e14d2413", "type": "modbus-getter", "z": "9fc0f809.f00518", "name": "320", "showStatusActivities": false, "showErrors": false, "logIOActivities": false, "unitid": "71", "dataType": "HoldingRegister", "adr": "320", "quantity": "8", "server": "b4cd9e0d.fcbb7", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "emptyMsgOnFail": false, "keepMsgProperties": false, "x": 290, "y": 1220, "wires": [ [ "da5337a48ccc37be" ], [] ] }, { "id": "da5337a48ccc37be", "type": "buffer-parser", "z": "9fc0f809.f00518", "name": "", "data": "responseBuffer.buffer", "dataType": "msg", "specification": "spec", "specificationType": "ui", "items": [ { "type": "floatle", "name": "total_yield_wh", "offset": 0, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "daily_yield_wh", "offset": 4, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "yearly_yield_wh", "offset": 8, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "monthly_yield_wh", "offset": 12, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" } ], "swap1": "swap16", "swap2": "", "swap3": "", "swap1Type": "swap", "swap2Type": "swap", "swap3Type": "swap", "msgProperty": "payload", "msgPropertyType": "str", "resultType": "keyvalue", "resultTypeType": "output", "multipleResult": false, "fanOutMultipleResult": false, "setTopic": true, "outputs": 1, "x": 530, "y": 1220, "wires": [ [ "59beeca26a300c13", "c6ac05974f4ec927", "4cbf16e512fe25ab", "359ccfad352e4983", "4bb36702896a2170" ] ] }, { "id": "59beeca26a300c13", "type": "modbus-getter", "z": "9fc0f809.f00518", "name": "1056", "showStatusActivities": false, "showErrors": false, "logIOActivities": false, "unitid": "71", "dataType": "HoldingRegister", "adr": "1056", "quantity": "12", "server": "b4cd9e0d.fcbb7", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "emptyMsgOnFail": false, "keepMsgProperties": false, "x": 290, "y": 1400, "wires": [ [ "914de8fab74d0c72" ], [] ] }, { "id": "914de8fab74d0c72", "type": "buffer-parser", "z": "9fc0f809.f00518", "name": "", "data": "responseBuffer.buffer", "dataType": "msg", "specification": "spec", "specificationType": "ui", "items": [ { "type": "floatle", "name": "total_dv_pv_energy_wh", "offset": 0, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "total_dc_energy_from_pv1_wh", "offset": 4, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "total_dc_energy_from_pv2_wh", "offset": 8, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "total_dc_energy_from_pv3_wh", "offset": 12, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "total_energy_ac_to_grid_wh", "offset": 16, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" }, { "type": "floatle", "name": "total_dc_power_w", "offset": 20, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" } ], "swap1": "swap16", "swap2": "", "swap3": "", "swap1Type": "swap", "swap2Type": "swap", "swap3Type": "swap", "msgProperty": "payload", "msgPropertyType": "str", "resultType": "keyvalue", "resultTypeType": "output", "multipleResult": false, "fanOutMultipleResult": false, "setTopic": true, "outputs": 1, "x": 530, "y": 1400, "wires": [ [ "5e42268347230b16", "fc2d06afaf12ba13", "cd789c5489bcb6e6", "c755aee3a23a050d", "eac73a30bd565acf", "36189255fbfeb494" ] ] }, { "id": "983417a1d1b779b5", "type": "modbus-getter", "z": "9fc0f809.f00518", "name": "56", "showStatusActivities": false, "showErrors": false, "logIOActivities": false, "unitid": "71", "dataType": "HoldingRegister", "adr": "56", "quantity": "1", "server": "b4cd9e0d.fcbb7", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "emptyMsgOnFail": false, "keepMsgProperties": false, "x": 290, "y": 100, "wires": [ [ "2f7ef918bf44abc0" ], [] ] }, { "id": "2f7ef918bf44abc0", "type": "buffer-parser", "z": "9fc0f809.f00518", "name": "", "data": "responseBuffer.buffer", "dataType": "msg", "specification": "spec", "specificationType": "ui", "items": [ { "type": "int8", "name": "inverter_state", "offset": 0, "length": 1, "offsetbit": 0, "scale": "1", "mask": "" } ], "swap1": "swap16", "swap2": "", "swap3": "", "swap1Type": "swap", "swap2Type": "swap", "swap3Type": "swap", "msgProperty": "payload", "msgPropertyType": "str", "resultType": "keyvalue", "resultTypeType": "output", "multipleResult": false, "fanOutMultipleResult": false, "setTopic": true, "outputs": 1, "x": 530, "y": 100, "wires": [ [ "aa2ccdef.a81888", "ef88c1ee59bfc592" ] ] }, { "id": "ef88c1ee59bfc592", "type": "function", "z": "9fc0f809.f00518", "name": "inverter_state", "func": "value = msg.payload.inverter_state\n\nmsg.payload = value\nmsg.label = \"inverter_state\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 760, "y": 100, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "32d1d7f45d428573", "type": "function", "z": "9fc0f809.f00518", "name": "total_dc_power_w", "func": "value = msg.payload.total_dc_power_w\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"total_dc_power_w\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 770, "y": 160, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "34b2f18076f13632", "type": "function", "z": "9fc0f809.f00518", "name": "isolation_resistance_ohm", "func": "value = msg.payload.isolation_resistance_ohm\n\nmsg.payload = value\nmsg.label = \"isolation_resistance_ohm\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 790, "y": 200, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "267fb7a593b49fb6", "type": "function", "z": "9fc0f809.f00518", "name": "worktime_s", "func": "value = msg.payload.worktime_s\n\nmsg.payload = value\nmsg.label = \"worktime_s\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 750, "y": 240, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "f38a469ab04e2e6c", "type": "function", "z": "9fc0f809.f00518", "name": "actual_cos_phi", "func": "value = msg.payload.actual_cos_phi\n\nmsg.payload = value\nmsg.label = \"actual_cos_phi\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 760, "y": 280, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "ecc4fda4783f0b14", "type": "function", "z": "9fc0f809.f00518", "name": "current_phase_1_a", "func": "value = msg.payload.current_phase_1_a\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"current_phase_1_a\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 770, "y": 340, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "473c6f373c7083d8", "type": "function", "z": "9fc0f809.f00518", "name": "active_power_phase_1_w", "func": "value = msg.payload.active_power_phase_1_w\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"active_power_phase_1_w\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 790, "y": 380, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "044c268188c2cd3b", "type": "function", "z": "9fc0f809.f00518", "name": "voltage_phase_1_v", "func": "value = msg.payload.voltage_phase_1_v\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"voltage_phase_1_v\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 770, "y": 420, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "7baed96214db668c", "type": "function", "z": "9fc0f809.f00518", "name": "current_phase_2_a", "func": "value = msg.payload.current_phase_2_a\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"current_phase_2_a\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 770, "y": 460, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "9a415e39253841c5", "type": "function", "z": "9fc0f809.f00518", "name": "active_power_phase_2_w", "func": "value = msg.payload.active_power_phase_2_w\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"active_power_phase_2_w\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 790, "y": 500, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "1118bcfdc174c47c", "type": "function", "z": "9fc0f809.f00518", "name": "voltage_phase_2_v", "func": "value = msg.payload.voltage_phase_2_v\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"voltage_phase_2_v\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 770, "y": 540, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "defef7770122815d", "type": "function", "z": "9fc0f809.f00518", "name": "current_phase_3_a", "func": "value = msg.payload.current_phase_3_a\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"current_phase_3_a\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 770, "y": 580, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "20bf24fad0ac9ccf", "type": "function", "z": "9fc0f809.f00518", "name": "active_power_phase_3_w", "func": "value = msg.payload.active_power_phase_3_w\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"active_power_phase_3_w\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 790, "y": 620, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "20a95bbfced68ea8", "type": "function", "z": "9fc0f809.f00518", "name": "voltage_phase_3_v", "func": "value = msg.payload.voltage_phase_3_v\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"voltage_phase_3_v\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 770, "y": 660, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "3defa567742b09b7", "type": "function", "z": "9fc0f809.f00518", "name": "total_ac_active_power_w", "func": "value = msg.payload.total_ac_active_power_w\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"total_ac_active_power_w\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 790, "y": 700, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "d4cafc0a52946f0f", "type": "function", "z": "9fc0f809.f00518", "name": "total_ac_reactive_power_var", "func": "value = msg.payload.total_ac_reactive_power_var\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"total_ac_reactive_power_var\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 800, "y": 740, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "570344abc82b95f2", "type": "function", "z": "9fc0f809.f00518", "name": "total_ac_apparent_power_va", "func": "value = msg.payload.total_ac_apparent_power_va\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"total_ac_apparent_power_va\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 800, "y": 780, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "72f037ba613b39a9", "type": "function", "z": "9fc0f809.f00518", "name": "current_dc1_a", "func": "value = msg.payload.current_dc1_a\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"current_dc1_a\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 760, "y": 840, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "e2bfbd9abab4ef2e", "type": "function", "z": "9fc0f809.f00518", "name": "power_dc1_w", "func": "value = msg.payload.power_dc1_w\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"power_dc1_w\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 760, "y": 880, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "2d67d14cc4dc3924", "type": "function", "z": "9fc0f809.f00518", "name": "voltage_dc1_v", "func": "value = msg.payload.voltage_dc1_v\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"voltage_dc1_v\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 760, "y": 920, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "c2142b30fa717754", "type": "function", "z": "9fc0f809.f00518", "name": "current_dc2_a", "func": "value = msg.payload.current_dc2_a\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"current_dc2_a\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 760, "y": 960, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "62853048bd37c0e6", "type": "function", "z": "9fc0f809.f00518", "name": "power_dc2_w", "func": "value = msg.payload.power_dc2_w\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"power_dc2_w\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 760, "y": 1000, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "1ff12516b73234fc", "type": "function", "z": "9fc0f809.f00518", "name": "voltage_dc2_v", "func": "value = msg.payload.voltage_dc2_v\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"voltage_dc2_v\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 760, "y": 1040, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "e4364e53de4a7dcb", "type": "function", "z": "9fc0f809.f00518", "name": "current_dc3_a", "func": "value = msg.payload.current_dc3_a\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"current_dc3_a\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 760, "y": 1080, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "293346b0e5b50dc8", "type": "function", "z": "9fc0f809.f00518", "name": "power_dc3_w", "func": "value = msg.payload.power_dc3_w\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"power_dc3_w\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 760, "y": 1120, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "477dc76d3adf160a", "type": "function", "z": "9fc0f809.f00518", "name": "voltage_dc3_v", "func": "value = msg.payload.voltage_dc3_v\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"voltage_dc3_v\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 760, "y": 1160, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "c6ac05974f4ec927", "type": "function", "z": "9fc0f809.f00518", "name": "total_yield_wh", "func": "value = msg.payload.total_yield_wh\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"total_yield_wh\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 760, "y": 1220, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "4cbf16e512fe25ab", "type": "function", "z": "9fc0f809.f00518", "name": "daily_yield_wh", "func": "value = msg.payload.daily_yield_wh\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"daily_yield_wh\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 760, "y": 1260, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "359ccfad352e4983", "type": "function", "z": "9fc0f809.f00518", "name": "yearly_yield_wh", "func": "value = msg.payload.yearly_yield_wh\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"yearly_yield_wh\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 760, "y": 1300, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "4bb36702896a2170", "type": "function", "z": "9fc0f809.f00518", "name": "total_yield_wh", "func": "value = msg.payload.monthly_yield_wh\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"monthly_yield_wh\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 760, "y": 1340, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "5e42268347230b16", "type": "function", "z": "9fc0f809.f00518", "name": "total_dv_pv_energy_wh", "func": "value = msg.payload.total_dv_pv_energy_wh\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"total_dv_pv_energy_wh\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 790, "y": 1400, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "fc2d06afaf12ba13", "type": "function", "z": "9fc0f809.f00518", "name": "total_dc_energy_from_pv1_wh", "func": "value = msg.payload.total_dc_energy_from_pv1_wh\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"total_dc_energy_from_pv1_wh\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 810, "y": 1440, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "cd789c5489bcb6e6", "type": "function", "z": "9fc0f809.f00518", "name": "total_dc_energy_from_pv2_wh", "func": "value = msg.payload.total_dc_energy_from_pv2_wh\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"total_dc_energy_from_pv2_wh\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 810, "y": 1480, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "c755aee3a23a050d", "type": "function", "z": "9fc0f809.f00518", "name": "total_dc_energy_from_pv3_wh", "func": "value = msg.payload.total_dc_energy_from_pv3_wh\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"total_dc_energy_from_pv3_wh\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 810, "y": 1520, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "eac73a30bd565acf", "type": "function", "z": "9fc0f809.f00518", "name": "total_energy_ac_to_grid_wh", "func": "value = msg.payload.total_energy_ac_to_grid_wh\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"total_energy_ac_to_grid_wh\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 800, "y": 1560, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "36189255fbfeb494", "type": "function", "z": "9fc0f809.f00518", "name": "total_dc_power_w", "func": "value = msg.payload.total_dc_power_w\n\nmsg.payload = parseFloat(value.toFixed(2))\nmsg.label = \"total_dc_power_w\"\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 770, "y": 1600, "wires": [ [ "3b222787dd334397" ] ] }, { "id": "3b222787dd334397", "type": "function", "z": "9fc0f809.f00518", "name": "collect", "func": "return msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1010, "y": 100, "wires": [ [ "b6947afa26dd6102", "51be8a2575bbaaeb" ] ] }, { "id": "b6947afa26dd6102", "type": "function", "z": "9fc0f809.f00518", "name": "set mqtt topic", "func": "msg.topic = \"pv/kostal/\" + msg.label\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1210, "y": 100, "wires": [ [ "04119df60f34c064" ] ] }, { "id": "51be8a2575bbaaeb", "type": "function", "z": "9fc0f809.f00518", "name": "parse2influx", "func": "value = Number(msg.payload)\n\nmsg.payload = {}\n\nmsg.payload[msg.label] = value\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1210, "y": 160, "wires": [ [ "99e4151df0676cb3" ] ] }, { "id": "04119df60f34c064", "type": "mqtt out", "z": "9fc0f809.f00518", "name": "", "topic": "", "qos": "", "retain": "", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "0b2c896eedbacc8f", "x": 1350, "y": 100, "wires": [] }, { "id": "99e4151df0676cb3", "type": "influxdb out", "z": "9fc0f809.f00518", "influxdb": "39ee5c70e3ab9231", "name": "Influx", "measurement": "kostal", "precision": "", "retentionPolicy": "", "database": "database", "precisionV18FluxV20": "ms", "retentionPolicyV18Flux": "", "org": "greinerlive", "bucket": "smarthome", "x": 1350, "y": 160, "wires": [] }, { "id": "b4cd9e0d.fcbb7", "type": "modbus-client", "name": "Kostal", "clienttype": "tcp", "bufferCommands": true, "stateLogEnabled": false, "queueLogEnabled": false, "tcpHost": "192.168.178.72", "tcpPort": "1502", "tcpType": "TPC-RTU-BUFFERED", "serialPort": "/dev/ttyUSB", "serialType": "RTU-BUFFERD", "serialBaudrate": "9600", "serialDatabits": "8", "serialStopbits": "1", "serialParity": "none", "serialConnectionDelay": "100", "serialAsciiResponseStartDelimiter": "", "unit_id": "71", "commandDelay": "200", "clientTimeout": "1000", "reconnectOnTimeout": true, "reconnectTimeout": "2000", "parallelUnitIdsAllowed": true }, { "id": "0b2c896eedbacc8f", "type": "mqtt-broker", "name": "Greiner.live", "broker": "Greiner.live", "port": "1883", "clientid": "nodered-ha", "autoConnect": true, "usetls": false, "protocolVersion": "4", "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "birthMsg": {}, "closeTopic": "", "closeQos": "0", "closePayload": "", "closeMsg": {}, "willTopic": "", "willQos": "0", "willPayload": "", "willMsg": {}, "sessionExpiry": "" }, { "id": "39ee5c70e3ab9231", "type": "influxdb", "hostname": "127.0.0.1", "port": "8086", "protocol": "http", "database": "database", "name": "Influx", "usetls": false, "tls": "", "influxdbVersion": "2.0", "url": "http://192.168.178.34:8086", "rejectUnauthorized": true } ]