[
    {
        "id": "cf7b99f9.447d",
        "type": "tab",
        "label": "Stromzahler auslesen",
        "disabled": false,
        "info": ""
    },
    {
        "id": "ed6ed80.df9a428",
        "type": "tab",
        "label": "PV Anlage",
        "disabled": false,
        "info": ""
    },
    {
        "id": "e153c63a.74d3e8",
        "type": "tab",
        "label": "Wetterdaten DWD",
        "disabled": false,
        "info": ""
    },
    {
        "id": "10e88481.cdf323",
        "type": "tab",
        "label": "Preise",
        "disabled": false,
        "info": ""
    },
    {
        "id": "3e9293cc.d32c1c",
        "type": "subflow",
        "name": "Subflow 1",
        "info": "",
        "in": [],
        "out": []
    },
    {
        "id": "69cc4d30.df0644",
        "type": "smartmeter-connection",
        "z": "",
        "sourcetype": "serial",
        "serialport": "/dev/ttyUSB0",
        "serialbaud": "9600",
        "databits": "8",
        "parity": "none",
        "stopbits": "1",
        "httphost": "localhost",
        "httpport": "80",
        "tcphost": "localhost",
        "tcpport": "502",
        "filepath": "/dev/null"
    },
    {
        "id": "63ab7f84.1c3b28",
        "type": "ui_base",
        "theme": {
            "name": "theme-custom",
            "lightTheme": {
                "default": "#0094CE",
                "baseColor": "#0094CE",
                "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
                "edited": true,
                "reset": false
            },
            "darkTheme": {
                "default": "#097479",
                "baseColor": "#097479",
                "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
                "edited": true,
                "reset": false
            },
            "customTheme": {
                "name": "Eigene",
                "default": "#4B7930",
                "baseColor": "#ffffff",
                "baseFont": "Arial,Arial,Helvetica,sans-serif",
                "reset": false
            },
            "themeState": {
                "base-color": {
                    "default": "#4B7930",
                    "value": "#ffffff",
                    "edited": true
                },
                "page-titlebar-backgroundColor": {
                    "value": "#000000",
                    "edited": true
                },
                "page-backgroundColor": {
                    "value": "#fafafa",
                    "edited": false
                },
                "page-sidebar-backgroundColor": {
                    "value": "#c0c0c0",
                    "edited": true
                },
                "group-textColor": {
                    "value": "#000000",
                    "edited": true
                },
                "group-borderColor": {
                    "value": "#000000",
                    "edited": true
                },
                "group-backgroundColor": {
                    "value": "#ffffff",
                    "edited": true
                },
                "widget-textColor": {
                    "value": "#000000",
                    "edited": true
                },
                "widget-backgroundColor": {
                    "value": "#c0c0c0",
                    "edited": true
                },
                "widget-borderColor": {
                    "value": "#ffffff",
                    "edited": true
                },
                "base-font": {
                    "value": "Arial,Arial,Helvetica,sans-serif"
                }
            },
            "angularTheme": {
                "primary": "indigo",
                "accents": "blue",
                "warn": "red",
                "background": "grey"
            }
        },
        "site": {
            "name": "Stromzähler auslesen - Stromverbrauch",
            "hideToolbar": "false",
            "allowSwipe": "false",
            "lockMenu": "false",
            "allowTempTheme": "true",
            "dateFormat": "DD/MM/YYYY",
            "sizes": {
                "sx": 48,
                "sy": 48,
                "gx": 6,
                "gy": 6,
                "cx": 6,
                "cy": 6,
                "px": 0,
                "py": 0
            }
        }
    },
    {
        "id": "9128ecaa.cd4f2",
        "type": "ui_tab",
        "z": "",
        "name": "Stromzähler",
        "icon": "wb_incandescent",
        "order": 2,
        "disabled": false,
        "hidden": false
    },
    {
        "id": "6cca4a70.722064",
        "type": "ui_group",
        "z": "",
        "name": "Zähler Z1",
        "tab": "9128ecaa.cd4f2",
        "order": 1,
        "disp": true,
        "width": 6,
        "collapse": false
    },
    {
        "id": "30d49162.30797e",
        "type": "ui_group",
        "z": "",
        "name": "Zähler Z2",
        "tab": "9128ecaa.cd4f2",
        "order": 2,
        "disp": true,
        "width": 6,
        "collapse": false
    },
    {
        "id": "ed8dcbb1.e5be2",
        "type": "ui_group",
        "name": "Group 1",
        "tab": "",
        "order": 1,
        "disp": true,
        "width": 6
    },
    {
        "id": "6d92ae39.7ab42",
        "type": "ui_group",
        "z": "",
        "name": "Group 1",
        "tab": "b9190bbe.d762b8",
        "order": 1,
        "disp": false,
        "width": 8,
        "collapse": false
    },
    {
        "id": "699635dd.1b66d4",
        "type": "ui_group",
        "z": "",
        "name": "Group 3",
        "tab": "b9190bbe.d762b8",
        "order": 3,
        "disp": false,
        "width": 12,
        "collapse": false
    },
    {
        "id": "1021fa52.20344e",
        "type": "ui_group",
        "z": "",
        "name": "Wetter allgemein",
        "tab": "84dd7c24.c98168",
        "order": 2,
        "disp": false,
        "width": 6,
        "collapse": false
    },
    {
        "id": "18e8a64b.dcbbb2",
        "type": "ui_group",
        "z": "",
        "name": "Vorhersage heute",
        "tab": "84dd7c24.c98168",
        "order": 3,
        "disp": false,
        "width": 6,
        "collapse": false
    },
    {
        "id": "1bc7fc8f.e3c6c3",
        "type": "ui_group",
        "z": "",
        "name": "Vorhersage morgen",
        "tab": "84dd7c24.c98168",
        "order": 4,
        "disp": false,
        "width": 6,
        "collapse": false
    },
    {
        "id": "a418b35.278d05",
        "type": "ui_group",
        "z": "",
        "name": "Group 2",
        "tab": "b9190bbe.d762b8",
        "order": 2,
        "disp": false,
        "width": 8,
        "collapse": false
    },
    {
        "id": "b9190bbe.d762b8",
        "type": "ui_tab",
        "z": "",
        "name": "DWD Voraussage Michelstadt",
        "icon": "cloud",
        "order": 3,
        "disabled": false,
        "hidden": false
    },
    {
        "id": "84dd7c24.c98168",
        "type": "ui_tab",
        "z": "",
        "name": "Übersicht",
        "icon": "home",
        "order": 1,
        "disabled": false,
        "hidden": false
    },
    {
        "id": "e5ae79b5.73b52",
        "type": "serial-port",
        "z": "",
        "serialport": "",
        "serialbaud": "9600",
        "databits": "8",
        "parity": "none",
        "stopbits": "1",
        "waitfor": "",
        "dtr": "none",
        "rts": "none",
        "cts": "none",
        "dsr": "none",
        "newline": "\\n",
        "bin": "false",
        "out": "char",
        "addchar": "",
        "responsetimeout": "10000"
    },
    {
        "id": "717c57e6.db3908",
        "type": "smartmeter-connection",
        "z": "",
        "sourcetype": "serial",
        "serialport": "/dev/ttyUSB1",
        "serialbaud": "9600",
        "databits": "8",
        "parity": "none",
        "stopbits": "1",
        "httphost": "localhost",
        "httpport": "80",
        "tcphost": "localhost",
        "tcpport": "502",
        "filepath": "/dev/null"
    },
    {
        "id": "53fdfb9f.f040d4",
        "type": "ui_group",
        "z": "",
        "name": "Ergebnisse",
        "tab": "9128ecaa.cd4f2",
        "order": 4,
        "disp": true,
        "width": 7,
        "collapse": false
    },
    {
        "id": "1184433f.95098d",
        "type": "ui_tab",
        "z": "",
        "name": "Preise und Einstellungen",
        "icon": "settings",
        "order": 4,
        "disabled": false,
        "hidden": false
    },
    {
        "id": "d2aef4a.24da008",
        "type": "ui_group",
        "z": "",
        "name": "Preise",
        "tab": "1184433f.95098d",
        "order": 1,
        "disp": true,
        "width": 8,
        "collapse": false
    },
    {
        "id": "5b4272b6.d2c704",
        "type": "ui_group",
        "z": "",
        "name": "Kosten / Vergütung",
        "tab": "9128ecaa.cd4f2",
        "order": 5,
        "disp": true,
        "width": 7,
        "collapse": false
    },
    {
        "id": "a46f6674.a02528",
        "type": "ui_group",
        "z": "",
        "name": "Strom",
        "tab": "84dd7c24.c98168",
        "order": 1,
        "disp": true,
        "width": 7,
        "collapse": false
    },
    {
        "id": "a60f64e8.b1e808",
        "type": "ui_group",
        "z": "",
        "name": "PV Anlage",
        "tab": "9128ecaa.cd4f2",
        "order": 3,
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "5e72848c.2f4304",
        "type": "modbustcp-server",
        "z": "",
        "name": "Sunny",
        "host": "192.168.0.103",
        "port": "1030",
        "unit_id": "3",
        "reconnecttimeout": "50"
    },
    {
        "id": "9160f12f.58ea6",
        "type": "ui_group",
        "z": "",
        "name": "hidden_group",
        "tab": "",
        "order": 1,
        "disp": false,
        "width": "6",
        "collapse": false
    },
    {
        "id": "157475bb.7e0d92",
        "type": "smartmeter-connection",
        "z": "",
        "sourcetype": "serial",
        "serialport": "/dev/ttyS1/",
        "serialbaud": "300",
        "databits": "8",
        "parity": "none",
        "stopbits": "1",
        "httphost": "localhost",
        "httpport": "80",
        "tcphost": "localhost",
        "tcpport": "502",
        "filepath": "/dev/null"
    },
    {
        "id": "602accf6.22655c",
        "type": "serial-port",
        "z": "",
        "serialport": "/dev/ttyAMA0/",
        "serialbaud": "9600",
        "databits": "8",
        "parity": "none",
        "stopbits": "1",
        "waitfor": "",
        "dtr": "none",
        "rts": "none",
        "cts": "none",
        "dsr": "none",
        "newline": "\\n",
        "bin": "false",
        "out": "char",
        "addchar": "",
        "responsetimeout": "10000"
    },
    {
        "id": "2a82cb3b.1a4f3c",
        "type": "smartmeter-connection",
        "z": "",
        "sourcetype": "serial",
        "serialport": "/dev/ttyUSB0",
        "serialbaud": "9600",
        "databits": "8",
        "parity": "none",
        "stopbits": "1",
        "httphost": "localhost",
        "httpport": "80",
        "tcphost": "localhost",
        "tcpport": "502",
        "filepath": "/dev/null"
    },
    {
        "id": "fb8dcf5e.9f5308",
        "type": "ui_group",
        "z": "",
        "name": "Zähler Z1",
        "tab": "",
        "order": 1,
        "disp": true,
        "width": "12",
        "collapse": false
    },
    {
        "id": "eca98c8e.7262c",
        "type": "ui_group",
        "z": "",
        "name": "Zähler Z2",
        "tab": "",
        "order": 2,
        "disp": true,
        "width": "12",
        "collapse": false
    },
    {
        "id": "9d3344b1.0c15",
        "type": "ui_group",
        "z": "",
        "name": "Group 1",
        "tab": "",
        "order": 1,
        "disp": false,
        "width": "6",
        "collapse": false
    },
    {
        "id": "754ecc5a.2456a4",
        "type": "ui_group",
        "z": "",
        "name": "Group 1",
        "tab": "",
        "order": 1,
        "disp": false,
        "width": 8,
        "collapse": false
    },
    {
        "id": "a31582a4.5fe228",
        "type": "ui_group",
        "z": "",
        "name": "Group 3",
        "tab": "",
        "order": 3,
        "disp": false,
        "width": 12,
        "collapse": false
    },
    {
        "id": "42370419.8c256c",
        "type": "ui_group",
        "z": "",
        "name": "Wetter allgemein",
        "tab": "",
        "order": 2,
        "disp": false,
        "width": 6,
        "collapse": false
    },
    {
        "id": "d1ccccad.af3e98",
        "type": "ui_group",
        "z": "",
        "name": "Vorhersage heute",
        "tab": "",
        "order": 3,
        "disp": false,
        "width": 6,
        "collapse": false
    },
    {
        "id": "86433eb1.448308",
        "type": "ui_group",
        "z": "",
        "name": "Vorhersage morgen",
        "tab": "",
        "order": 4,
        "disp": false,
        "width": 6,
        "collapse": false
    },
    {
        "id": "8b7068cf.8a86f",
        "type": "ui_group",
        "z": "",
        "name": "Group 2",
        "tab": "",
        "order": 2,
        "disp": false,
        "width": 8,
        "collapse": false
    },
    {
        "id": "189fcabb.c432d5",
        "type": "serial-port",
        "z": "",
        "serialport": "",
        "serialbaud": "9600",
        "databits": "8",
        "parity": "none",
        "stopbits": "1",
        "waitfor": "",
        "dtr": "none",
        "rts": "none",
        "cts": "none",
        "dsr": "none",
        "newline": "\\n",
        "bin": "false",
        "out": "char",
        "addchar": "",
        "responsetimeout": "10000"
    },
    {
        "id": "95adab3f.4f6d78",
        "type": "smartmeter-connection",
        "z": "",
        "sourcetype": "serial",
        "serialport": "/dev/ttyUSB1",
        "serialbaud": "9600",
        "databits": "8",
        "parity": "none",
        "stopbits": "1",
        "httphost": "localhost",
        "httpport": "80",
        "tcphost": "localhost",
        "tcpport": "502",
        "filepath": "/dev/null"
    },
    {
        "id": "1673f060.aed07",
        "type": "ui_group",
        "z": "",
        "name": "Ergebnisse",
        "tab": "",
        "order": 3,
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "fcaa59a3.3b18",
        "type": "ui_group",
        "z": "",
        "name": "Ursprungsstände",
        "tab": "1184433f.95098d",
        "order": 2,
        "disp": true,
        "width": "11",
        "collapse": false
    },
    {
        "id": "ad52826e.2e6878",
        "type": "ui_group",
        "z": "",
        "name": "Kosten / Vergütung",
        "tab": "",
        "order": 4,
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "809d9f73.7b81f8",
        "type": "ui_group",
        "z": "",
        "name": "Strom",
        "tab": "",
        "order": 1,
        "disp": true,
        "width": 6,
        "collapse": false
    },
    {
        "id": "9d034835.1af4",
        "type": "ui_group",
        "z": "",
        "name": "PV Anlage",
        "tab": "",
        "order": 5,
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "e27f731e.2f346",
        "type": "ui_group",
        "z": "",
        "name": "hidden_group",
        "tab": "",
        "order": 1,
        "disp": false,
        "width": "6",
        "collapse": false
    },
    {
        "id": "4692f4f7.a85e2c",
        "type": "ui_group",
        "z": "",
        "name": "Group 2",
        "tab": "",
        "order": 2,
        "disp": false,
        "width": "6",
        "collapse": false
    },
    {
        "id": "cf26354.7d9d0c8",
        "type": "ui_spacer",
        "name": "spacer",
        "group": "42370419.8c256c",
        "order": 3,
        "width": 6,
        "height": 1
    },
    {
        "id": "523feac6.53d18c",
        "type": "ui_group",
        "z": "",
        "name": "Strom",
        "tab": "",
        "order": 1,
        "disp": true,
        "width": 6,
        "collapse": false
    },
    {
        "id": "4779f4a9.26d82c",
        "type": "ui_group",
        "z": "",
        "name": "hidden_group",
        "tab": "",
        "order": 1,
        "disp": false,
        "width": "6",
        "collapse": false
    },
    {
        "id": "d2e87372.fdd7f8",
        "type": "smartmeter-connection",
        "z": "",
        "sourcetype": "serial",
        "serialport": "/dev/ttyS1/",
        "serialbaud": "300",
        "databits": "8",
        "parity": "none",
        "stopbits": "1",
        "httphost": "localhost",
        "httpport": "80",
        "tcphost": "localhost",
        "tcpport": "502",
        "filepath": "/dev/null"
    },
    {
        "id": "deda5bad.27d0b8",
        "type": "serial-port",
        "z": "",
        "serialport": "/dev/ttyAMA0/",
        "serialbaud": "9600",
        "databits": "8",
        "parity": "none",
        "stopbits": "1",
        "waitfor": "",
        "dtr": "none",
        "rts": "none",
        "cts": "none",
        "dsr": "none",
        "newline": "\\n",
        "bin": "false",
        "out": "char",
        "addchar": "",
        "responsetimeout": "10000"
    },
    {
        "id": "59ea5d24.fbb864",
        "type": "smartmeter-connection",
        "z": "",
        "sourcetype": "serial",
        "serialport": "/dev/ttyUSB0",
        "serialbaud": "9600",
        "databits": "8",
        "parity": "none",
        "stopbits": "1",
        "httphost": "localhost",
        "httpport": "80",
        "tcphost": "localhost",
        "tcpport": "502",
        "filepath": "/dev/null"
    },
    {
        "id": "b9abdb44.81e668",
        "type": "ui_group",
        "z": "",
        "name": "Zähler Z1",
        "tab": "",
        "order": 1,
        "disp": true,
        "width": "12",
        "collapse": false
    },
    {
        "id": "98239785.1e4c38",
        "type": "ui_group",
        "z": "",
        "name": "Zähler Z2",
        "tab": "",
        "order": 2,
        "disp": true,
        "width": "12",
        "collapse": false
    },
    {
        "id": "fbf4135a.335c9",
        "type": "ui_group",
        "z": "",
        "name": "Group 1",
        "tab": "",
        "order": 1,
        "disp": false,
        "width": "6",
        "collapse": false
    },
    {
        "id": "a3db20ca.39dc68",
        "type": "ui_group",
        "z": "",
        "name": "Group 1",
        "tab": "",
        "order": 1,
        "disp": false,
        "width": 8,
        "collapse": false
    },
    {
        "id": "455db259.7f344c",
        "type": "ui_group",
        "z": "",
        "name": "Group 3",
        "tab": "",
        "order": 3,
        "disp": false,
        "width": 12,
        "collapse": false
    },
    {
        "id": "c44d9865.6d97c8",
        "type": "ui_group",
        "z": "",
        "name": "Wetter allgemein",
        "tab": "",
        "order": 2,
        "disp": false,
        "width": 6,
        "collapse": false
    },
    {
        "id": "5e63139e.8fda44",
        "type": "ui_group",
        "z": "",
        "name": "Vorhersage heute",
        "tab": "",
        "order": 3,
        "disp": false,
        "width": 6,
        "collapse": false
    },
    {
        "id": "cdaa320b.a1f488",
        "type": "ui_group",
        "z": "",
        "name": "Vorhersage morgen",
        "tab": "",
        "order": 4,
        "disp": false,
        "width": 6,
        "collapse": false
    },
    {
        "id": "1ee6ca55.c6e1d6",
        "type": "ui_group",
        "z": "",
        "name": "Group 2",
        "tab": "",
        "order": 2,
        "disp": false,
        "width": 8,
        "collapse": false
    },
    {
        "id": "33f4135.818b2ec",
        "type": "serial-port",
        "z": "",
        "serialport": "",
        "serialbaud": "9600",
        "databits": "8",
        "parity": "none",
        "stopbits": "1",
        "waitfor": "",
        "dtr": "none",
        "rts": "none",
        "cts": "none",
        "dsr": "none",
        "newline": "\\n",
        "bin": "false",
        "out": "char",
        "addchar": "",
        "responsetimeout": "10000"
    },
    {
        "id": "8a93f7f.d2c4408",
        "type": "smartmeter-connection",
        "z": "",
        "sourcetype": "serial",
        "serialport": "/dev/ttyUSB1",
        "serialbaud": "9600",
        "databits": "8",
        "parity": "none",
        "stopbits": "1",
        "httphost": "localhost",
        "httpport": "80",
        "tcphost": "localhost",
        "tcpport": "502",
        "filepath": "/dev/null"
    },
    {
        "id": "79eb8a00.f32694",
        "type": "ui_group",
        "z": "",
        "name": "Ergebnisse",
        "tab": "",
        "order": 3,
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "b58a8db7.8c8218",
        "type": "ui_group",
        "z": "",
        "name": "Preise",
        "tab": "",
        "order": 1,
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "a2b753c4.2a711",
        "type": "ui_group",
        "z": "",
        "name": "Kosten / Vergütung",
        "tab": "",
        "order": 4,
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "8184e25.c10e6a",
        "type": "ui_group",
        "z": "",
        "name": "Strom",
        "tab": "",
        "order": 1,
        "disp": true,
        "width": 6,
        "collapse": false
    },
    {
        "id": "41b4391e.a5185",
        "type": "ui_group",
        "z": "",
        "name": "PV Anlage",
        "tab": "",
        "order": 5,
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "56f3711e.c9caf",
        "type": "ui_group",
        "z": "",
        "name": "hidden_group",
        "tab": "",
        "order": 1,
        "disp": false,
        "width": "6",
        "collapse": false
    },
    {
        "id": "bdc887d9.d6b708",
        "type": "ui_group",
        "z": "",
        "name": "Group 2",
        "tab": "",
        "order": 2,
        "disp": false,
        "width": "6",
        "collapse": false
    },
    {
        "id": "1397ae86.bdbc79",
        "type": "ui_spacer",
        "name": "spacer",
        "group": "c44d9865.6d97c8",
        "order": 3,
        "width": 6,
        "height": 1
    },
    {
        "id": "aed72946.72266",
        "type": "ui_spacer",
        "name": "spacer",
        "group": "a46f6674.a02528",
        "order": 6,
        "width": 7,
        "height": 1
    },
    {
        "id": "e3193681.ebfa98",
        "type": "inject",
        "z": "e153c63a.74d3e8",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "1800",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 100,
        "y": 80,
        "wires": [
            [
                "6f25b77.2112d48",
                "694afb98.59a06c",
                "8d15481d.fa8b78"
            ]
        ]
    },
    {
        "id": "6e3353ca.f8ce34",
        "type": "debug",
        "z": "e153c63a.74d3e8",
        "name": "Wettervoraussage",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 670,
        "y": 40,
        "wires": []
    },
    {
        "id": "cda05263.50e72",
        "type": "function",
        "z": "e153c63a.74d3e8",
        "name": "",
        "func": "return [\n    {payload:msg.payload.station},\n    {payload:msg.payload.tempc},\n    {payload:msg.payload.humidity},\n    {payload:msg.payload.windspeed},\n    {payload:msg.payload.winddirection},\n    {payload:msg.payload.precipitation_perc},\n    {payload:msg.payload.precipitationNext24h},\n    {payload:msg.payload.forecast_dt},\n    {payload:msg.payload.precipitation_perc}\n    ]",
        "outputs": 9,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 640,
        "y": 140,
        "wires": [
            [
                "8656c982.2c8898",
                "1d6d584c.42bc98"
            ],
            [
                "894409cd.7cecf8",
                "bc5409d7.0dc748"
            ],
            [
                "4354ac12.0c9464"
            ],
            [
                "e31330fd.6e734",
                "8d5800c.9c82e8"
            ],
            [
                "cafd6749.e9a73",
                "61fb7019.c72278"
            ],
            [
                "67da8db0.02cbe4",
                "5359bf96.97ccf8"
            ],
            [
                "3827781a.02f178"
            ],
            [
                "6792b8b1.12fba"
            ],
            [
                "451a96ad.1bc37"
            ]
        ]
    },
    {
        "id": "8656c982.2c8898",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "6d92ae39.7ab42",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Ort: ",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 870,
        "y": 80,
        "wires": []
    },
    {
        "id": "894409cd.7cecf8",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "6d92ae39.7ab42",
        "order": 5,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Temperatur",
        "format": "{{msg.payload}} °C",
        "layout": "row-spread",
        "x": 890,
        "y": 120,
        "wires": []
    },
    {
        "id": "4354ac12.0c9464",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "6d92ae39.7ab42",
        "order": 6,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "relative Luftfeuchtigkeit",
        "format": "{{msg.payload}} %",
        "layout": "row-spread",
        "x": 930,
        "y": 160,
        "wires": []
    },
    {
        "id": "e31330fd.6e734",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "6d92ae39.7ab42",
        "order": 7,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Windgeschwindigkeit",
        "format": "{{msg.payload}} m/s",
        "layout": "row-spread",
        "x": 920,
        "y": 200,
        "wires": []
    },
    {
        "id": "cafd6749.e9a73",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "6d92ae39.7ab42",
        "order": 8,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Windrichtung",
        "format": "{{msg.payload}} °",
        "layout": "row-spread",
        "x": 890,
        "y": 240,
        "wires": []
    },
    {
        "id": "67da8db0.02cbe4",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "6d92ae39.7ab42",
        "order": 9,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Regenwahrscheinlichkeit",
        "format": "{{msg.payload}} %",
        "layout": "row-spread",
        "x": 930,
        "y": 280,
        "wires": []
    },
    {
        "id": "3827781a.02f178",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "6d92ae39.7ab42",
        "order": 10,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Regen in den nächsten 24 Stunden",
        "format": "{{msg.payload}} kg/m2",
        "layout": "row-spread",
        "x": 970,
        "y": 320,
        "wires": []
    },
    {
        "id": "6792b8b1.12fba",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "d": true,
        "group": "6d92ae39.7ab42",
        "order": 11,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Vorhersage",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 890,
        "y": 360,
        "wires": []
    },
    {
        "id": "451a96ad.1bc37",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "6d92ae39.7ab42",
        "order": 12,
        "width": 0,
        "height": 0,
        "name": "Niederschlag",
        "label": "Niederschlag",
        "format": "{{msg.payload}} %",
        "layout": "row-spread",
        "x": 890,
        "y": 397,
        "wires": []
    },
    {
        "id": "6967ec62.3060ec",
        "type": "debug",
        "z": "e153c63a.74d3e8",
        "name": "Wetterwarnung",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 380,
        "y": 1260,
        "wires": []
    },
    {
        "id": "a78cbd94.f062f8",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "699635dd.1b66d4",
        "order": 7,
        "width": 0,
        "height": 0,
        "name": "Warnung Text",
        "label": "Warnung Text: ",
        "format": "{{msg.events}}",
        "layout": "row-spread",
        "x": 780,
        "y": 1020,
        "wires": []
    },
    {
        "id": "71705450.156d4c",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "699635dd.1b66d4",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "Warnstufe ",
        "label": "Warnstufe: ",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 770,
        "y": 940,
        "wires": []
    },
    {
        "id": "11ee8e5.32db9f2",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "699635dd.1b66d4",
        "order": 4,
        "width": 0,
        "height": 0,
        "name": "AnzahlWarnungen",
        "label": "Anzahl der Warnungen: ",
        "format": "{{msg.count}}",
        "layout": "row-spread",
        "x": 790,
        "y": 980,
        "wires": []
    },
    {
        "id": "65c38176.eef088",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "699635dd.1b66d4",
        "order": 5,
        "width": 0,
        "height": 0,
        "name": "Regionname",
        "label": "Region: ",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 770,
        "y": 1060,
        "wires": []
    },
    {
        "id": "d1132205.515708",
        "type": "function",
        "z": "e153c63a.74d3e8",
        "name": "",
        "func": "return [\n    {payload:msg.warnings[0].regionName},\n    {payload:msg.warnings[0].end},\n    {payload:msg.warnings[0].start},\n    {payload:msg.warnings[0].type},\n    {payload:msg.warnings[0].state},\n    {payload:msg.warnings[0].level},\n    {payload:msg.warnings[0].description},\n    {payload:msg.warnings[0].event},\n    {payload:msg.warnings[0].headline},\n    {payload:msg.warnings[0].instruction},\n    {payload:msg.warnings[0].stateShort}\n    ]",
        "outputs": 11,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 580,
        "y": 1120,
        "wires": [
            [
                "65c38176.eef088"
            ],
            [],
            [],
            [],
            [],
            [
                "d17bf699.fe1bd"
            ],
            [
                "a60b33de.f72d08"
            ],
            [
                "1a345a6e.9f8c9e"
            ],
            [],
            [],
            []
        ]
    },
    {
        "id": "a60b33de.f72d08",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "699635dd.1b66d4",
        "order": 8,
        "width": 0,
        "height": 0,
        "name": "Beschreibung",
        "label": "Beschreibung",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 780,
        "y": 1140,
        "wires": []
    },
    {
        "id": "d17bf699.fe1bd",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "699635dd.1b66d4",
        "order": 11,
        "width": 0,
        "height": 0,
        "name": "Level",
        "label": "Level",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 750,
        "y": 1100,
        "wires": []
    },
    {
        "id": "1a345a6e.9f8c9e",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "699635dd.1b66d4",
        "order": 6,
        "width": 0,
        "height": 0,
        "name": "Headline",
        "label": "Überschrift",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 760,
        "y": 1180,
        "wires": []
    },
    {
        "id": "1d6d584c.42bc98",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "1021fa52.20344e",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Ort: ",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 1170,
        "y": 80,
        "wires": []
    },
    {
        "id": "bc5409d7.0dc748",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "18e8a64b.dcbbb2",
        "order": 2,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Temperatur",
        "format": "{{msg.payload}} °C",
        "layout": "row-spread",
        "x": 1190,
        "y": 120,
        "wires": []
    },
    {
        "id": "8d5800c.9c82e8",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "18e8a64b.dcbbb2",
        "order": 3,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Windgeschwindigkeit",
        "format": "{{msg.payload}} m/s",
        "layout": "row-spread",
        "x": 1220,
        "y": 200,
        "wires": []
    },
    {
        "id": "61fb7019.c72278",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "18e8a64b.dcbbb2",
        "order": 4,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Windrichtung",
        "format": "{{msg.payload}} °",
        "layout": "row-spread",
        "x": 1190,
        "y": 240,
        "wires": []
    },
    {
        "id": "5359bf96.97ccf8",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "18e8a64b.dcbbb2",
        "order": 5,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Regenwahrscheinlichkeit",
        "format": "{{msg.payload}} %",
        "layout": "row-spread",
        "x": 1230,
        "y": 280,
        "wires": []
    },
    {
        "id": "dde184c0.5ce668",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "18e8a64b.dcbbb2",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Vorhersage für heute",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 1220,
        "y": 20,
        "wires": []
    },
    {
        "id": "dabe71b.109671",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "1bc7fc8f.e3c6c3",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Vorhersage für morgen",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 1230,
        "y": 500,
        "wires": []
    },
    {
        "id": "f15bf01.0f8171",
        "type": "debug",
        "z": "e153c63a.74d3e8",
        "name": "Wettervoraussage",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 670,
        "y": 500,
        "wires": []
    },
    {
        "id": "91da9894.9288f8",
        "type": "function",
        "z": "e153c63a.74d3e8",
        "name": "",
        "func": "return [\n    {payload:msg.payload.station},\n    {payload:msg.payload.tempc},\n    {payload:msg.payload.humidity},\n    {payload:msg.payload.windspeed},\n    {payload:msg.payload.winddirection},\n    {payload:msg.payload.precipitation_perc},\n    {payload:msg.payload.precipitationNext24h},\n    {payload:msg.payload.forecast_dt},\n    {payload:msg.payload.precipitation_perc}\n    ]",
        "outputs": 9,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 640,
        "y": 600,
        "wires": [
            [],
            [
                "41923e5.81fbac",
                "922e8bc7.36148"
            ],
            [
                "2d8eb7cd.42cae8"
            ],
            [
                "184f5855.6ba0a8",
                "a8ab1c76.c70be"
            ],
            [
                "f799afe8.b2835",
                "73c7544b.9384cc"
            ],
            [
                "a92e329d.43b5d8",
                "9a055f5.9c5092"
            ],
            [
                "9c41ea63.caed"
            ],
            [
                "63b8ad0f.065c2c"
            ],
            [
                "7ce0f715.91865"
            ]
        ]
    },
    {
        "id": "41923e5.81fbac",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "a418b35.278d05",
        "order": 4,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Temperatur",
        "format": "{{msg.payload}} °C",
        "layout": "row-spread",
        "x": 890,
        "y": 580,
        "wires": []
    },
    {
        "id": "2d8eb7cd.42cae8",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "a418b35.278d05",
        "order": 5,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "relative Luftfeuchtigkeit",
        "format": "{{msg.payload}} %",
        "layout": "row-spread",
        "x": 930,
        "y": 620,
        "wires": []
    },
    {
        "id": "184f5855.6ba0a8",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "a418b35.278d05",
        "order": 6,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Windgeschwindigkeit",
        "format": "{{msg.payload}} m/s",
        "layout": "row-spread",
        "x": 920,
        "y": 660,
        "wires": []
    },
    {
        "id": "f799afe8.b2835",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "a418b35.278d05",
        "order": 7,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Windrichtung",
        "format": "{{msg.payload}} °",
        "layout": "row-spread",
        "x": 890,
        "y": 700,
        "wires": []
    },
    {
        "id": "a92e329d.43b5d8",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "a418b35.278d05",
        "order": 8,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Regenwahrscheinlichkeit",
        "format": "{{msg.payload}} %",
        "layout": "row-spread",
        "x": 930,
        "y": 740,
        "wires": []
    },
    {
        "id": "9c41ea63.caed",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "a418b35.278d05",
        "order": 9,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Regen in den nächsten 24 Stunden",
        "format": "{{msg.payload}} kg/m2",
        "layout": "row-spread",
        "x": 970,
        "y": 780,
        "wires": []
    },
    {
        "id": "63b8ad0f.065c2c",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "d": true,
        "group": "a418b35.278d05",
        "order": 10,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Vorhersage",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 890,
        "y": 820,
        "wires": []
    },
    {
        "id": "7ce0f715.91865",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "a418b35.278d05",
        "order": 11,
        "width": 0,
        "height": 0,
        "name": "Niederschlag",
        "label": "Niederschlag",
        "format": "{{msg.payload}} %",
        "layout": "row-spread",
        "x": 890,
        "y": 857,
        "wires": []
    },
    {
        "id": "922e8bc7.36148",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "1bc7fc8f.e3c6c3",
        "order": 2,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Temperatur",
        "format": "{{msg.payload}} °C",
        "layout": "row-spread",
        "x": 1190,
        "y": 580,
        "wires": []
    },
    {
        "id": "a8ab1c76.c70be",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "1bc7fc8f.e3c6c3",
        "order": 3,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Windgeschwindigkeit",
        "format": "{{msg.payload}} m/s",
        "layout": "row-spread",
        "x": 1220,
        "y": 660,
        "wires": []
    },
    {
        "id": "73c7544b.9384cc",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "1bc7fc8f.e3c6c3",
        "order": 4,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Windrichtung",
        "format": "{{msg.payload}} °",
        "layout": "row-spread",
        "x": 1190,
        "y": 700,
        "wires": []
    },
    {
        "id": "9a055f5.9c5092",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "1bc7fc8f.e3c6c3",
        "order": 5,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Regenwahrscheinlichkeit",
        "format": "{{msg.payload}} %",
        "layout": "row-spread",
        "x": 1230,
        "y": 740,
        "wires": []
    },
    {
        "id": "7c28fb70.ea4194",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "a418b35.278d05",
        "order": 3,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Vorhersage für morgen",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 1230,
        "y": 540,
        "wires": []
    },
    {
        "id": "6ccc789f.943468",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "699635dd.1b66d4",
        "order": 2,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "aktuelle Unwetterwarnung",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 1170,
        "y": 900,
        "wires": []
    },
    {
        "id": "3a83f833.4393a8",
        "type": "ui_text",
        "z": "e153c63a.74d3e8",
        "group": "6d92ae39.7ab42",
        "order": 3,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Vorhersage für heute",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 1220,
        "y": 40,
        "wires": []
    },
    {
        "id": "fa512baa.e150f",
        "type": "smartmeter",
        "z": "cf7b99f9.447d",
        "name": "Smartmeter Z1",
        "datasource": "69cc4d30.df0644",
        "protocol": "SmlProtocol",
        "transport": "SerialResponseTransport",
        "requestInterval": "300",
        "d0WakeupCharacter": "",
        "x": 210,
        "y": 180,
        "wires": [
            [
                "9b353125.b7e5b8",
                "8a3f9fb9.5f876"
            ]
        ]
    },
    {
        "id": "9b353125.b7e5b8",
        "type": "debug",
        "z": "cf7b99f9.447d",
        "name": "Smartmeter Z1",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 500,
        "y": 80,
        "wires": []
    },
    {
        "id": "8a3f9fb9.5f876",
        "type": "function",
        "z": "cf7b99f9.447d",
        "name": "Zähler Z1 formatieren",
        "func": "var StromZ1 = msg.payload[\"1-0:1.8.0*255\"].values[0].value;\nvar DatumUrsprung=global.get('DatumUrsprung');\nvar VZahlerstandZ1=global.get('VZahlerstandZ1');\nvar VZahlerstandZ2V=global.get('VZahlerstandZ2V');\nvar VZahlerstandZ2E=global.get('VZahlerstandZ2E');\n\nvar StromverbrauchZeitZ1=0;\n\nglobal.set('Z1',StromZ1);\n\nStromverbrauchZeitZ1 = StromZ1 - VZahlerstandZ1;\n\nglobal.set('StromverbrauchZeitZ1',StromverbrauchZeitZ1);\n\nreturn [\n    {payloadZ1:StromZ1},\n    {payloadZ1:StromverbrauchZeitZ1}\n    ]\n    ",
        "outputs": 2,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 520,
        "y": 180,
        "wires": [
            [
                "5a4aa047.cd7018",
                "db6d115c.3e028",
                "37f2caec.50ae6e"
            ],
            [
                "202b5855.a2db78",
                "37f2caec.50ae6e"
            ]
        ]
    },
    {
        "id": "5a4aa047.cd7018",
        "type": "ui_text",
        "z": "cf7b99f9.447d",
        "group": "6cca4a70.722064",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Zählerstand Z1: ",
        "format": "{{msg.payloadZ1}} kWh",
        "layout": "row-spread",
        "x": 880,
        "y": 80,
        "wires": []
    },
    {
        "id": "a31b6ff6.14b8a",
        "type": "ui_text",
        "z": "cf7b99f9.447d",
        "group": "30d49162.30797e",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Zählerstand Z2 Verbrauch",
        "format": "{{msg.payloadZ2A}} kWh",
        "layout": "row-spread",
        "x": 920,
        "y": 780,
        "wires": []
    },
    {
        "id": "6d789f90.ae87c",
        "type": "ui_text",
        "z": "cf7b99f9.447d",
        "group": "30d49162.30797e",
        "order": 2,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Zählerstand Z2 Einspeisend",
        "format": "{{msg.payloadZ2E}} kWh",
        "layout": "row-spread",
        "x": 920,
        "y": 820,
        "wires": []
    },
    {
        "id": "cea2900a.5050c8",
        "type": "function",
        "z": "cf7b99f9.447d",
        "name": "Zähler Z2 formatieren",
        "func": "var StromZ2A = msg.payload[\"1-0:1.8.0*255\"].values[0].value;\nvar StromZ2E = msg.payload[\"1-0:2.8.0*255\"].values[0].value;\nvar DatumUrsprung=global.get('DatumUrsprung');\nvar VZahlerstandZ1=global.get('VZahlerstandZ1');\nvar VZahlerstandZ2V=global.get('VZahlerstandZ2V');\nvar VZahlerstandZ2E=global.get('VZahlerstandZ2E');\n\nvar StromverbrauchZeitZ2V=0;\nvar StromverbrauchZeitZ2E=0;\n\nglobal.set('Z2A',StromZ2A);\nglobal.set('Z2E',StromZ2E);\n\nStromverbrauchZeitZ2V = StromZ2A - VZahlerstandZ2V;\nStromverbrauchZeitZ2E = StromZ2E - VZahlerstandZ2E;\n\nglobal.set('StromverbrauchZeitZ2V',StromverbrauchZeitZ2V);\nglobal.set('StromverbrauchZeitZ2E',StromverbrauchZeitZ2E);\n\nreturn [\n    {payloadZ2A:StromZ2A},\n    {payloadZ2E:StromZ2E},\n    {payloadZ2A:StromverbrauchZeitZ2V},\n    {payloadZ2E:StromverbrauchZeitZ2E}\n    ]\n    ",
        "outputs": 4,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 520,
        "y": 800,
        "wires": [
            [
                "a31b6ff6.14b8a",
                "db6d115c.3e028",
                "a38fab55.dd654"
            ],
            [
                "6d789f90.ae87c",
                "c905af1f.3542d8",
                "4273a83a.ff755"
            ],
            [
                "5cb5245f.5a4344"
            ],
            [
                "c482f259.b04a98"
            ]
        ]
    },
    {
        "id": "3651d644.94401a",
        "type": "smartmeter",
        "z": "cf7b99f9.447d",
        "name": "Smartmeter Z2",
        "datasource": "717c57e6.db3908",
        "protocol": "SmlProtocol",
        "transport": "SerialResponseTransport",
        "requestInterval": "300",
        "d0WakeupCharacter": "",
        "x": 200,
        "y": 800,
        "wires": [
            [
                "cea2900a.5050c8",
                "713042c4.b6a2c4"
            ]
        ]
    },
    {
        "id": "713042c4.b6a2c4",
        "type": "debug",
        "z": "cf7b99f9.447d",
        "name": "Smartmeter Z2",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 500,
        "y": 680,
        "wires": []
    },
    {
        "id": "db6d115c.3e028",
        "type": "function",
        "z": "cf7b99f9.447d",
        "name": "Stromverbrauch Wärmepumpe",
        "func": "var payloadZ1=global.get('Z1');\nvar payloadZ2=global.get('Z2A');\nvar StromverbrauchZeitZ1 =global.get('StromverbrauchZeitZ1');\nvar StromverbrauchZeitZ2V =global.get('StromverbrauchZeitZ2V');\nvar StromverbrauchZeitZ2E =global.get('StromverbrauchZeitZ2E');\nvar Ergebnis=0;\n\nErgebnis = StromverbrauchZeitZ2V - StromverbrauchZeitZ1;\n\nreturn [\n    {payload:Ergebnis},\n    ]",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 690,
        "y": 300,
        "wires": [
            [
                "1e79a1d9.ebdcee",
                "b5a83550.886f4",
                "90817e9a.858158"
            ]
        ]
    },
    {
        "id": "c905af1f.3542d8",
        "type": "function",
        "z": "cf7b99f9.447d",
        "name": "Eigenverbrauch PV Strom",
        "func": "var payloadPV=global.get('PV');\nvar payloadZ2=global.get('Z2E');\nvar StromverbrauchZeitZ1 =global.get('StromverbrauchZeitZ1');\nvar StromverbrauchZeitZ2V =global.get('StromverbrauchZeitZ2V');\nvar StromverbrauchZeitZ2E =global.get('StromverbrauchZeitZ2E');\nvar Ergebnis=0;\n\nErgebnis = payloadPV - payloadZ2;\n\nreturn [\n    {payload:Ergebnis},\n    ]\n",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 690,
        "y": 480,
        "wires": [
            [
                "c6e0b277.31129",
                "22cf340.39516cc"
            ]
        ]
    },
    {
        "id": "1e79a1d9.ebdcee",
        "type": "ui_text",
        "z": "cf7b99f9.447d",
        "group": "53fdfb9f.f040d4",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Stromverbrauch Wärmepumpe",
        "format": "{{msg.payload}} kWh",
        "layout": "row-spread",
        "x": 1130,
        "y": 300,
        "wires": []
    },
    {
        "id": "c6e0b277.31129",
        "type": "ui_text",
        "z": "cf7b99f9.447d",
        "group": "53fdfb9f.f040d4",
        "order": 2,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Eigenverbrauch PV Strom",
        "format": "{{msg.payload}} kWh",
        "layout": "row-spread",
        "x": 1110,
        "y": 480,
        "wires": []
    },
    {
        "id": "37f2caec.50ae6e",
        "type": "debug",
        "z": "cf7b99f9.447d",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payloadZ1",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 880,
        "y": 120,
        "wires": []
    },
    {
        "id": "b5a83550.886f4",
        "type": "debug",
        "z": "cf7b99f9.447d",
        "name": "Stromverbrauch WP",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1100,
        "y": 260,
        "wires": []
    },
    {
        "id": "22cf340.39516cc",
        "type": "debug",
        "z": "cf7b99f9.447d",
        "name": "Eigenverbrauch PV Strom",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1110,
        "y": 540,
        "wires": []
    },
    {
        "id": "a38fab55.dd654",
        "type": "debug",
        "z": "cf7b99f9.447d",
        "name": "Zählerstand Z2 Verbrauch",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payloadZ2A",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 920,
        "y": 740,
        "wires": []
    },
    {
        "id": "4273a83a.ff755",
        "type": "debug",
        "z": "cf7b99f9.447d",
        "name": "Zählerstand Z2 Einspeisend",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payloadZ2E",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 920,
        "y": 860,
        "wires": []
    },
    {
        "id": "6bee62ae.866c1c",
        "type": "function",
        "z": "ed6ed80.df9a428",
        "name": "",
        "func": "var StromPV = msg.payload;\n\nglobal.set('PV',StromPV);\nStromPV = global.get('PV');\n\nreturn [\n    {payloadPV:StromPV},\n    ]\n    ",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 900,
        "y": 500,
        "wires": [
            []
        ]
    },
    {
        "id": "4a15dffa.d085f",
        "type": "debug",
        "z": "ed6ed80.df9a428",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payloadPV",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1100,
        "y": 220,
        "wires": []
    },
    {
        "id": "35b2a91a.17cc9e",
        "type": "ui_text_input",
        "z": "10e88481.cdf323",
        "name": "",
        "label": "Verbrauchstrom Cent/kWh",
        "tooltip": "",
        "group": "d2aef4a.24da008",
        "order": 1,
        "width": 0,
        "height": 0,
        "passthru": true,
        "mode": "number",
        "delay": 300,
        "topic": "",
        "x": 340,
        "y": 80,
        "wires": [
            [
                "ea42c79e.dd1bf8"
            ]
        ]
    },
    {
        "id": "ea42c79e.dd1bf8",
        "type": "function",
        "z": "10e88481.cdf323",
        "name": "",
        "func": "var VStromEuro = msg.payload/100;\n\nglobal.set('VStromEuro',VStromEuro);\nStromPV = global.get('VStromEuro');\n\nreturn [\n    {payloadVStromEuro:VStromEuro},\n    ]\n    ",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 680,
        "y": 80,
        "wires": [
            [
                "e895fbec.c1a5e"
            ]
        ]
    },
    {
        "id": "e895fbec.c1a5e",
        "type": "debug",
        "z": "10e88481.cdf323",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payloadVStromEuro",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 930,
        "y": 80,
        "wires": []
    },
    {
        "id": "f08ff5a7.618f58",
        "type": "ui_text_input",
        "z": "10e88481.cdf323",
        "name": "",
        "label": "Heizstrom Cent/kWh",
        "tooltip": "",
        "group": "d2aef4a.24da008",
        "order": 2,
        "width": 0,
        "height": 0,
        "passthru": true,
        "mode": "number",
        "delay": 300,
        "topic": "",
        "x": 320,
        "y": 140,
        "wires": [
            [
                "11de6c13.42e8a4"
            ]
        ]
    },
    {
        "id": "11de6c13.42e8a4",
        "type": "function",
        "z": "10e88481.cdf323",
        "name": "",
        "func": "var HStromEuro = msg.payload/100;\n\nglobal.set('HStromEuro',HStromEuro);\nStromPV = global.get('HStromEuro');\n\nreturn [\n    {payloadHStromEuro:HStromEuro},\n    ]\n    ",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 680,
        "y": 140,
        "wires": [
            [
                "4b236e24.38f89"
            ]
        ]
    },
    {
        "id": "4b236e24.38f89",
        "type": "debug",
        "z": "10e88481.cdf323",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payloadHStromEuro",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 930,
        "y": 140,
        "wires": []
    },
    {
        "id": "217abc50.d68394",
        "type": "ui_text_input",
        "z": "10e88481.cdf323",
        "name": "",
        "label": "Stromvergütung PV Anlage Cent/kWh",
        "tooltip": "",
        "group": "d2aef4a.24da008",
        "order": 3,
        "width": 0,
        "height": 0,
        "passthru": true,
        "mode": "number",
        "delay": 300,
        "topic": "",
        "x": 370,
        "y": 200,
        "wires": [
            [
                "733ed54.5d6bb2c"
            ]
        ]
    },
    {
        "id": "733ed54.5d6bb2c",
        "type": "function",
        "z": "10e88481.cdf323",
        "name": "",
        "func": "var PVStromEuro = msg.payload/100;\n\nglobal.set('PVStromEuro',PVStromEuro);\nStromPV = global.get('PVStromEuro');\n\nreturn [\n    {payloadPVStromEuro:PVStromEuro},\n    ]\n    ",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 680,
        "y": 200,
        "wires": [
            [
                "ccc472de.2d5588"
            ]
        ]
    },
    {
        "id": "ccc472de.2d5588",
        "type": "debug",
        "z": "10e88481.cdf323",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payloadPVStromEuro",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 940,
        "y": 200,
        "wires": []
    },
    {
        "id": "202b5855.a2db78",
        "type": "function",
        "z": "cf7b99f9.447d",
        "name": "Stromkosten",
        "func": "var payloadZ1=msg.payloadZ1;\nvar VStromEuro=global.get('VStromEuro');\nvar StromverbrauchZeitZ1 =global.get('StromverbrauchZeitZ1');\nvar StromverbrauchZeitZ2V =global.get('StromverbrauchZeitZ2V');\nvar StromverbrauchZeitZ2E =global.get('StromverbrauchZeitZ2E');\nvar Ergebnis=0;\n\nErgebnis = VStromEuro * StromverbrauchZeitZ1;\n\nreturn [\n    {payload:Ergebnis},\n    ]",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 870,
        "y": 180,
        "wires": [
            [
                "e3c87954.91f9a8",
                "6aaeed55.01054c"
            ]
        ]
    },
    {
        "id": "e3c87954.91f9a8",
        "type": "ui_text",
        "z": "cf7b99f9.447d",
        "group": "5b4272b6.d2c704",
        "order": 2,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Stromkosten: ",
        "format": "{{msg.payload}} €",
        "layout": "row-spread",
        "x": 1070,
        "y": 180,
        "wires": []
    },
    {
        "id": "90817e9a.858158",
        "type": "function",
        "z": "cf7b99f9.447d",
        "name": "Heizkosten",
        "func": "var payloadZ1=msg.payload;\nvar HStromEuro=global.get('HStromEuro');\nvar Ergebnis=0;\n\nErgebnis = HStromEuro * payloadZ1;\n\nErgebnis = Math.round(Ergebnis*100)/100;\n\nreturn [\n    {payload:Ergebnis},\n    ]",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 910,
        "y": 380,
        "wires": [
            [
                "e1d4e9b8.f1e1b",
                "6582733c.94de1c"
            ]
        ]
    },
    {
        "id": "e1d4e9b8.f1e1b",
        "type": "ui_text",
        "z": "cf7b99f9.447d",
        "group": "5b4272b6.d2c704",
        "order": 3,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Heizkosten: ",
        "format": "{{msg.payload}} €",
        "layout": "row-spread",
        "x": 1070,
        "y": 380,
        "wires": []
    },
    {
        "id": "c482f259.b04a98",
        "type": "function",
        "z": "cf7b99f9.447d",
        "name": "Vergütung PV",
        "func": "var payloadZ2E=msg.payloadZ2E;\nvar PVStromEuro=global.get('PVStromEuro');\nvar Ergebnis=0;\n\nErgebnis = PVStromEuro * payloadZ2E;\n\nErgebnis = Math.round(Ergebnis*100)/100;\n\nreturn [\n    {payload:Ergebnis},\n    ]",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 880,
        "y": 920,
        "wires": [
            [
                "fee28402.f67c88",
                "249d4b68.27215c"
            ]
        ]
    },
    {
        "id": "fee28402.f67c88",
        "type": "ui_text",
        "z": "cf7b99f9.447d",
        "group": "5b4272b6.d2c704",
        "order": 4,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Vergütung durch PV: ",
        "format": "{{msg.payload}} €",
        "layout": "row-spread",
        "x": 1100,
        "y": 920,
        "wires": []
    },
    {
        "id": "10908f02.e47829",
        "type": "debug",
        "z": "ed6ed80.df9a428",
        "name": "SMA PV",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 700,
        "y": 60,
        "wires": []
    },
    {
        "id": "7fa5750d.fc9be4",
        "type": "ui_gauge",
        "z": "ed6ed80.df9a428",
        "name": "",
        "group": "a46f6674.a02528",
        "order": 9,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "aktuelle Leistung",
        "label": "W",
        "format": "{{payload.Leistung}} W",
        "min": 0,
        "max": "4100",
        "colors": [
            "#ffff80",
            "#ff8000",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "x": 730,
        "y": 120,
        "wires": []
    },
    {
        "id": "6aaeed55.01054c",
        "type": "ui_text",
        "z": "cf7b99f9.447d",
        "group": "a46f6674.a02528",
        "order": 2,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Stromkosten: ",
        "format": "{{msg.payload}} €",
        "layout": "row-spread",
        "x": 1070,
        "y": 220,
        "wires": []
    },
    {
        "id": "6582733c.94de1c",
        "type": "ui_text",
        "z": "cf7b99f9.447d",
        "group": "a46f6674.a02528",
        "order": 3,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Heizkosten: ",
        "format": "{{msg.payload}} €",
        "layout": "row-spread",
        "x": 1070,
        "y": 420,
        "wires": []
    },
    {
        "id": "249d4b68.27215c",
        "type": "ui_text",
        "z": "cf7b99f9.447d",
        "group": "a46f6674.a02528",
        "order": 4,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Vergütung durch PV: ",
        "format": "{{msg.payload}} €",
        "layout": "row-spread",
        "x": 1100,
        "y": 960,
        "wires": []
    },
    {
        "id": "5cb5245f.5a4344",
        "type": "function",
        "z": "cf7b99f9.447d",
        "name": "Ersparnis Ges",
        "func": "var payloadPV=global.get('PV');\nvar payloadZ2E=global.get('Z2E');\nvar PVStromEuro=global.get('PVStromEuro');\nvar VStromEuro=global.get('VStromEuro');\nvar HStromEuro=global.get('HStromEuro');\nvar StromverbrauchZeitZ1 =global.get('StromverbrauchZeitZ1');\nvar StromverbrauchZeitZ2V =global.get('StromverbrauchZeitZ2V');\nvar StromverbrauchZeitZ2E =global.get('StromverbrauchZeitZ2E');\n\nvar Ergebnis=0;\nvar ErgebnisEigenverbrauch=0;\nvar ErgebnisErsparnis=0;\nvar ErgebnisVergutung=0;\n\nErgebnisEigenverbrauch =  payloadPV - payloadZ2E;\nErgebnisErsparnis = ErgebnisEigenverbrauch * VStromEuro;\nErgebnisVergutung = payloadZ2E * PVStromEuro;\n\nErgebnis = ErgebnisVergutung + ErgebnisErsparnis;\n//Ergebnis = ErgebnisErsparnis;\n//Ergebnis = ErgebnisVergütung;\n\nErgebnis = Math.round(Ergebnis*100)/100;\n\nreturn [\n    {payload:Ergebnis},\n    ]",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 880,
        "y": 1020,
        "wires": [
            [
                "7d8cd544.8e7d34",
                "f0a7bee8.158178"
            ]
        ]
    },
    {
        "id": "7d8cd544.8e7d34",
        "type": "ui_text",
        "z": "cf7b99f9.447d",
        "group": "a46f6674.a02528",
        "order": 5,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Ersparnis Gesamt: ",
        "format": "{{msg.payload}} €",
        "layout": "row-spread",
        "x": 1090,
        "y": 1060,
        "wires": []
    },
    {
        "id": "f0a7bee8.158178",
        "type": "ui_text",
        "z": "cf7b99f9.447d",
        "group": "5b4272b6.d2c704",
        "order": 5,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Ersparnis Gesamt: ",
        "format": "{{msg.payload}} €",
        "layout": "row-spread",
        "x": 1090,
        "y": 1020,
        "wires": []
    },
    {
        "id": "13536a00.713fc6",
        "type": "sma-webconnect",
        "z": "ed6ed80.df9a428",
        "ip_address": "192.168.0.103",
        "right": "usr",
        "use_tls": true,
        "device_selection": "sb_tripower",
        "x": 440,
        "y": 120,
        "wires": [
            [
                "10908f02.e47829",
                "7fa5750d.fc9be4",
                "476c8c6d.c5b29c",
                "e1a2996f.92cfe"
            ]
        ]
    },
    {
        "id": "c6923ece.bf891",
        "type": "debug",
        "z": "ed6ed80.df9a428",
        "name": "Modbustcp1",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 650,
        "y": 360,
        "wires": []
    },
    {
        "id": "75fa0b16.2f806c",
        "type": "inject",
        "z": "ed6ed80.df9a428",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 120,
        "y": 420,
        "wires": [
            [
                "b430b7e7.da9978"
            ]
        ]
    },
    {
        "id": "b598fd9f.a41b18",
        "type": "function",
        "z": "ed6ed80.df9a428",
        "name": "ModbusTCP-WertFormatieren",
        "func": "var msg1 = {payload:\"totalErzeugung\"};\n\nvar TCPEingang = parseInt(msg.payload[0]*0x1000 + msg.payload[1]);\n\nif (TCPEingang >= 0) {\n  msg1.payload = TCPEingang.toString();\n  }\n  else msg1=null;\n  \n  return [msg1];\n\n\n",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 710,
        "y": 420,
        "wires": [
            [
                "a9859c93.4a2878",
                "6bee62ae.866c1c"
            ]
        ]
    },
    {
        "id": "a9859c93.4a2878",
        "type": "debug",
        "z": "ed6ed80.df9a428",
        "name": "PVGesamtEnergie",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1010,
        "y": 420,
        "wires": []
    },
    {
        "id": "c2403115.1d3f8",
        "type": "ui_text",
        "z": "ed6ed80.df9a428",
        "group": "a60f64e8.b1e808",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Gesamtenergie:",
        "format": "{{msg.payloadPV}} kWh",
        "layout": "row-spread",
        "x": 1100,
        "y": 260,
        "wires": []
    },
    {
        "id": "476c8c6d.c5b29c",
        "type": "ui_text",
        "z": "ed6ed80.df9a428",
        "group": "a60f64e8.b1e808",
        "order": 2,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "aktuelle Leistung:",
        "format": "{{payload.Leistung}} W",
        "layout": "row-spread",
        "x": 730,
        "y": 160,
        "wires": []
    },
    {
        "id": "f78e3322.47ee3",
        "type": "function",
        "z": "ed6ed80.df9a428",
        "name": "",
        "func": "var StromPV = msg.payload;\n\n//global.set('PV',StromPV);\n//StromPV = global.get('PV');\n\nreturn [\n    {payloadPV:StromPV},\n    ]\n    ",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 900,
        "y": 780,
        "wires": [
            [
                "a7e284d4.67f13",
                "6c3388e6.49d618",
                "b679415e.318c5"
            ]
        ]
    },
    {
        "id": "a7e284d4.67f13",
        "type": "debug",
        "z": "ed6ed80.df9a428",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payloadPV",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1120,
        "y": 780,
        "wires": []
    },
    {
        "id": "203e19d4.1964b6",
        "type": "debug",
        "z": "ed6ed80.df9a428",
        "name": "Modbustcp2",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 650,
        "y": 640,
        "wires": []
    },
    {
        "id": "a670631b.fa015",
        "type": "inject",
        "z": "ed6ed80.df9a428",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 120,
        "y": 700,
        "wires": [
            [
                "cdcbc756.39282"
            ]
        ]
    },
    {
        "id": "5f5305c4.849e24",
        "type": "function",
        "z": "ed6ed80.df9a428",
        "name": "ModbusTCP-WertFormatieren",
        "func": "var msg1 = {payload:\"totalErzeugungTag\"};\n\n//var TCPEingang = parseInt(msg.payload[4]*0x1000 + msg.payload[5]);\nvar TCPEingang = parseInt(msg.payload[4]);\n\nif (TCPEingang >= 0) {\n  msg1.payload = TCPEingang.toString();\n  }\n  else msg1=null;\n  \n  return [msg1];\n\n\n",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 710,
        "y": 700,
        "wires": [
            [
                "2a9ee109.351a76",
                "f78e3322.47ee3"
            ]
        ]
    },
    {
        "id": "2a9ee109.351a76",
        "type": "debug",
        "z": "ed6ed80.df9a428",
        "name": "PVGesamtEnergieTag",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1020,
        "y": 700,
        "wires": []
    },
    {
        "id": "6c3388e6.49d618",
        "type": "ui_text",
        "z": "ed6ed80.df9a428",
        "d": true,
        "group": "a60f64e8.b1e808",
        "order": 3,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Gesamtenergie heute:",
        "format": "{{msg.payloadPV}} kWh",
        "layout": "row-spread",
        "x": 1140,
        "y": 840,
        "wires": []
    },
    {
        "id": "b679415e.318c5",
        "type": "ui_text",
        "z": "ed6ed80.df9a428",
        "d": true,
        "group": "a46f6674.a02528",
        "order": 7,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Gesamtenergie heute:",
        "format": "{{msg.payloadPV}} kWh",
        "layout": "row-spread",
        "x": 1140,
        "y": 880,
        "wires": []
    },
    {
        "id": "dc9f1d72.8ae33",
        "type": "ui_text",
        "z": "ed6ed80.df9a428",
        "group": "a46f6674.a02528",
        "order": 8,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Gesamtenergie PV:",
        "format": "{{msg.payloadPV}} kWh",
        "layout": "row-spread",
        "x": 1110,
        "y": 300,
        "wires": []
    },
    {
        "id": "6f25b77.2112d48",
        "type": "dwd",
        "z": "e153c63a.74d3e8",
        "region": "106437000 Odenwaldkreis (ERB)",
        "name": "",
        "gewitter": true,
        "sturm": true,
        "regen": true,
        "schnee": true,
        "nebel": true,
        "frost": true,
        "glatteis": true,
        "tauwetter": false,
        "hitze": true,
        "uv": true,
        "kueste": false,
        "binnensee": false,
        "x": 250,
        "y": 940,
        "wires": [
            [
                "6967ec62.3060ec",
                "a78cbd94.f062f8",
                "71705450.156d4c",
                "11ee8e5.32db9f2",
                "d1132205.515708",
                "fea65f9b.fcab08"
            ]
        ]
    },
    {
        "id": "694afb98.59a06c",
        "type": "dwdweather",
        "z": "e153c63a.74d3e8",
        "name": "WettervoraussageHeute",
        "mosmixStation": "10648",
        "lookAheadHours": "0",
        "additionalFields": "",
        "repeat": "",
        "x": 370,
        "y": 80,
        "wires": [
            [
                "6e3353ca.f8ce34",
                "cda05263.50e72"
            ]
        ]
    },
    {
        "id": "8d15481d.fa8b78",
        "type": "dwdweather",
        "z": "e153c63a.74d3e8",
        "name": "WettervoraussageMorgen",
        "mosmixStation": "10648",
        "lookAheadHours": "24",
        "additionalFields": "",
        "repeat": "",
        "x": 400,
        "y": 540,
        "wires": [
            [
                "f15bf01.0f8171",
                "91da9894.9288f8"
            ]
        ]
    },
    {
        "id": "fea65f9b.fcab08",
        "type": "ui_led",
        "z": "e153c63a.74d3e8",
        "group": "1021fa52.20344e",
        "order": 2,
        "width": 0,
        "height": 0,
        "label": "Unwetterwarnung?",
        "labelPlacement": "left",
        "labelAlignment": "left",
        "colorForValue": [
            {
                "color": "orange",
                "value": "1",
                "valueType": "num"
            },
            {
                "color": "green",
                "value": "0",
                "valueType": "num"
            },
            {
                "color": "red",
                "value": "2",
                "valueType": "num"
            },
            {
                "color": "red",
                "value": "3",
                "valueType": "num"
            },
            {
                "color": "red",
                "value": "4",
                "valueType": "num"
            },
            {
                "color": "red",
                "value": "5",
                "valueType": "num"
            }
        ],
        "allowColorForValueInMessage": false,
        "name": "Unwetterwarnung",
        "x": 1150,
        "y": 940,
        "wires": []
    },
    {
        "id": "b430b7e7.da9978",
        "type": "modbustcp-read",
        "z": "ed6ed80.df9a428",
        "d": true,
        "name": "Modbustcp1",
        "topic": "",
        "dataType": "HoldingRegister",
        "adr": "30531",
        "quantity": "8",
        "rate": "30",
        "rateUnit": "s",
        "server": "5e72848c.2f4304",
        "ieeeType": "off",
        "ieeeBE": true,
        "x": 390,
        "y": 420,
        "wires": [
            [
                "c6923ece.bf891",
                "b598fd9f.a41b18"
            ]
        ]
    },
    {
        "id": "cdcbc756.39282",
        "type": "modbustcp-read",
        "z": "ed6ed80.df9a428",
        "d": true,
        "name": "Modbustcp2",
        "topic": "",
        "dataType": "HoldingRegister",
        "adr": "30537",
        "quantity": "8",
        "rate": "25",
        "rateUnit": "s",
        "server": "5e72848c.2f4304",
        "ieeeType": "off",
        "ieeeBE": true,
        "x": 390,
        "y": 700,
        "wires": [
            [
                "203e19d4.1964b6",
                "5f5305c4.849e24"
            ]
        ]
    },
    {
        "id": "7be0d555.d320fc",
        "type": "ui_text_input",
        "z": "10e88481.cdf323",
        "name": "",
        "label": "Zählerstand Z1 am angegebenen Datum in kWh",
        "tooltip": "",
        "group": "fcaa59a3.3b18",
        "order": 2,
        "width": 0,
        "height": 0,
        "passthru": true,
        "mode": "number",
        "delay": 300,
        "topic": "",
        "x": 420,
        "y": 380,
        "wires": [
            [
                "e9ceb68d.dbe108"
            ]
        ]
    },
    {
        "id": "e9ceb68d.dbe108",
        "type": "function",
        "z": "10e88481.cdf323",
        "name": "",
        "func": "var VZahlerstandZ1 = msg.payload;\n\nglobal.set('VZahlerstandZ1',VZahlerstandZ1);\nVZahlerstandZ1 = global.get('VZahlerstandZ1');\n\nreturn [\n    {payloadVStromEuro:VZahlerstandZ1},\n    ]\n    ",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 820,
        "y": 380,
        "wires": [
            [
                "17f35545.bf68d3"
            ]
        ]
    },
    {
        "id": "17f35545.bf68d3",
        "type": "debug",
        "z": "10e88481.cdf323",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payloadVStromEuro",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1070,
        "y": 380,
        "wires": []
    },
    {
        "id": "fa9bfd13.02ae58",
        "type": "function",
        "z": "10e88481.cdf323",
        "name": "",
        "func": "var DatumUrsprung = msg.payload;\n\nglobal.set('DatumUrsprung',DatumUrsprung);\nDatumUrsprung = global.get('DatumUrsprung');\n\nreturn [\n    {payloadVStromEuro:DatumUrsprung},\n    ]\n    ",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 820,
        "y": 320,
        "wires": [
            [
                "801c9bae.293f08"
            ]
        ]
    },
    {
        "id": "801c9bae.293f08",
        "type": "debug",
        "z": "10e88481.cdf323",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payloadVStromEuro",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1070,
        "y": 320,
        "wires": []
    },
    {
        "id": "a7c0c25c.e25588",
        "type": "inject",
        "z": "10e88481.cdf323",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 90,
        "y": 380,
        "wires": [
            [
                "7be0d555.d320fc"
            ]
        ]
    },
    {
        "id": "8aae7f6d.b8513",
        "type": "inject",
        "z": "10e88481.cdf323",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "01.08.2020",
        "payloadType": "msg",
        "x": 100,
        "y": 320,
        "wires": [
            [
                "f9be2351.b792e"
            ]
        ]
    },
    {
        "id": "f9be2351.b792e",
        "type": "ui_text_input",
        "z": "10e88481.cdf323",
        "name": "",
        "label": "Zählerstand am:",
        "tooltip": "Bitte Datum des letzten Zhlerstands eingeben",
        "group": "fcaa59a3.3b18",
        "order": 1,
        "width": 0,
        "height": 0,
        "passthru": true,
        "mode": "text",
        "delay": 300,
        "topic": "",
        "x": 320,
        "y": 320,
        "wires": [
            [
                "fa9bfd13.02ae58"
            ]
        ]
    },
    {
        "id": "b6247106.5698a8",
        "type": "ui_text_input",
        "z": "10e88481.cdf323",
        "name": "",
        "label": "Zählerstand Z2 Verbrauch am angegebenen Datum in kWh",
        "tooltip": "",
        "group": "fcaa59a3.3b18",
        "order": 3,
        "width": 0,
        "height": 0,
        "passthru": true,
        "mode": "number",
        "delay": 300,
        "topic": "",
        "x": 460,
        "y": 440,
        "wires": [
            [
                "83aadbb.a253ea8"
            ]
        ]
    },
    {
        "id": "83aadbb.a253ea8",
        "type": "function",
        "z": "10e88481.cdf323",
        "name": "",
        "func": "var VZahlerstandZ2V = msg.payload;\n\nglobal.set('VZahlerstandZ2V',VZahlerstandZ2V);\nVZahlerstandZ2V = global.get('VZahlerstandZ2V');\n\nreturn [\n    {payloadVStromEuro:VZahlerstandZ2V},\n    ]\n    ",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 820,
        "y": 440,
        "wires": [
            [
                "9d556f65.286dd8"
            ]
        ]
    },
    {
        "id": "9d556f65.286dd8",
        "type": "debug",
        "z": "10e88481.cdf323",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payloadVStromEuro",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1070,
        "y": 440,
        "wires": []
    },
    {
        "id": "7145ef8c.04467",
        "type": "inject",
        "z": "10e88481.cdf323",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 90,
        "y": 440,
        "wires": [
            [
                "b6247106.5698a8"
            ]
        ]
    },
    {
        "id": "44da10fc.14edb8",
        "type": "ui_text_input",
        "z": "10e88481.cdf323",
        "name": "",
        "label": "Zählerstand Z2 Einspeisend am angegebenen Datum in kWh",
        "tooltip": "",
        "group": "fcaa59a3.3b18",
        "order": 4,
        "width": 0,
        "height": 0,
        "passthru": true,
        "mode": "number",
        "delay": 300,
        "topic": "",
        "x": 460,
        "y": 500,
        "wires": [
            [
                "98e5a77f.6d983"
            ]
        ]
    },
    {
        "id": "98e5a77f.6d983",
        "type": "function",
        "z": "10e88481.cdf323",
        "name": "",
        "func": "var VZahlerstandZ2E = msg.payload;\n\nglobal.set('VZahlerstandZ2E',VZahlerstandZ2E);\nVZahlerstandZ2E = global.get('VZahlerstandZ2E');\n\nreturn [\n    {payloadVStromEuro:VZahlerstandZ2E},\n    ]\n    ",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 820,
        "y": 500,
        "wires": [
            [
                "c8764e3d.035b9"
            ]
        ]
    },
    {
        "id": "c8764e3d.035b9",
        "type": "debug",
        "z": "10e88481.cdf323",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payloadVStromEuro",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1070,
        "y": 500,
        "wires": []
    },
    {
        "id": "eee13b43.2c0058",
        "type": "inject",
        "z": "10e88481.cdf323",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 90,
        "y": 500,
        "wires": [
            [
                "44da10fc.14edb8"
            ]
        ]
    },
    {
        "id": "6ce16b2c.a02e1c",
        "type": "inject",
        "z": "ed6ed80.df9a428",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "5",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "{\"sma_config\":{\"id\":\"1\",\"values\":{\"6100_00464800\":{\"name\":\"phase1_voltage\",\"divider\":100},\"6100_00464900\":{\"name\":\"phase2_voltage\",\"divider\":100},\"6100_00464A00\":{\"name\":\"phase3_voltage\",\"divider\":100},\"6100_40263F00\":{\"name\":\"Leistung\",\"divider\":1},\"6100_40463700\":{\"name\":\"grid_consumption\",\"divider\":1},\"6400_00260100\":{\"name\":\"Ertrag\",\"divider\":1000},\"6400_0046C300\":{\"name\":\"ZahlerstandPV\",\"divider\":1000}}}}",
        "payloadType": "json",
        "x": 150,
        "y": 120,
        "wires": [
            [
                "13536a00.713fc6"
            ]
        ]
    },
    {
        "id": "e1a2996f.92cfe",
        "type": "function",
        "z": "ed6ed80.df9a428",
        "name": "PVWechselrichter-WertFormatieren",
        "func": "var StromPV = msg.payload.Ertrag;\n\nStromPV = Math.round(StromPV);\n\nglobal.set('PV',StromPV);\nStromPV = global.get('PV');\n\nreturn [\n    {payloadPV:StromPV}\n    ]\n\n\n",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 750,
        "y": 260,
        "wires": [
            [
                "c2403115.1d3f8",
                "dc9f1d72.8ae33",
                "4a15dffa.d085f"
            ]
        ]
    },
    {
        "id": "780916bf.d5b638",
        "type": "ui_template",
        "z": "cf7b99f9.447d",
        "group": "4779f4a9.26d82c",
        "name": "Clock Toolbar",
        "order": 2,
        "width": "0",
        "height": "0",
        "format": "<script id=\"titleScript\" type=\"text/javascript\">\n\n$(function() {\n    if($('.md-toolbar-tools').length != 0){\n        loadClock();\n    }else setTimeout(loadClock, 500)\n});\n\nfunction loadClock(){\n    $('#clock').remove();\n    var toolbar = $('.md-toolbar-tools');\n    \n    var div = $('<div/>');\n    var p = $('<p/ id=\"clock\">');\n    \n    div.append(p);\n    div[0].style.margin = '5px 5px 5px auto';\n    toolbar.append(div);\n\n    function displayTitle(lh) {\n        p.text(lh); \n    }\n    \n    function upTime() {\n        var d = new Date();\n        p.text(d.toLocaleString());\n    }\n\n    if(document.clockInterval){ \n            clearInterval(document.clockInterval);\n            document.clockInterval = null;\n    }\n        \n    document.clockInterval = setInterval(upTime,1000);\n}\n\n</script>",
        "storeOutMessages": false,
        "fwdInMessages": false,
        "resendOnRefresh": false,
        "templateScope": "global",
        "x": 100,
        "y": 20,
        "wires": [
            []
        ]
    },
    {
        "id": "6fb1b506.c27aec",
        "type": "inject",
        "z": "cf7b99f9.447d",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "60",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 140,
        "y": 1180,
        "wires": [
            [
                "a73f7926.b16de8"
            ]
        ]
    },
    {
        "id": "a73f7926.b16de8",
        "type": "function",
        "z": "cf7b99f9.447d",
        "name": "Datum",
        "func": "var DatumUrsprung = global.get('DatumUrsprung');\n\n\nreturn [\n    {payload:DatumUrsprung},\n    ]",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 470,
        "y": 1180,
        "wires": [
            [
                "a11c485a.bb5f48",
                "e7dda0ef.575c78"
            ]
        ]
    },
    {
        "id": "a11c485a.bb5f48",
        "type": "ui_text",
        "z": "cf7b99f9.447d",
        "group": "5b4272b6.d2c704",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Datum seit letzter Ablesung - Nullung: ",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 1150,
        "y": 1180,
        "wires": []
    },
    {
        "id": "e7dda0ef.575c78",
        "type": "ui_text",
        "z": "cf7b99f9.447d",
        "group": "a46f6674.a02528",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Datum seit letzter Ablesung - Nullung: ",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 1150,
        "y": 1220,
        "wires": []
    }
]