User Tools

Site Tools


homeautomatisation:node-red:example_with_different_flows

Here is an example for node-red with alexa hub link in and link out over different flows:

[
    {
        "id": "3df220e5.564c5",
        "type": "tab",
        "label": "AmazonHub",
        "disabled": false,
        "info": ""
    },
    {
        "id": "3122fce3.92af0c",
        "type": "amazon-echo-hub",
        "z": "3df220e5.564c5",
        "port": "80",
        "processinput": 0,
        "discovery": true,
        "x": 110,
        "y": 380,
        "wires": [
            [
                "c385dc9d.1fa788",
                "9e2f6ddd.e61e38",
                "17f328db.d03bef",
                "b0e5ad16.6d6c1",
                "9cff3fc6.ce219",
                "7ecb6785.e50328",
                "d3a17570.098738",
                "9e762f0.3ba42d"
            ]
        ]
    },
    {
        "id": "c385dc9d.1fa788",
        "type": "amazon-echo-device",
        "z": "3df220e5.564c5",
        "name": "Temperatur Wohnzimmer",
        "topic": "zigbee.0.00158d000445963e",
        "x": 410,
        "y": 360,
        "wires": [
            [
                "64b6309.7ab9c5"
            ]
        ]
    },
    {
        "id": "9e2f6ddd.e61e38",
        "type": "amazon-echo-device",
        "z": "3df220e5.564c5",
        "name": "Temperatur Marie",
        "topic": "zigbee.0.00158d0003cf07b4",
        "x": 390,
        "y": 440,
        "wires": [
            [
                "c33e1483.339cc8"
            ]
        ]
    },
    {
        "id": "17f328db.d03bef",
        "type": "amazon-echo-device",
        "z": "3df220e5.564c5",
        "name": "Rundlampe",
        "topic": "sonoff.0.DVES_D43803",
        "x": 370,
        "y": 100,
        "wires": [
            [
                "3119c8d5.868c6"
            ]
        ]
    },
    {
        "id": "b0e5ad16.6d6c1",
        "type": "amazon-echo-device",
        "z": "3df220e5.564c5",
        "name": "Salzlampe",
        "topic": "sonoff.0.DVES_D3C973",
        "x": 370,
        "y": 140,
        "wires": [
            [
                "584b023.a34ff7c"
            ]
        ]
    },
    {
        "id": "9cff3fc6.ce219",
        "type": "amazon-echo-device",
        "z": "3df220e5.564c5",
        "name": "Fernsehlampe",
        "topic": "zigbee.0.0c4314fffea04c8e",
        "x": 380,
        "y": 180,
        "wires": [
            [
                "83a89f56.d14aa"
            ]
        ]
    },
    {
        "id": "7ecb6785.e50328",
        "type": "amazon-echo-device",
        "z": "3df220e5.564c5",
        "name": "chillen",
        "topic": "zigbee.0.0c4314fffea04c8e",
        "x": 350,
        "y": 220,
        "wires": [
            [
                "2cac1ab3.775dde"
            ]
        ]
    },
    {
        "id": "d3a17570.098738",
        "type": "amazon-echo-device",
        "z": "3df220e5.564c5",
        "name": "Temperatur Bad",
        "topic": "zigbee.0.00158d0003cbc5f1",
        "x": 380,
        "y": 400,
        "wires": [
            [
                "7a45a1a2.8a0998"
            ]
        ]
    },
    {
        "id": "b17cf583.509cd",
        "type": "link out",
        "z": "3df220e5.564c5",
        "name": "OutTempSchlafzimmer",
        "links": [
            "c17a9e77.34bf28"
        ],
        "x": 575,
        "y": 320,
        "wires": []
    },
    {
        "id": "9e762f0.3ba42d",
        "type": "amazon-echo-device",
        "z": "3df220e5.564c5",
        "name": "Temperatur Schlafzimmer",
        "topic": "zigbee.0.00158d0004102b56",
        "x": 410,
        "y": 320,
        "wires": [
            [
                "b17cf583.509cd"
            ]
        ]
    },
    {
        "id": "64b6309.7ab9c5",
        "type": "link out",
        "z": "3df220e5.564c5",
        "name": "OutTempWohnzimmer",
        "links": [
            "7f8c2a0e.8afad4"
        ],
        "x": 575,
        "y": 360,
        "wires": []
    },
    {
        "id": "7a45a1a2.8a0998",
        "type": "link out",
        "z": "3df220e5.564c5",
        "name": "OutTempBad",
        "links": [
            "4c3e6fbb.e20b8"
        ],
        "x": 575,
        "y": 400,
        "wires": []
    },
    {
        "id": "c33e1483.339cc8",
        "type": "link out",
        "z": "3df220e5.564c5",
        "name": "OutTempMarie",
        "links": [
            "e873dc65.0a42c8"
        ],
        "x": 575,
        "y": 440,
        "wires": []
    },
    {
        "id": "3119c8d5.868c6",
        "type": "link out",
        "z": "3df220e5.564c5",
        "name": "inRundlampe",
        "links": [
            "6d489538.08172c"
        ],
        "x": 555,
        "y": 100,
        "wires": []
    },
    {
        "id": "584b023.a34ff7c",
        "type": "link out",
        "z": "3df220e5.564c5",
        "name": "inSalzlampe",
        "links": [
            "b999b4b5.18ac7"
        ],
        "x": 555,
        "y": 140,
        "wires": []
    },
    {
        "id": "83a89f56.d14aa",
        "type": "link out",
        "z": "3df220e5.564c5",
        "name": "inFernsehlampe",
        "links": [
            "c2111f0a.deb328"
        ],
        "x": 555,
        "y": 180,
        "wires": []
    },
    {
        "id": "2cac1ab3.775dde",
        "type": "link out",
        "z": "3df220e5.564c5",
        "name": "inchillen",
        "links": [
            "2d1321e3.69eab6"
        ],
        "x": 555,
        "y": 220,
        "wires": []
    },
    {
        "id": "80d82801.9cd72",
        "type": "comment",
        "z": "3df220e5.564c5",
        "name": "Temperatur Ansagen",
        "info": "",
        "x": 400,
        "y": 280,
        "wires": []
    },
    {
        "id": "f4f2a445.a21498",
        "type": "comment",
        "z": "3df220e5.564c5",
        "name": "Licht Steuerung",
        "info": "",
        "x": 380,
        "y": 60,
        "wires": []
    }
]

[
    {
        "id": "6d200648.fa0bc8",
        "type": "tab",
        "label": "Temperatur",
        "disabled": false,
        "info": ""
    },
    {
        "id": "c17a9e77.34bf28",
        "type": "link in",
        "z": "6d200648.fa0bc8",
        "name": "InTempSchlafzimmer",
        "links": [
            "b17cf583.509cd"
        ],
        "x": 155,
        "y": 100,
        "wires": [
            [
                "de7a5f87.886c9"
            ]
        ]
    },
    {
        "id": "228051ba.e38106",
        "type": "ioBroker out",
        "z": "6d200648.fa0bc8",
        "name": "speak",
        "topic": "",
        "ack": "false",
        "autoCreate": "false",
        "stateName": "",
        "role": "",
        "stateUnit": "",
        "stateMin": "",
        "stateMax": "",
        "x": 1090,
        "y": 100,
        "wires": []
    },
    {
        "id": "8194d05a.1f0048",
        "type": "function",
        "z": "6d200648.fa0bc8",
        "name": "Temperatur auslesen",
        "func": "var device = msg.payload[0]\nvar str = msg.payload[1];\nvar res = str.substr(0, 5);\nmsg.payload = Math.round(res);\nmsg.payload = \"Es sind \" + msg.payload + \" Grad im Schlafzimmer\";\nmsg.url = \"\";\nvar command = \"alexa2.0.Echo-Devices.\" + device + \".Commands.speak\"\nmsg.topic = command;\nreturn msg;\n",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 900,
        "y": 100,
        "wires": [
            [
                "228051ba.e38106"
            ]
        ]
    },
    {
        "id": "81d31f94.76bd88",
        "type": "ioBroker get",
        "z": "6d200648.fa0bc8",
        "name": "Temperature",
        "topic": "zigbee.0.00158d0004102b56.temperature",
        "attrname": "payload",
        "payloadType": "value",
        "x": 550,
        "y": 140,
        "wires": [
            [
                "85f2e2c7.2e3ba"
            ]
        ]
    },
    {
        "id": "2f4ff226.c5ca76",
        "type": "ioBroker get",
        "z": "6d200648.fa0bc8",
        "name": "serialNumber",
        "topic": "alexa2.0.History.serialNumber",
        "attrname": "payload",
        "payloadType": "value",
        "x": 550,
        "y": 80,
        "wires": [
            [
                "85f2e2c7.2e3ba"
            ]
        ]
    },
    {
        "id": "85f2e2c7.2e3ba",
        "type": "join",
        "z": "6d200648.fa0bc8",
        "name": "",
        "mode": "custom",
        "build": "array",
        "property": "payload",
        "propertyType": "msg",
        "key": "topic",
        "joiner": "\\n",
        "joinerType": "str",
        "accumulate": false,
        "timeout": "",
        "count": "2",
        "reduceRight": false,
        "reduceExp": "",
        "reduceInit": "",
        "reduceInitType": "",
        "reduceFixup": "",
        "x": 710,
        "y": 100,
        "wires": [
            [
                "8194d05a.1f0048"
            ]
        ]
    },
    {
        "id": "de7a5f87.886c9",
        "type": "delay",
        "z": "6d200648.fa0bc8",
        "name": "",
        "pauseType": "delay",
        "timeout": "1000",
        "timeoutUnits": "milliseconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "x": 300,
        "y": 100,
        "wires": [
            [
                "2f4ff226.c5ca76",
                "81d31f94.76bd88"
            ]
        ]
    },
    {
        "id": "e80d9d5d.be2f5",
        "type": "ioBroker get",
        "z": "6d200648.fa0bc8",
        "name": "Temperature",
        "topic": "zigbee.0.00158d000445963e.temperature",
        "attrname": "payload",
        "payloadType": "value",
        "x": 550,
        "y": 280,
        "wires": [
            [
                "2eabcbbd.abdea4"
            ]
        ]
    },
    {
        "id": "6f36a6bc.c1ff88",
        "type": "function",
        "z": "6d200648.fa0bc8",
        "name": "Temperatur auslesen",
        "func": "var device = msg.payload[1]\nvar str = msg.payload[0];\nvar res = str.substr(0, 5);\nmsg.payload = Math.round(res);\nmsg.payload = \"Es sind \" + msg.payload + \" Grad im Wohnzimmer\";\nmsg.url = \"\";\nvar command = \"alexa2.0.Echo-Devices.\" + device + \".Commands.speak\"\nmsg.topic = command;\nreturn msg;\n",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 900,
        "y": 240,
        "wires": [
            [
                "bac5a475.2635d8"
            ]
        ]
    },
    {
        "id": "bac5a475.2635d8",
        "type": "ioBroker out",
        "z": "6d200648.fa0bc8",
        "name": "speak",
        "topic": "",
        "ack": "false",
        "autoCreate": "false",
        "stateName": "",
        "role": "",
        "stateUnit": "",
        "stateMin": "",
        "stateMax": "",
        "x": 1090,
        "y": 240,
        "wires": []
    },
    {
        "id": "a74bb881.d62de",
        "type": "ioBroker get",
        "z": "6d200648.fa0bc8",
        "name": "serialNumber",
        "topic": "alexa2.0.History.serialNumber",
        "attrname": "payload",
        "payloadType": "value",
        "x": 550,
        "y": 220,
        "wires": [
            [
                "2eabcbbd.abdea4"
            ]
        ]
    },
    {
        "id": "2eabcbbd.abdea4",
        "type": "join",
        "z": "6d200648.fa0bc8",
        "name": "",
        "mode": "custom",
        "build": "array",
        "property": "payload",
        "propertyType": "msg",
        "key": "topic",
        "joiner": "\\n",
        "joinerType": "str",
        "accumulate": false,
        "timeout": "",
        "count": "2",
        "reduceRight": false,
        "reduceExp": "",
        "reduceInit": "",
        "reduceInitType": "",
        "reduceFixup": "",
        "x": 710,
        "y": 240,
        "wires": [
            [
                "6f36a6bc.c1ff88"
            ]
        ]
    },
    {
        "id": "e3f8393b.6dab68",
        "type": "delay",
        "z": "6d200648.fa0bc8",
        "name": "",
        "pauseType": "delay",
        "timeout": "1000",
        "timeoutUnits": "milliseconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "x": 300,
        "y": 240,
        "wires": [
            [
                "e80d9d5d.be2f5",
                "a74bb881.d62de"
            ]
        ]
    },
    {
        "id": "7f8c2a0e.8afad4",
        "type": "link in",
        "z": "6d200648.fa0bc8",
        "name": "InTempWohnzimmer",
        "links": [
            "64b6309.7ab9c5"
        ],
        "x": 155,
        "y": 240,
        "wires": [
            [
                "e3f8393b.6dab68"
            ]
        ]
    },
    {
        "id": "7fb5182e.5a6328",
        "type": "ioBroker get",
        "z": "6d200648.fa0bc8",
        "name": "Temperature",
        "topic": "zigbee.0.00158d0003cbc5f1.temperature",
        "attrname": "payload",
        "payloadType": "value",
        "x": 550,
        "y": 560,
        "wires": [
            [
                "90164310.11a65"
            ]
        ]
    },
    {
        "id": "7acb7045.f7b1b8",
        "type": "function",
        "z": "6d200648.fa0bc8",
        "name": "Temperatur auslesen",
        "func": "var device = msg.payload[1]\nvar str = msg.payload[0];\nvar res = str.substr(0, 5);\nmsg.payload = Math.round(res);\nmsg.payload = \"Es sind \" + msg.payload + \" Grad bei Marie\";\nmsg.url = \"\";\nvar command = \"alexa2.0.Echo-Devices.\" + device + \".Commands.speak\"\nmsg.topic = command;\nreturn msg;\n",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 900,
        "y": 520,
        "wires": [
            [
                "13499fd2.2e26a"
            ]
        ]
    },
    {
        "id": "13499fd2.2e26a",
        "type": "ioBroker out",
        "z": "6d200648.fa0bc8",
        "name": "speak",
        "topic": "",
        "ack": "false",
        "autoCreate": "false",
        "stateName": "",
        "role": "",
        "stateUnit": "",
        "stateMin": "",
        "stateMax": "",
        "x": 1090,
        "y": 520,
        "wires": []
    },
    {
        "id": "7b0a96bc.18a688",
        "type": "ioBroker get",
        "z": "6d200648.fa0bc8",
        "name": "serialNumber",
        "topic": "alexa2.0.History.serialNumber",
        "attrname": "payload",
        "payloadType": "value",
        "x": 550,
        "y": 500,
        "wires": [
            [
                "90164310.11a65"
            ]
        ]
    },
    {
        "id": "90164310.11a65",
        "type": "join",
        "z": "6d200648.fa0bc8",
        "name": "",
        "mode": "custom",
        "build": "array",
        "property": "payload",
        "propertyType": "msg",
        "key": "topic",
        "joiner": "\\n",
        "joinerType": "str",
        "accumulate": false,
        "timeout": "",
        "count": "2",
        "reduceRight": false,
        "reduceExp": "",
        "reduceInit": "",
        "reduceInitType": "",
        "reduceFixup": "",
        "x": 710,
        "y": 520,
        "wires": [
            [
                "7acb7045.f7b1b8"
            ]
        ]
    },
    {
        "id": "789bf35f.fe611c",
        "type": "delay",
        "z": "6d200648.fa0bc8",
        "name": "",
        "pauseType": "delay",
        "timeout": "1000",
        "timeoutUnits": "milliseconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "x": 300,
        "y": 520,
        "wires": [
            [
                "7fb5182e.5a6328",
                "7b0a96bc.18a688"
            ]
        ]
    },
    {
        "id": "2d327ece.563e9a",
        "type": "ioBroker get",
        "z": "6d200648.fa0bc8",
        "name": "Temperature",
        "topic": "zigbee.0.00158d0003cbc5f1.temperature",
        "attrname": "payload",
        "payloadType": "value",
        "x": 550,
        "y": 420,
        "wires": [
            [
                "7b868f75.4aa7f8"
            ]
        ]
    },
    {
        "id": "6807364f.9f9838",
        "type": "function",
        "z": "6d200648.fa0bc8",
        "name": "Temperatur auslesen",
        "func": "var device = msg.payload[1]\nvar str = msg.payload[0];\nvar res = str.substr(0, 5);\nmsg.payload = Math.round(res);\nmsg.payload = \"Es sind \" + msg.payload + \" Grad im Bad\";\nmsg.url = \"\";\nvar command = \"alexa2.0.Echo-Devices.\" + device + \".Commands.speak\"\nmsg.topic = command;\nreturn msg;\n",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 900,
        "y": 380,
        "wires": [
            [
                "e38d8c2f.03c258"
            ]
        ]
    },
    {
        "id": "e38d8c2f.03c258",
        "type": "ioBroker out",
        "z": "6d200648.fa0bc8",
        "name": "speak",
        "topic": "",
        "ack": "false",
        "autoCreate": "false",
        "stateName": "",
        "role": "",
        "stateUnit": "",
        "stateMin": "",
        "stateMax": "",
        "x": 1090,
        "y": 380,
        "wires": []
    },
    {
        "id": "9352dc95.be3768",
        "type": "ioBroker get",
        "z": "6d200648.fa0bc8",
        "name": "serialNumber",
        "topic": "alexa2.0.History.serialNumber",
        "attrname": "payload",
        "payloadType": "value",
        "x": 550,
        "y": 360,
        "wires": [
            [
                "7b868f75.4aa7f8"
            ]
        ]
    },
    {
        "id": "7b868f75.4aa7f8",
        "type": "join",
        "z": "6d200648.fa0bc8",
        "name": "",
        "mode": "custom",
        "build": "array",
        "property": "payload",
        "propertyType": "msg",
        "key": "topic",
        "joiner": "\\n",
        "joinerType": "str",
        "accumulate": false,
        "timeout": "",
        "count": "2",
        "reduceRight": false,
        "reduceExp": "",
        "reduceInit": "",
        "reduceInitType": "",
        "reduceFixup": "",
        "x": 710,
        "y": 380,
        "wires": [
            [
                "6807364f.9f9838"
            ]
        ]
    },
    {
        "id": "af564bbe.f5d198",
        "type": "delay",
        "z": "6d200648.fa0bc8",
        "name": "",
        "pauseType": "delay",
        "timeout": "1000",
        "timeoutUnits": "milliseconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "x": 300,
        "y": 380,
        "wires": [
            [
                "2d327ece.563e9a",
                "9352dc95.be3768"
            ]
        ]
    },
    {
        "id": "4c3e6fbb.e20b8",
        "type": "link in",
        "z": "6d200648.fa0bc8",
        "name": "inTempBad",
        "links": [
            "7a45a1a2.8a0998"
        ],
        "x": 155,
        "y": 380,
        "wires": [
            [
                "af564bbe.f5d198"
            ]
        ]
    },
    {
        "id": "e873dc65.0a42c8",
        "type": "link in",
        "z": "6d200648.fa0bc8",
        "name": "inTempMarie",
        "links": [
            "c33e1483.339cc8"
        ],
        "x": 155,
        "y": 520,
        "wires": [
            [
                "789bf35f.fe611c"
            ]
        ]
    }
]

[
    {
        "id": "b66f5b18.058318",
        "type": "tab",
        "label": "Lampen",
        "disabled": false,
        "info": ""
    },
    {
        "id": "9f1085ad.a9a0c8",
        "type": "function",
        "z": "b66f5b18.058318",
        "name": "",
        "func": "if(msg.payload === \"on\"){\nmsg.payload = true;\n}\nif(msg.payload === \"off\"){\nmsg.payload = false;\n}\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 360,
        "y": 60,
        "wires": [
            [
                "3dc56a9.4a91a16"
            ]
        ]
    },
    {
        "id": "3dc56a9.4a91a16",
        "type": "ioBroker out",
        "z": "b66f5b18.058318",
        "name": "sonoff.0.DVES_D43803",
        "topic": "sonoff.0.DVES_D43803.POWER",
        "ack": "false",
        "autoCreate": "true",
        "stateName": "",
        "role": "",
        "payloadType": "",
        "readonly": "",
        "stateUnit": "",
        "stateMin": "",
        "stateMax": "",
        "x": 650,
        "y": 60,
        "wires": []
    },
    {
        "id": "991d4d4a.8233a8",
        "type": "function",
        "z": "b66f5b18.058318",
        "name": "",
        "func": "if(msg.payload === \"on\"){\nmsg.payload = true;\n}\nif(msg.payload === \"off\"){\nmsg.payload = false;\n}\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 360,
        "y": 120,
        "wires": [
            [
                "ec275c63.3439b8"
            ]
        ]
    },
    {
        "id": "ec275c63.3439b8",
        "type": "ioBroker out",
        "z": "b66f5b18.058318",
        "name": "sonoff.0.DVES_D3C973",
        "topic": "sonoff.0.DVES_D3C973.POWER",
        "ack": "false",
        "autoCreate": "true",
        "stateName": "",
        "role": "",
        "payloadType": "",
        "readonly": "",
        "stateUnit": "",
        "stateMin": "",
        "stateMax": "",
        "x": 650,
        "y": 120,
        "wires": []
    },
    {
        "id": "779d38d1.d2c38",
        "type": "ioBroker out",
        "z": "b66f5b18.058318",
        "name": "zigbee.0.0c4314fffea04c8e",
        "topic": "zigbee.0.0c4314fffea04c8e.state",
        "ack": "false",
        "autoCreate": "true",
        "stateName": "",
        "role": "",
        "payloadType": "",
        "readonly": "",
        "stateUnit": "",
        "stateMin": "",
        "stateMax": "",
        "x": 660,
        "y": 180,
        "wires": []
    },
    {
        "id": "3918dcc3.041c94",
        "type": "ioBroker out",
        "z": "b66f5b18.058318",
        "name": "zigbee.0.0c4314fffea82395",
        "topic": "zigbee.0.0c4314fffea82395.state",
        "ack": "false",
        "autoCreate": "true",
        "stateName": "",
        "role": "",
        "payloadType": "",
        "readonly": "",
        "stateUnit": "",
        "stateMin": "",
        "stateMax": "",
        "x": 660,
        "y": 240,
        "wires": []
    },
    {
        "id": "eaf2faa7.2a221",
        "type": "function",
        "z": "b66f5b18.058318",
        "name": "",
        "func": "if(msg.payload === \"on\"){\nmsg.payload = true;\n}\nif(msg.payload === \"off\"){\nmsg.payload = false;\n}\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 360,
        "y": 180,
        "wires": [
            [
                "779d38d1.d2c38",
                "3918dcc3.041c94"
            ]
        ]
    },
    {
        "id": "53df81cd.7e0338",
        "type": "ioBroker out",
        "z": "b66f5b18.058318",
        "name": "zigbee.0.0c4314fffea04c8e",
        "topic": "zigbee.0.0c4314fffea04c8e.state",
        "ack": "false",
        "autoCreate": "true",
        "stateName": "",
        "role": "",
        "payloadType": "",
        "readonly": "",
        "stateUnit": "",
        "stateMin": "",
        "stateMax": "",
        "x": 660,
        "y": 300,
        "wires": []
    },
    {
        "id": "3c1705fb.1af832",
        "type": "ioBroker out",
        "z": "b66f5b18.058318",
        "name": "zigbee.0.0c4314fffea82395",
        "topic": "zigbee.0.0c4314fffea82395.state",
        "ack": "false",
        "autoCreate": "true",
        "stateName": "",
        "role": "",
        "payloadType": "",
        "readonly": "",
        "stateUnit": "",
        "stateMin": "",
        "stateMax": "",
        "x": 660,
        "y": 340,
        "wires": []
    },
    {
        "id": "80337c5e.4581d8",
        "type": "function",
        "z": "b66f5b18.058318",
        "name": "",
        "func": "if(msg.payload === \"on\"){\nmsg.payload = true;\n}\nif(msg.payload === \"off\"){\nmsg.payload = false;\n}\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 360,
        "y": 300,
        "wires": [
            [
                "53df81cd.7e0338",
                "3c1705fb.1af832"
            ]
        ]
    },
    {
        "id": "436c9da8.5f65c4",
        "type": "ioBroker out",
        "z": "b66f5b18.058318",
        "name": "Color",
        "topic": "zigbee.0.0c4314fffea82395.color",
        "ack": "false",
        "autoCreate": "false",
        "stateName": "",
        "role": "",
        "payloadType": "",
        "readonly": "",
        "stateUnit": "",
        "stateMin": "",
        "stateMax": "",
        "x": 850,
        "y": 400,
        "wires": []
    },
    {
        "id": "1249ff85.35382",
        "type": "function",
        "z": "b66f5b18.058318",
        "name": "",
        "func": "if(msg.payload === \"on\"){\nmsg.payload = true;\n}\nif(msg.payload === \"off\"){\nmsg.payload = false;\n}\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 380,
        "y": 500,
        "wires": [
            [
                "e47ef103.43965"
            ]
        ]
    },
    {
        "id": "e47ef103.43965",
        "type": "ioBroker out",
        "z": "b66f5b18.058318",
        "name": "sonoff.0.DVES_D3C973",
        "topic": "sonoff.0.DVES_D3C973.POWER",
        "ack": "false",
        "autoCreate": "true",
        "stateName": "",
        "role": "",
        "payloadType": "",
        "readonly": "",
        "stateUnit": "",
        "stateMin": "",
        "stateMax": "",
        "x": 650,
        "y": 500,
        "wires": []
    },
    {
        "id": "14023e21.4d891a",
        "type": "change",
        "z": "b66f5b18.058318",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "#fff300",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 650,
        "y": 400,
        "wires": [
            [
                "436c9da8.5f65c4"
            ]
        ]
    },
    {
        "id": "b16ea62d.03697",
        "type": "change",
        "z": "b66f5b18.058318",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "#ff0000",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 650,
        "y": 440,
        "wires": [
            [
                "6d9a0c7c.889304"
            ]
        ]
    },
    {
        "id": "6d9a0c7c.889304",
        "type": "ioBroker out",
        "z": "b66f5b18.058318",
        "name": "Color",
        "topic": "zigbee.0.0c4314fffea04c8e.color",
        "ack": "false",
        "autoCreate": "false",
        "stateName": "",
        "role": "",
        "payloadType": "",
        "readonly": "",
        "stateUnit": "",
        "stateMin": "",
        "stateMax": "",
        "x": 850,
        "y": 440,
        "wires": []
    },
    {
        "id": "a72aaab7.6cba28",
        "type": "delay",
        "z": "b66f5b18.058318",
        "name": "",
        "pauseType": "delay",
        "timeout": "1000",
        "timeoutUnits": "milliseconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "x": 420,
        "y": 400,
        "wires": [
            [
                "14023e21.4d891a"
            ]
        ]
    },
    {
        "id": "7d9c229c.7410e4",
        "type": "delay",
        "z": "b66f5b18.058318",
        "name": "",
        "pauseType": "delay",
        "timeout": "1000",
        "timeoutUnits": "milliseconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "x": 420,
        "y": 440,
        "wires": [
            [
                "b16ea62d.03697"
            ]
        ]
    },
    {
        "id": "6d489538.08172c",
        "type": "link in",
        "z": "b66f5b18.058318",
        "name": "OutRundlampe",
        "links": [
            "3119c8d5.868c6"
        ],
        "x": 215,
        "y": 60,
        "wires": [
            [
                "9f1085ad.a9a0c8"
            ]
        ]
    },
    {
        "id": "b999b4b5.18ac7",
        "type": "link in",
        "z": "b66f5b18.058318",
        "name": "OutSalzlampe",
        "links": [
            "584b023.a34ff7c"
        ],
        "x": 215,
        "y": 120,
        "wires": [
            [
                "991d4d4a.8233a8"
            ]
        ]
    },
    {
        "id": "c2111f0a.deb328",
        "type": "link in",
        "z": "b66f5b18.058318",
        "name": "OutFernsehlampe",
        "links": [
            "83a89f56.d14aa"
        ],
        "x": 215,
        "y": 180,
        "wires": [
            [
                "eaf2faa7.2a221"
            ]
        ]
    },
    {
        "id": "2d1321e3.69eab6",
        "type": "link in",
        "z": "b66f5b18.058318",
        "name": "Outchillen",
        "links": [
            "2cac1ab3.775dde"
        ],
        "x": 215,
        "y": 420,
        "wires": [
            [
                "80337c5e.4581d8",
                "a72aaab7.6cba28",
                "7d9c229c.7410e4",
                "1249ff85.35382"
            ]
        ]
    }
]
homeautomatisation/node-red/example_with_different_flows.txt · Last modified: 2022/02/24 22:11 by illu