Complete Code Example [ { "id": "607ac8c07e2e7b26", "type": "tab", "label": "Flow 1", "disabled": false, "info": "", "env": [] }, { "id": "44fe63d02d6eec25", "type": "tab", "label": "Licht", "disabled": false, "info": "", "env": [] }, { "id": "a5bb63694dfdece2", "type": "tab", "label": "heizung", "disabled": false, "info": "", "env": [] }, { "id": "acacaffc9e4a62cc", "type": "amazon-echo-hub", "z": "607ac8c07e2e7b26", "port": "80", "processinput": 0, "discovery": true, "x": 150, "y": 200, "wires": [ [ "876c2b65d97a929f", "5ba201ba50393322", "666da87dee7dd60f", "f89ded095ca54474", "bcfe0838e2de3c50", "c02224338dc9e80f", "a9063a3465866d54" ] ] }, { "id": "876c2b65d97a929f", "type": "amazon-echo-device", "z": "607ac8c07e2e7b26", "name": "chillen", "topic": "", "x": 390, "y": 200, "wires": [ [ "bc72d50aee31e42b" ] ] }, { "id": "5ba201ba50393322", "type": "amazon-echo-device", "z": "607ac8c07e2e7b26", "name": "Heizung Wohnzimmer", "topic": "", "x": 440, "y": 400, "wires": [ [ "81bc021e0d030210" ] ] }, { "id": "bc72d50aee31e42b", "type": "link out", "z": "607ac8c07e2e7b26", "name": "licht1_raus", "mode": "link", "links": [ "5e9e547bacbb3a8b" ], "x": 565, "y": 200, "wires": [] }, { "id": "666da87dee7dd60f", "type": "amazon-echo-device", "z": "607ac8c07e2e7b26", "name": "Fernsehlampe", "topic": "", "x": 420, "y": 160, "wires": [ [ "1ac57795bb570514" ] ] }, { "id": "f89ded095ca54474", "type": "amazon-echo-device", "z": "607ac8c07e2e7b26", "name": "Rundlampe", "topic": "", "x": 410, "y": 120, "wires": [ [ "cfdd66d56773dae2" ] ] }, { "id": "bcfe0838e2de3c50", "type": "amazon-echo-device", "z": "607ac8c07e2e7b26", "name": "Tischlampe", "topic": "", "x": 410, "y": 80, "wires": [ [ "9b3794bc1abdb112" ] ] }, { "id": "1ac57795bb570514", "type": "link out", "z": "607ac8c07e2e7b26", "name": "licht2_raus", "mode": "link", "links": [ "947a9e3e515a58ea" ], "x": 565, "y": 160, "wires": [] }, { "id": "cfdd66d56773dae2", "type": "link out", "z": "607ac8c07e2e7b26", "name": "licht3_raus", "mode": "link", "links": [ "b4b82c0ea03777fe" ], "x": 565, "y": 120, "wires": [] }, { "id": "9b3794bc1abdb112", "type": "link out", "z": "607ac8c07e2e7b26", "name": "licht4_raus", "mode": "link", "links": [ "6ceef1282961993c" ], "x": 565, "y": 80, "wires": [] }, { "id": "ef4a683bd08cb54e", "type": "comment", "z": "607ac8c07e2e7b26", "name": "Licht", "info": "", "x": 690, "y": 180, "wires": [] }, { "id": "81bc021e0d030210", "type": "link out", "z": "607ac8c07e2e7b26", "name": "Heizung_raus_1", "mode": "link", "links": [ "7a33b5d29fd8abcd" ], "x": 575, "y": 400, "wires": [] }, { "id": "8b8243f892d6ee0f", "type": "comment", "z": "607ac8c07e2e7b26", "name": "Heizung", "info": "", "x": 680, "y": 400, "wires": [] }, { "id": "c02224338dc9e80f", "type": "amazon-echo-device", "z": "607ac8c07e2e7b26", "name": "Tannenbaum", "topic": "", "x": 410, "y": 240, "wires": [ [ "5552a55fd0816b36" ] ] }, { "id": "5552a55fd0816b36", "type": "link out", "z": "607ac8c07e2e7b26", "name": "licht5_raus", "mode": "link", "links": [ "2ba0da20881f2496" ], "x": 565, "y": 240, "wires": [] }, { "id": "a9063a3465866d54", "type": "amazon-echo-device", "z": "607ac8c07e2e7b26", "name": "Eckenlampe", "topic": "", "x": 410, "y": 280, "wires": [ [ "bf7dc8ebd919efa1" ] ] }, { "id": "bf7dc8ebd919efa1", "type": "link out", "z": "607ac8c07e2e7b26", "name": "licht6_raus", "mode": "link", "links": [ "2661877360dff427" ], "x": 565, "y": 280, "wires": [] }, { "id": "5e9e547bacbb3a8b", "type": "link in", "z": "44fe63d02d6eec25", "name": "licht1_rein", "links": [ "bc72d50aee31e42b" ], "x": 195, "y": 120, "wires": [ [ "580a4ea6.5f6898", "4d46e8af.591f5", "335a3a27.e04086", "9cc3f9ab7c485d8a", "05715535c36221b5" ] ] }, { "id": "6e6c5028.5228c8", "type": "ioBroker out", "z": "44fe63d02d6eec25", "name": "zigbee.0.0c4314fffea04c8e", "topic": "zigbee.0.0c4314fffea04c8e.state", "ack": "false", "autoCreate": "true", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 700, "y": 40, "wires": [] }, { "id": "d3182df2.65b57", "type": "ioBroker out", "z": "44fe63d02d6eec25", "name": "zigbee.0.0c4314fffea82395", "topic": "zigbee.0.0c4314fffea82395.state", "ack": "false", "autoCreate": "true", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 700, "y": 80, "wires": [] }, { "id": "580a4ea6.5f6898", "type": "function", "z": "44fe63d02d6eec25", "name": "", "func": "if(msg.payload === \"on\"){\nmsg.payload = true;\n}\nif(msg.payload === \"off\"){\nmsg.payload = false;\n}\nreturn msg;", "outputs": 1, "timeout": "", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 420, "y": 100, "wires": [ [ "6e6c5028.5228c8", "d3182df2.65b57" ] ] }, { "id": "b6bc9102.f18aa8", "type": "ioBroker out", "z": "44fe63d02d6eec25", "name": "Color", "topic": "zigbee.0.0c4314fffea82395.color", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 810, "y": 140, "wires": [] }, { "id": "cb974b2b.00de9", "type": "change", "z": "44fe63d02d6eec25", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "#fff300", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 660, "y": 140, "wires": [ [ "b6bc9102.f18aa8" ] ] }, { "id": "5bc39a52.a15164", "type": "change", "z": "44fe63d02d6eec25", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "#ff0000", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 660, "y": 180, "wires": [ [ "2cff462d.5ea782" ] ] }, { "id": "2cff462d.5ea782", "type": "ioBroker out", "z": "44fe63d02d6eec25", "name": "Color", "topic": "zigbee.0.0c4314fffea04c8e.color", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 810, "y": 180, "wires": [] }, { "id": "4d46e8af.591f5", "type": "delay", "z": "44fe63d02d6eec25", "name": "", "pauseType": "delay", "timeout": "1000", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "outputs": 1, "x": 440, "y": 140, "wires": [ [ "cb974b2b.00de9" ] ] }, { "id": "335a3a27.e04086", "type": "delay", "z": "44fe63d02d6eec25", "name": "", "pauseType": "delay", "timeout": "1000", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "outputs": 1, "x": 440, "y": 180, "wires": [ [ "5bc39a52.a15164" ] ] }, { "id": "1289b7dcf8c23888", "type": "ioBroker out", "z": "44fe63d02d6eec25", "name": "zigbee.0.1c34f1fffe5407a9", "topic": "zigbee.0.1c34f1fffe5407a9.state", "ack": "false", "autoCreate": "true", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 700, "y": 220, "wires": [] }, { "id": "9cc3f9ab7c485d8a", "type": "function", "z": "44fe63d02d6eec25", "name": "", "func": "if(msg.payload === \"on\"){\nmsg.payload = true;\n}\nif(msg.payload === \"off\"){\nmsg.payload = false;\n}\nreturn msg;", "outputs": 1, "timeout": "", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 420, "y": 220, "wires": [ [ "1289b7dcf8c23888" ] ] }, { "id": "bd4e77e40ddf9b28", "type": "ioBroker out", "z": "44fe63d02d6eec25", "name": "Color", "topic": "zigbee.0.1c34f1fffe5407a9.color", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 810, "y": 260, "wires": [] }, { "id": "d05a0f02b2262ce3", "type": "change", "z": "44fe63d02d6eec25", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "#FAAC58", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 660, "y": 260, "wires": [ [ "bd4e77e40ddf9b28" ] ] }, { "id": "05715535c36221b5", "type": "delay", "z": "44fe63d02d6eec25", "name": "", "pauseType": "delay", "timeout": "1000", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "outputs": 1, "x": 440, "y": 260, "wires": [ [ "d05a0f02b2262ce3" ] ] }, { "id": "837b7cfe0b765743", "type": "comment", "z": "44fe63d02d6eec25", "name": "chillen", "info": "", "x": 70, "y": 120, "wires": [] }, { "id": "947a9e3e515a58ea", "type": "link in", "z": "44fe63d02d6eec25", "name": "licht2_rein", "links": [ "1ac57795bb570514" ], "x": 195, "y": 400, "wires": [ [ "ea4d3a4f8f7d5874", "f20b6367884a1d4a", "e3c8a6c78c4200ca" ] ] }, { "id": "b4b82c0ea03777fe", "type": "link in", "z": "44fe63d02d6eec25", "name": "licht3_rein", "links": [ "cfdd66d56773dae2" ], "x": 195, "y": 620, "wires": [ [ "0808639abe78b8a4", "8510369024de744d" ] ] }, { "id": "6ceef1282961993c", "type": "link in", "z": "44fe63d02d6eec25", "name": "licht4_rein", "links": [ "9b3794bc1abdb112" ], "x": 195, "y": 680, "wires": [ [ "e28610ae2779d54a" ] ] }, { "id": "52ad43f555b68ea0", "type": "comment", "z": "44fe63d02d6eec25", "name": "Fernsehlampe", "info": "", "x": 90, "y": 400, "wires": [] }, { "id": "08be8c86ef13bf52", "type": "comment", "z": "44fe63d02d6eec25", "name": "Rundlampe", "info": "", "x": 90, "y": 620, "wires": [] }, { "id": "7ed3261e2771f0ab", "type": "comment", "z": "44fe63d02d6eec25", "name": "Tischlampe", "info": "", "x": 90, "y": 680, "wires": [] }, { "id": "52ec577ac578d6b3", "type": "ioBroker out", "z": "44fe63d02d6eec25", "name": "zigbee.0.0c4314fffea04c8e", "topic": "zigbee.0.0c4314fffea04c8e.state", "ack": "false", "autoCreate": "true", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 700, "y": 320, "wires": [] }, { "id": "f0488ca6a0357967", "type": "ioBroker out", "z": "44fe63d02d6eec25", "name": "zigbee.0.0c4314fffea82395", "topic": "zigbee.0.0c4314fffea82395.state", "ack": "false", "autoCreate": "true", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 700, "y": 360, "wires": [] }, { "id": "ea4d3a4f8f7d5874", "type": "function", "z": "44fe63d02d6eec25", "name": "", "func": "if(msg.payload === \"on\"){\nmsg.payload = true;\n}\nif(msg.payload === \"off\"){\nmsg.payload = false;\n}\nreturn msg;", "outputs": 1, "timeout": "", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 420, "y": 380, "wires": [ [ "52ec577ac578d6b3", "f0488ca6a0357967" ] ] }, { "id": "85a1ca399967d1e9", "type": "ioBroker out", "z": "44fe63d02d6eec25", "name": "Color", "topic": "zigbee.0.0c4314fffea82395.color", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 810, "y": 420, "wires": [] }, { "id": "a8506acb6619e34a", "type": "change", "z": "44fe63d02d6eec25", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "#fff300", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 660, "y": 420, "wires": [ [ "85a1ca399967d1e9" ] ] }, { "id": "8b41317fc54ff011", "type": "change", "z": "44fe63d02d6eec25", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "#ff0000", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 660, "y": 460, "wires": [ [ "d77d8b37d8717807" ] ] }, { "id": "d77d8b37d8717807", "type": "ioBroker out", "z": "44fe63d02d6eec25", "name": "Color", "topic": "zigbee.0.0c4314fffea04c8e.color", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 810, "y": 460, "wires": [] }, { "id": "f20b6367884a1d4a", "type": "delay", "z": "44fe63d02d6eec25", "name": "", "pauseType": "delay", "timeout": "1000", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "outputs": 1, "x": 440, "y": 420, "wires": [ [ "a8506acb6619e34a" ] ] }, { "id": "e3c8a6c78c4200ca", "type": "delay", "z": "44fe63d02d6eec25", "name": "", "pauseType": "delay", "timeout": "1000", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "outputs": 1, "x": 440, "y": 460, "wires": [ [ "8b41317fc54ff011" ] ] }, { "id": "576824881917b075", "type": "ioBroker out", "z": "44fe63d02d6eec25", "name": "zigbee.0.1c34f1fffe5407a9", "topic": "zigbee.0.1c34f1fffe5407a9.state", "ack": "false", "autoCreate": "true", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 700, "y": 600, "wires": [] }, { "id": "0808639abe78b8a4", "type": "function", "z": "44fe63d02d6eec25", "name": "", "func": "if(msg.payload === \"on\"){\nmsg.payload = true;\n}\nif(msg.payload === \"off\"){\nmsg.payload = false;\n}\nreturn msg;", "outputs": 1, "timeout": "", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 420, "y": 600, "wires": [ [ "576824881917b075" ] ] }, { "id": "88279c339110f54d", "type": "ioBroker out", "z": "44fe63d02d6eec25", "name": "Color", "topic": "zigbee.0.1c34f1fffe5407a9.color", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 810, "y": 640, "wires": [] }, { "id": "a5f8dc708959cc08", "type": "change", "z": "44fe63d02d6eec25", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "#FAAC58", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 660, "y": 640, "wires": [ [ "88279c339110f54d" ] ] }, { "id": "8510369024de744d", "type": "delay", "z": "44fe63d02d6eec25", "name": "", "pauseType": "delay", "timeout": "1000", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "outputs": 1, "x": 440, "y": 640, "wires": [ [ "a5f8dc708959cc08" ] ] }, { "id": "c1b157c9269d21ff", "type": "ioBroker out", "z": "44fe63d02d6eec25", "name": "zigbee.0.84b4dbfffee082d8", "topic": "zigbee.0.84b4dbfffee082d8.state", "ack": "false", "autoCreate": "true", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 700, "y": 680, "wires": [] }, { "id": "e28610ae2779d54a", "type": "function", "z": "44fe63d02d6eec25", "name": "", "func": "if(msg.payload === \"on\"){\nmsg.payload = true;\n}\nif(msg.payload === \"off\"){\nmsg.payload = false;\n}\nreturn msg;", "outputs": 1, "timeout": "", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 420, "y": 680, "wires": [ [ "c1b157c9269d21ff" ] ] }, { "id": "2ba0da20881f2496", "type": "link in", "z": "44fe63d02d6eec25", "name": "licht5_rein", "links": [ "5552a55fd0816b36" ], "x": 195, "y": 740, "wires": [ [ "9e6af56ecf37e519" ] ] }, { "id": "11bd564371eaa593", "type": "comment", "z": "44fe63d02d6eec25", "name": "Tannenbaum", "info": "", "x": 90, "y": 740, "wires": [] }, { "id": "688add4aed099f2f", "type": "ioBroker out", "z": "44fe63d02d6eec25", "name": "sonoff.0.DVES_D43803", "topic": "sonoff.0.DVES_D43803.POWER", "ack": "false", "autoCreate": "true", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 690, "y": 740, "wires": [] }, { "id": "9e6af56ecf37e519", "type": "function", "z": "44fe63d02d6eec25", "name": "", "func": "if(msg.payload === \"on\"){\nmsg.payload = true;\n}\nif(msg.payload === \"off\"){\nmsg.payload = false;\n}\nreturn msg;", "outputs": 1, "timeout": "", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 420, "y": 740, "wires": [ [ "688add4aed099f2f" ] ] }, { "id": "2661877360dff427", "type": "link in", "z": "44fe63d02d6eec25", "name": "licht6_rein", "links": [ "bf7dc8ebd919efa1" ], "x": 195, "y": 800, "wires": [ [ "96ae7ea9accb3f06" ] ] }, { "id": "d4aeab3b8aeca52c", "type": "comment", "z": "44fe63d02d6eec25", "name": "Eckenlampe", "info": "", "x": 90, "y": 800, "wires": [] }, { "id": "191e829aeb57d1e9", "type": "ioBroker out", "z": "44fe63d02d6eec25", "name": "sonoff.0.DVES_D3C973", "topic": "sonoff.0.DVES_D3C973.POWER", "ack": "false", "autoCreate": "true", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 690, "y": 800, "wires": [] }, { "id": "96ae7ea9accb3f06", "type": "function", "z": "44fe63d02d6eec25", "name": "", "func": "if(msg.payload === \"on\"){\nmsg.payload = true;\n}\nif(msg.payload === \"off\"){\nmsg.payload = false;\n}\nreturn msg;", "outputs": 1, "timeout": "", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 420, "y": 800, "wires": [ [ "191e829aeb57d1e9" ] ] }, { "id": "7a33b5d29fd8abcd", "type": "link in", "z": "a5bb63694dfdece2", "name": "Heizung_rein_1", "links": [ "81bc021e0d030210" ], "x": 195, "y": 120, "wires": [ [ "2b656fc273f69d23" ] ] }, { "id": "2b656fc273f69d23", "type": "function", "z": "a5bb63694dfdece2", "name": "", "func": "if(msg.payload === \"on\"){\nmsg.payload = \"21\";\n}\nif(msg.payload === \"off\"){\nmsg.payload = \"5\";\n}\nreturn msg;", "outputs": 1, "timeout": "", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 300, "y": 120, "wires": [ [ "edde591161b06882" ] ] }, { "id": "edde591161b06882", "type": "ioBroker out", "z": "a5bb63694dfdece2", "name": "zigbee.0.0c4314fffea82395", "topic": "zigbee.0.54ef44100051c50b.occupied_heating_setpoint", "ack": "false", "autoCreate": "true", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 500, "y": 120, "wires": [] }, { "id": "42712b888c07a2bb", "type": "comment", "z": "a5bb63694dfdece2", "name": "Wohnzimmer", "info": "", "x": 90, "y": 120, "wires": [] } ]