[ { "id": "29b296e6cd0e71d4", "type": "tab", "label": "A.Alexa", "disabled": false, "info": "", "env": [] }, { "id": "9244bfd4d05d9c3e", "type": "group", "z": "29b296e6cd0e71d4", "name": "alexa - init", "style": { "fill": "#ff0000", "fill-opacity": "0.05", "label": true }, "nodes": [ "1366f3887e6de0cb", "8231cb6e85943b7c", "3b2c87205ae7f992", "823b0b2460f6ef95", "eadb9f80ae5d73a8", "ba75869a8d314e54", "e94465489f353958" ], "x": 74, "y": 879, "w": 772, "h": 202 }, { "id": "bbefe025338a4088", "type": "group", "z": "29b296e6cd0e71d4", "name": "", "style": { "fill": "#777777", "fill-opacity": "0.05", "label": true }, "nodes": [ "14e0d85a9ac6e841", "1c534b810e84e08e", "e99dd4c84ec9e592", "ecbb15d090609fc8", "5c6dcdea30bb06c9", "dd0cd2517e6feaf8", "6780505ad50ac4e1", "ae46386170328f5c", "908ea7d905a2dad7", "51ceee5c0be8de4a" ], "x": 48, "y": 1153, "w": 1684, "h": 1514 }, { "id": "0cf81dc631df6bea", "type": "group", "z": "29b296e6cd0e71d4", "name": "alexa - list", "style": { "label": true, "fill": "#ffffff", "fill-opacity": "0.5" }, "nodes": [ "5de8989847f9f971", "f2a5668521a88557", "343850ed88d34457" ], "x": 74, "y": 759, "w": 692, "h": 82 }, { "id": "ba098df60748f1ec", "type": "group", "z": "29b296e6cd0e71d4", "name": "Amazon - A32DOYMUN6DTXA, A4ZP7ZC4PI6TO (Echo dot)", "style": { "fill": "#777777", "fill-opacity": "0.05", "label": true }, "nodes": [ "a02b86cff33f1dca", "0682776dd86300a3", "87b8cfe55d906fd5", "de30f4e4c010908e", "928a16e58e1d2df1" ], "x": 68, "y": 253, "w": 4164, "h": 248 }, { "id": "208c778a4cf58d22", "type": "group", "z": "29b296e6cd0e71d4", "name": "catch error", "style": { "fill": "#ff0000", "fill-opacity": "0.05", "label": true, "stroke": "#ff0000" }, "nodes": [ "ecfa439ba7a35d03", "03c130f6c64d6cde", "7313123929b92e4c" ], "x": 534, "y": 19, "w": 422, "h": 82 }, { "id": "14e0d85a9ac6e841", "type": "group", "z": "29b296e6cd0e71d4", "g": "bbefe025338a4088", "name": "", "style": { "stroke": "#92d04f", "fill": "#92d04f", "fill-opacity": "0.05", "label": true }, "nodes": [ "bac2afafe6b36787", "e4e7631c6fab2404", "73a344f5aa76de1a" ], "x": 74, "y": 1599, "w": 402, "h": 82 }, { "id": "1c534b810e84e08e", "type": "group", "z": "29b296e6cd0e71d4", "g": "bbefe025338a4088", "name": "", "style": { "stroke": "#92d04f", "fill": "#92d04f", "fill-opacity": "0.05", "label": true }, "nodes": [ "0cb8b001d26ab0f6", "75754d6ac1aaec7b", "249fef17f8771773" ], "x": 74, "y": 1839, "w": 402, "h": 82 }, { "id": "e99dd4c84ec9e592", "type": "group", "z": "29b296e6cd0e71d4", "g": "bbefe025338a4088", "name": "", "style": { "stroke": "#92d04f", "fill": "#92d04f", "fill-opacity": "0.05", "label": true }, "nodes": [ "6535229c2dd376c9", "d71667633c63d82c", "fb111aaebf0f258e" ], "x": 74, "y": 1719, "w": 402, "h": 82 }, { "id": "ecbb15d090609fc8", "type": "group", "z": "29b296e6cd0e71d4", "g": "bbefe025338a4088", "name": "", "style": { "stroke": "#92d04f", "fill": "#92d04f", "fill-opacity": "0.05", "label": true }, "nodes": [ "446a0cefda006859", "71c9fb8b232fe499", "11c222e5ea163fdc" ], "x": 74, "y": 1959, "w": 402, "h": 82 }, { "id": "5c6dcdea30bb06c9", "type": "group", "z": "29b296e6cd0e71d4", "g": "bbefe025338a4088", "name": "", "style": { "stroke": "#92d04f", "fill": "#92d04f", "fill-opacity": "0.05", "label": true }, "nodes": [ "bffa617af6ce8c3d", "50c950cddc1506ed", "afa470c057243812", "d112ec082c65d477" ], "x": 74, "y": 2079, "w": 682, "h": 82 }, { "id": "dd0cd2517e6feaf8", "type": "group", "z": "29b296e6cd0e71d4", "g": "bbefe025338a4088", "name": "", "style": { "stroke": "#92d04f", "fill": "#92d04f", "fill-opacity": "0.05", "label": true }, "nodes": [ "73c07a0bc5e5429b", "57e31f09110f90bb", "d36d0a56d64ac67f" ], "x": 74, "y": 2319, "w": 402, "h": 82 }, { "id": "6780505ad50ac4e1", "type": "group", "z": "29b296e6cd0e71d4", "g": "bbefe025338a4088", "name": "", "style": { "stroke": "#92d04f", "fill": "#92d04f", "fill-opacity": "0.05", "label": true }, "nodes": [ "47b11bbf1d3e7fcc", "86f02da7eff1e3ba", "5343778df9e41f37" ], "x": 74, "y": 2439, "w": 402, "h": 82 }, { "id": "ae46386170328f5c", "type": "group", "z": "29b296e6cd0e71d4", "g": "bbefe025338a4088", "name": "", "style": { "stroke": "#92d04f", "fill": "#92d04f", "fill-opacity": "0.05", "label": true }, "nodes": [ "fe6a5c2e3e4416b3", "7af8e11321061713", "57fe55dd66ce7430" ], "x": 74, "y": 2559, "w": 402, "h": 82 }, { "id": "908ea7d905a2dad7", "type": "group", "z": "29b296e6cd0e71d4", "g": "bbefe025338a4088", "name": "", "style": { "stroke": "#92d04f", "fill": "#92d04f", "fill-opacity": "0.05", "label": true }, "nodes": [ "f3671fca25729acb", "5bbf3534937cb6fd", "4f63773f3c770aa4", "89f1bff02808524b" ], "x": 74, "y": 2199, "w": 622, "h": 82 }, { "id": "51ceee5c0be8de4a", "type": "group", "z": "29b296e6cd0e71d4", "g": "bbefe025338a4088", "name": "alexa - metric", "style": { "fill": "#92d04f", "fill-opacity": "0.1", "label": true }, "nodes": [ "5b890ebe6c97c558", "e5f05d2e50ad94c2", "abd3bb3b24dd961a", "87e913d97ffb7a61", "df6a69e3a774eebc", "4a684de1f0119272", "e01b2ed76f5813e5", "a66c6d1f8e271921", "8f6b9cabcee961b9", "e4b27a57cc6c68b2", "c961c347fd2d14b5", "0eb598bfeb13128a", "6d91296005a60d65", "340d0829b2817429", "fc80a58fdafa773a" ], "x": 74, "y": 1179, "w": 1632, "h": 382 }, { "id": "a02b86cff33f1dca", "type": "group", "z": "29b296e6cd0e71d4", "g": "ba098df60748f1ec", "name": "alexa - A32DOYMUN6DTXA, A4ZP7ZC4PI6TO - device", "style": { "fill": "#ffC000", "fill-opacity": "0.05", "label": true }, "nodes": [ "fdbf3fd639e2816d", "8fe237c19ff04689", "ef3d95058c83d22a", "73d4e0dc30041c36", "92d08f37b5ebd992", "d2c146eec286df08" ], "x": 534, "y": 279, "w": 822, "h": 142 }, { "id": "0682776dd86300a3", "type": "group", "z": "29b296e6cd0e71d4", "g": "ba098df60748f1ec", "name": "alexa - A32DOYMUN6DTXA, A4ZP7ZC4PI6TO - source volume", "style": { "fill": "#0070c0", "fill-opacity": "0.05", "label": true }, "nodes": [ "f6b9b81c233ba8d7", "21d4d7a5a388de06", "c0355b3c98fed255", "0e7d2769799909af", "49c88081983abecf", "981daf7e528f93a4" ], "x": 1454, "y": 279, "w": 1022, "h": 82 }, { "id": "87b8cfe55d906fd5", "type": "group", "z": "29b296e6cd0e71d4", "g": "ba098df60748f1ec", "name": "alexa - A32DOYMUN6DTXA, A4ZP7ZC4PI6TO - metric volume", "style": { "fill": "#92d04f", "fill-opacity": "0.05", "label": true }, "nodes": [ "ba866ee153e8e14f", "5e1f61b100dc5e9f", "5298351c16bc5872", "b5c60f5b6f67d36f", "f4b27d3a31761870", "9303aa5b0ee47dcf", "dc7d7c5316cfb32d" ], "x": 2574, "y": 279, "w": 1632, "h": 82 }, { "id": "de30f4e4c010908e", "type": "group", "z": "29b296e6cd0e71d4", "g": "ba098df60748f1ec", "name": "alexa - A32DOYMUN6DTXA, A4ZP7ZC4PI6TO - model", "style": { "fill": "#001f60", "fill-opacity": "0.05", "label": true }, "nodes": [ "fdab2741acb61ed1", "dd1f42d36043f351", "69564d0c8dc942c7", "5bfc0d7121ebfd77" ], "x": 94, "y": 279, "w": 352, "h": 142 }, { "id": "ffaca9844c8ed35d", "type": "comment", "z": "29b296e6cd0e71d4", "name": "Alexa - Amazon", "info": "", "x": 1140, "y": 60, "wires": [] }, { "id": "1366f3887e6de0cb", "type": "debug", "z": "29b296e6cd0e71d4", "g": "9244bfd4d05d9c3e", "name": "alexa - init", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 730, "y": 920, "wires": [] }, { "id": "8231cb6e85943b7c", "type": "alexa-remote-init", "z": "29b296e6cd0e71d4", "g": "9244bfd4d05d9c3e", "name": "", "account": "b71b7e764b1feec5", "option": "initialise", "x": 540, "y": 920, "wires": [ [ "1366f3887e6de0cb" ] ] }, { "id": "3b2c87205ae7f992", "type": "link in", "z": "29b296e6cd0e71d4", "g": "9244bfd4d05d9c3e", "name": "alexa - init", "links": [ "b76dfebb811b14bd" ], "x": 115, "y": 980, "wires": [ [ "e94465489f353958" ] ] }, { "id": "bac2afafe6b36787", "type": "link in", "z": "29b296e6cd0e71d4", "g": "14e0d85a9ac6e841", "name": "alexa - switch boolean to state", "links": [], "x": 115, "y": 1640, "wires": [ [ "73a344f5aa76de1a" ] ] }, { "id": "e4e7631c6fab2404", "type": "link out", "z": "29b296e6cd0e71d4", "g": "14e0d85a9ac6e841", "name": "alexa - switch boolean to state", "mode": "return", "links": [], "x": 435, "y": 1640, "wires": [] }, { "id": "73a344f5aa76de1a", "type": "change", "z": "29b296e6cd0e71d4", "g": "14e0d85a9ac6e841", "name": "boolean to state", "rules": [ { "t": "set", "p": "tmp", "pt": "msg", "to": "$boolean(msg.payload)", "tot": "jsonata" }, { "t": "set", "p": "payload", "pt": "msg", "to": "{}", "tot": "jsonata" }, { "t": "set", "p": "payload.powerState", "pt": "msg", "to": "msg.tmp?'ON':'OFF'", "tot": "jsonata" }, { "t": "delete", "p": "tmp", "pt": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 280, "y": 1640, "wires": [ [ "e4e7631c6fab2404" ] ] }, { "id": "0cb8b001d26ab0f6", "type": "function", "z": "29b296e6cd0e71d4", "g": "1c534b810e84e08e", "name": "dimmer to state", "func": "msg.payload=parseInt(msg.payload)\nif (msg.payload>0){\n msg.payload={}\n msg.payload.powerState=\"ON\";\n return msg;\n}\n\nmsg.payload={}\nmsg.payload.powerState=\"OFF\";\nreturn msg;", "outputs": 1, "timeout": "", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 280, "y": 1880, "wires": [ [ "249fef17f8771773" ] ] }, { "id": "75754d6ac1aaec7b", "type": "link in", "z": "29b296e6cd0e71d4", "g": "1c534b810e84e08e", "name": "alexa - switch dimmer to sate", "links": [], "x": 115, "y": 1880, "wires": [ [ "0cb8b001d26ab0f6" ] ] }, { "id": "249fef17f8771773", "type": "link out", "z": "29b296e6cd0e71d4", "g": "1c534b810e84e08e", "name": "alexa - switch dimmer to sate", "mode": "return", "links": [], "x": 435, "y": 1880, "wires": [] }, { "id": "6535229c2dd376c9", "type": "function", "z": "29b296e6cd0e71d4", "g": "e99dd4c84ec9e592", "name": "state to boolean", "func": "if (msg.payload.powerState==\"ON\"){\n msg.payload=true;\n return msg;\n}\n\nmsg.payload=false;\nreturn msg;", "outputs": 1, "timeout": "", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 280, "y": 1760, "wires": [ [ "fb111aaebf0f258e" ] ] }, { "id": "d71667633c63d82c", "type": "link in", "z": "29b296e6cd0e71d4", "g": "e99dd4c84ec9e592", "name": "alexa - switch state to boolean", "links": [], "x": 115, "y": 1760, "wires": [ [ "6535229c2dd376c9" ] ] }, { "id": "fb111aaebf0f258e", "type": "link out", "z": "29b296e6cd0e71d4", "g": "e99dd4c84ec9e592", "name": "alexa - switch state to boolean", "mode": "return", "links": [], "x": 435, "y": 1760, "wires": [] }, { "id": "446a0cefda006859", "type": "function", "z": "29b296e6cd0e71d4", "g": "ecbb15d090609fc8", "name": "state to dimmer", "func": "if (msg.payload.powerState==\"ON\"){\n msg.payload=4;\n return msg;\n}\n\nmsg.payload=0;\nreturn msg;", "outputs": 1, "timeout": "", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 280, "y": 2000, "wires": [ [ "11c222e5ea163fdc" ] ] }, { "id": "71c9fb8b232fe499", "type": "link in", "z": "29b296e6cd0e71d4", "g": "ecbb15d090609fc8", "name": "alexa - switch state to dimmer", "links": [], "x": 115, "y": 2000, "wires": [ [ "446a0cefda006859" ] ] }, { "id": "11c222e5ea163fdc", "type": "link out", "z": "29b296e6cd0e71d4", "g": "ecbb15d090609fc8", "name": "alexa - switch state to dimmer", "mode": "return", "links": [], "x": 435, "y": 2000, "wires": [] }, { "id": "bffa617af6ce8c3d", "type": "change", "z": "29b296e6cd0e71d4", "g": "5c6dcdea30bb06c9", "name": "temperature to state", "rules": [ { "t": "set", "p": "tmp", "pt": "msg", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "{}", "tot": "json" }, { "t": "set", "p": "payload.temperature", "pt": "msg", "to": "tmp", "tot": "msg" }, { "t": "delete", "p": "tmp", "pt": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 540, "y": 2120, "wires": [ [ "afa470c057243812" ] ] }, { "id": "50c950cddc1506ed", "type": "link in", "z": "29b296e6cd0e71d4", "g": "5c6dcdea30bb06c9", "name": "alexa - temperature to state", "links": [], "x": 115, "y": 2120, "wires": [ [ "d112ec082c65d477" ] ] }, { "id": "afa470c057243812", "type": "link out", "z": "29b296e6cd0e71d4", "g": "5c6dcdea30bb06c9", "name": "alexa - temperature to state", "mode": "return", "links": [], "x": 715, "y": 2120, "wires": [] }, { "id": "d112ec082c65d477", "type": "link call", "z": "29b296e6cd0e71d4", "g": "5c6dcdea30bb06c9", "name": "", "links": [ "ddd39f991efd9d31" ], "linkType": "static", "timeout": "30", "x": 290, "y": 2120, "wires": [ [ "bffa617af6ce8c3d" ] ] }, { "id": "73c07a0bc5e5429b", "type": "link in", "z": "29b296e6cd0e71d4", "g": "dd0cd2517e6feaf8", "name": "alexa - contact to state", "links": [], "x": 115, "y": 2360, "wires": [ [ "57e31f09110f90bb" ] ] }, { "id": "57e31f09110f90bb", "type": "change", "z": "29b296e6cd0e71d4", "g": "dd0cd2517e6feaf8", "name": "contact to state", "rules": [ { "t": "set", "p": "tmp", "pt": "msg", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "{}", "tot": "json" }, { "t": "set", "p": "payload.detectionState", "pt": "msg", "to": "$number(msg.tmp)=1?'DETECTED':'NOT_DETECTED'", "tot": "jsonata" }, { "t": "delete", "p": "tmp", "pt": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 280, "y": 2360, "wires": [ [ "d36d0a56d64ac67f" ] ] }, { "id": "d36d0a56d64ac67f", "type": "link out", "z": "29b296e6cd0e71d4", "g": "dd0cd2517e6feaf8", "name": "alexa - contact to state", "mode": "return", "links": [], "x": 435, "y": 2360, "wires": [] }, { "id": "47b11bbf1d3e7fcc", "type": "change", "z": "29b296e6cd0e71d4", "g": "6780505ad50ac4e1", "name": "shutter to state", "rules": [ { "t": "set", "p": "tmp", "pt": "msg", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "{ 'percentage':msg.tmp}", "tot": "jsonata" }, { "t": "delete", "p": "tmp", "pt": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 280, "y": 2480, "wires": [ [ "5343778df9e41f37" ] ] }, { "id": "86f02da7eff1e3ba", "type": "link in", "z": "29b296e6cd0e71d4", "g": "6780505ad50ac4e1", "name": "alexa - shutter to state", "links": [], "x": 115, "y": 2480, "wires": [ [ "47b11bbf1d3e7fcc" ] ] }, { "id": "5343778df9e41f37", "type": "link out", "z": "29b296e6cd0e71d4", "g": "6780505ad50ac4e1", "name": "alexa - shutter to state", "mode": "return", "links": [], "x": 435, "y": 2480, "wires": [] }, { "id": "fe6a5c2e3e4416b3", "type": "change", "z": "29b296e6cd0e71d4", "g": "ae46386170328f5c", "name": "state to shutter", "rules": [ { "t": "set", "p": "tmp", "pt": "msg", "to": "$number(msg.payload.percentage)", "tot": "jsonata" }, { "t": "set", "p": "payload", "pt": "msg", "to": "tmp", "tot": "msg" }, { "t": "delete", "p": "tmp", "pt": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 280, "y": 2600, "wires": [ [ "57fe55dd66ce7430" ] ] }, { "id": "7af8e11321061713", "type": "link in", "z": "29b296e6cd0e71d4", "g": "ae46386170328f5c", "name": "alexa - state to shutter", "links": [], "x": 115, "y": 2600, "wires": [ [ "fe6a5c2e3e4416b3" ] ] }, { "id": "57fe55dd66ce7430", "type": "link out", "z": "29b296e6cd0e71d4", "g": "ae46386170328f5c", "name": "alexa - state to shutter", "mode": "return", "links": [], "x": 435, "y": 2600, "wires": [] }, { "id": "f3671fca25729acb", "type": "change", "z": "29b296e6cd0e71d4", "g": "908ea7d905a2dad7", "name": "motion to state", "rules": [ { "t": "set", "p": "tmp", "pt": "msg", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "{}", "tot": "json" }, { "t": "set", "p": "payload.detectionState", "pt": "msg", "to": "$number(msg.tmp)=1?'DETECTED':'NOT_DETECTED'", "tot": "jsonata" }, { "t": "delete", "p": "tmp", "pt": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 500, "y": 2240, "wires": [ [ "89f1bff02808524b" ] ] }, { "id": "5bbf3534937cb6fd", "type": "link call", "z": "29b296e6cd0e71d4", "g": "908ea7d905a2dad7", "name": "", "links": [ "12b1109de2f09cfc" ], "linkType": "static", "timeout": "30", "x": 270, "y": 2240, "wires": [ [ "f3671fca25729acb" ] ] }, { "id": "4f63773f3c770aa4", "type": "link in", "z": "29b296e6cd0e71d4", "g": "908ea7d905a2dad7", "name": "alexa - motion to state", "links": [], "x": 115, "y": 2240, "wires": [ [ "5bbf3534937cb6fd" ] ] }, { "id": "89f1bff02808524b", "type": "link out", "z": "29b296e6cd0e71d4", "g": "908ea7d905a2dad7", "name": "alexa - motion to state", "mode": "return", "links": [], "x": 655, "y": 2240, "wires": [] }, { "id": "5b890ebe6c97c558", "type": "link in", "z": "29b296e6cd0e71d4", "g": "51ceee5c0be8de4a", "name": "alexa - metric", "links": [ "031a6afd8300356a" ], "x": 115, "y": 1400, "wires": [ [ "e5f05d2e50ad94c2" ] ] }, { "id": "e5f05d2e50ad94c2", "type": "switch", "z": "29b296e6cd0e71d4", "g": "51ceee5c0be8de4a", "name": "mode assistant", "property": "metrics.system.mode.assistant", "propertyType": "global", "rules": [ { "t": "neq", "v": "off", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 280, "y": 1400, "wires": [ [ "87e913d97ffb7a61" ] ] }, { "id": "abd3bb3b24dd961a", "type": "link out", "z": "29b296e6cd0e71d4", "g": "51ceee5c0be8de4a", "name": "alexa - measurement - light", "mode": "link", "links": [ "a4a6ad066aafffab", "3f54da8de46b11fd", "34e70de8849460a5", "42c6c2fa748e4af6", "17193d3c2edc0a1b", "dd483df0d2980560", "53b0704ceac188a8", "5516293bd614b2f0", "a54a3aabac3983d2", "afc2c10fc0e2820a", "9133cb910fbe540d", "fc33f164d4208460", "3a55ad6cad68cacf", "ad10a81066f01ab7", "a05d52024af694a6", "ecdbc3a31c49a7d2", "013567ba389aabcd", "8fdd67ff97167a4b", "cecf7014427b11c6", "6b360e1d934c11cc", "0a42f841db6eeb29", "791a8850301eb5ab", "c34f068176628307", "f82f77715b307e5e", "9f0f03244eb21857" ], "x": 865, "y": 1220, "wires": [] }, { "id": "87e913d97ffb7a61", "type": "switch", "z": "29b296e6cd0e71d4", "g": "51ceee5c0be8de4a", "name": "select measurement", "property": "measurement", "propertyType": "msg", "rules": [ { "t": "eq", "v": "light", "vt": "str" }, { "t": "eq", "v": "outlet", "vt": "str" }, { "t": "eq", "v": "temperature", "vt": "str" }, { "t": "eq", "v": "motion", "vt": "str" }, { "t": "eq", "v": "aperture", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 5, "x": 520, "y": 1400, "wires": [ [ "abd3bb3b24dd961a" ], [ "fc80a58fdafa773a" ], [ "a66c6d1f8e271921" ], [ "8f6b9cabcee961b9" ], [ "e4b27a57cc6c68b2" ] ] }, { "id": "df6a69e3a774eebc", "type": "link in", "z": "29b296e6cd0e71d4", "g": "51ceee5c0be8de4a", "name": "alexa - measurement", "links": [ "bc0564795bc5055b", "9cab12b971634428", "408a51c88533e506", "ed1ae61e8d69a9aa", "33aad6ca5d82c61a", "af06cacb11fff5fe", "e9a0591d654a5d18", "339b74120cebdaf7", "64e0af5ac57be506", "2a2936eed1173930", "48fb85cf9fc816df", "b924cf12aceef8a9", "b41c55b4d5f168ad", "a72c1a80a1c23c90", "a4c75626ec98b096", "a602b1bcbf8c1b85", "13a93bd3f7a3672f", "3637aa2caa12cece", "1eb47e24551d2f4a", "76b1e23db6909882", "30601584c9066166", "afb9c3a95d82a067", "e909099a38791a7c", "03f7513bc15a7970", "2d23c818628833ec", "9f90b3631947d4a8", "7c6a878c6b2dc981", "bfb389e89be30b29", "abca9c4b9b514c49", "44fdb6071c1270db", "91641fea441e6952" ], "x": 1035, "y": 1400, "wires": [ [ "4a684de1f0119272" ] ] }, { "id": "4a684de1f0119272", "type": "switch", "z": "29b296e6cd0e71d4", "g": "51ceee5c0be8de4a", "name": "mode assistant", "property": "metrics.system.mode.assistant", "propertyType": "global", "rules": [ { "t": "neq", "v": "off", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 1200, "y": 1400, "wires": [ [ "6d91296005a60d65" ] ] }, { "id": "e01b2ed76f5813e5", "type": "link out", "z": "29b296e6cd0e71d4", "g": "51ceee5c0be8de4a", "name": "alexa - metric", "mode": "link", "links": [ "206c1fb4a48067df" ], "x": 1535, "y": 1400, "wires": [] }, { "id": "a66c6d1f8e271921", "type": "link out", "z": "29b296e6cd0e71d4", "g": "51ceee5c0be8de4a", "name": "alexa - measurement - temperature", "mode": "link", "links": [ "5782587779b166d8", "302510abb50cfea2", "e667a270b77f91b0", "b203a0f8c491d028", "25bf9e91d9fd1134", "7d119b2f7b8ce528", "02ef117d816fc098", "fda87b491f013484", "a89dbae39e9a3522", "e1f047b857bb87e9", "88f4876b7fca2d49", "9eb98db9c6e96276", "e95d1fc6ef10f897", "9f47e5ef38471d1f", "0ebdf99f03fdf629", "c8d1453e98c3f5e3", "ed696ccf025c9ea6", "25b95ce76db7282c" ], "x": 865, "y": 1340, "wires": [] }, { "id": "8f6b9cabcee961b9", "type": "link out", "z": "29b296e6cd0e71d4", "g": "51ceee5c0be8de4a", "name": "alexa - measurement - motion", "mode": "link", "links": [ "b6a2940bd526bdc5", "83dd74e85a3b5fd8", "957e4911e1e7bcfd", "0a1b36abacf7869b", "bf5283284d6841db", "f078c245986b329c", "965caf1c42f05bc8", "2278390b570ae980", "24a719c390b3f22f" ], "x": 865, "y": 1400, "wires": [] }, { "id": "e4b27a57cc6c68b2", "type": "switch", "z": "29b296e6cd0e71d4", "g": "51ceee5c0be8de4a", "name": "field", "property": "field", "propertyType": "msg", "rules": [ { "t": "eq", "v": "volet", "vt": "str" }, { "t": "else" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 730, "y": 1460, "wires": [ [ "340d0829b2817429" ], [ "c961c347fd2d14b5" ] ] }, { "id": "c961c347fd2d14b5", "type": "link out", "z": "29b296e6cd0e71d4", "g": "51ceee5c0be8de4a", "name": "alexa - measurement - aperture", "mode": "link", "links": [ "b22ad51c1e17a489", "54dacc2fd5d0195e", "c81a8c2eb50047e0", "27a69d45ec54d88e", "eaab34a171566bb1", "b762bc046e1118b6", "946ab6f15c353f7c", "ab4ea3a7f94bbae5", "8b43350290b32368", "fd405f97a4afd11a", "079402876ffb0af4", "5542118edd118b1b", "53f36bbe7d518779", "2d70ad7ef6ca22f1", "ae1418a3a4a9fe5e", "9ff01555b9aa10a7", "e7bea9abb4d2ec97", "bb35875d14bfedc3", "e5f1fb7a8e6da302", "9c29e34475ca460c", "422c17888a527a84", "a8e125a8e1315ddb", "80820f5afa4a387f", "46f7c514e74a6238", "641b763f8c402bb1" ], "x": 865, "y": 1520, "wires": [] }, { "id": "0eb598bfeb13128a", "type": "debug", "z": "29b296e6cd0e71d4", "g": "51ceee5c0be8de4a", "name": "alexa metric", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 1590, "y": 1340, "wires": [] }, { "id": "6d91296005a60d65", "type": "change", "z": "29b296e6cd0e71d4", "g": "51ceee5c0be8de4a", "name": "set topic", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "'loop/'&msg.topic", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1400, "y": 1400, "wires": [ [ "e01b2ed76f5813e5", "0eb598bfeb13128a" ] ] }, { "id": "340d0829b2817429", "type": "link out", "z": "29b296e6cd0e71d4", "g": "51ceee5c0be8de4a", "name": "alexa - measurement - shutter", "mode": "link", "links": [ "c988ea54961f1403", "ceb7b3fb0ab08696" ], "x": 865, "y": 1460, "wires": [] }, { "id": "fc80a58fdafa773a", "type": "link out", "z": "29b296e6cd0e71d4", "g": "51ceee5c0be8de4a", "name": "alexa - measurement - socket", "mode": "link", "links": [ "fc7968c5df682e3e", "c6b6cf26659665af", "3ee7c71efa9bb352" ], "x": 865, "y": 1280, "wires": [] }, { "id": "5de8989847f9f971", "type": "alexa-remote-echo", "z": "29b296e6cd0e71d4", "g": "0cf81dc631df6bea", "name": "", "account": "b71b7e764b1feec5", "config": { "option": "get", "value": { "what": "device", "device": { "type": "str", "value": "ALEXA_ALL_DSN" } } }, "x": 450, "y": 800, "wires": [ [ "343850ed88d34457" ] ] }, { "id": "f2a5668521a88557", "type": "inject", "z": "29b296e6cd0e71d4", "g": "0cf81dc631df6bea", "name": "manual - alexa - list", "props": [], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 210, "y": 800, "wires": [ [ "5de8989847f9f971" ] ] }, { "id": "343850ed88d34457", "type": "debug", "z": "29b296e6cd0e71d4", "g": "0cf81dc631df6bea", "name": "alexa - list", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 660, "y": 800, "wires": [] }, { "id": "fdbf3fd639e2816d", "type": "link in", "z": "29b296e6cd0e71d4", "g": "a02b86cff33f1dca", "name": "alexa - A32DOYMUN6DTXA, A4ZP7ZC4PI6TO - device", "links": [ "546f190f3ec0c90d" ], "x": 575, "y": 320, "wires": [ [ "8fe237c19ff04689" ] ] }, { "id": "8fe237c19ff04689", "type": "switch", "z": "29b296e6cd0e71d4", "g": "a02b86cff33f1dca", "name": "model", "property": "model", "propertyType": "msg", "rules": [ { "t": "eq", "v": "A32DOYMUN6DTXA", "vt": "str" }, { "t": "eq", "v": "A4ZP7ZC4PI6TO", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 710, "y": 320, "wires": [ [ "92d08f37b5ebd992", "d2c146eec286df08" ], [ "92d08f37b5ebd992", "d2c146eec286df08" ] ] }, { "id": "ef3d95058c83d22a", "type": "change", "z": "29b296e6cd0e71d4", "g": "a02b86cff33f1dca", "name": "protocol", "rules": [ { "t": "set", "p": "protocol", "pt": "msg", "to": "alexa", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1180, "y": 320, "wires": [ [ "73d4e0dc30041c36" ] ] }, { "id": "73d4e0dc30041c36", "type": "link out", "z": "29b296e6cd0e71d4", "g": "a02b86cff33f1dca", "name": "alexa - A32DOYMUN6DTXA, A4ZP7ZC4PI6TO - device", "mode": "link", "links": [ "3e1b4213132404be" ], "x": 1315, "y": 320, "wires": [] }, { "id": "92d08f37b5ebd992", "type": "change", "z": "29b296e6cd0e71d4", "d": true, "g": "a02b86cff33f1dca", "name": "brand", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "volume", "tot": "jsonata" }, { "t": "set", "p": "field", "pt": "msg", "to": "alexa", "tot": "jsonata" }, { "t": "set", "p": "brand", "pt": "msg", "to": "amazon", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 870, "y": 320, "wires": [ [ "ef3d95058c83d22a" ] ] }, { "id": "928a16e58e1d2df1", "type": "comment", "z": "29b296e6cd0e71d4", "g": "ba098df60748f1ec", "name": "volume / alexa", "info": "", "x": 190, "y": 460, "wires": [] }, { "id": "d2c146eec286df08", "type": "change", "z": "29b296e6cd0e71d4", "g": "a02b86cff33f1dca", "name": "volume /alexa / dimmer / 20", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "volume", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "alexa", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "dimmer", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "20", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 940, "y": 380, "wires": [ [ "ef3d95058c83d22a" ] ] }, { "id": "f6b9b81c233ba8d7", "type": "alexa-remote-event", "z": "29b296e6cd0e71d4", "g": "0682776dd86300a3", "name": "", "account": "b71b7e764b1feec5", "event": "ws-volume-change", "x": 1570, "y": 320, "wires": [ [ "21d4d7a5a388de06" ] ] }, { "id": "21d4d7a5a388de06", "type": "change", "z": "29b296e6cd0e71d4", "g": "0682776dd86300a3", "name": "payload", "rules": [ { "t": "set", "p": "device", "pt": "msg", "to": "payload.deviceSerialNumber", "tot": "msg" }, { "t": "set", "p": "volume", "pt": "msg", "to": "payload.volume", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "devices", "tot": "global" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1780, "y": 320, "wires": [ [ "c0355b3c98fed255" ] ] }, { "id": "c0355b3c98fed255", "type": "split", "z": "29b296e6cd0e71d4", "g": "0682776dd86300a3", "name": "buckets", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "bucket", "property": "payload", "x": 1960, "y": 320, "wires": [ [ "0e7d2769799909af" ] ] }, { "id": "0e7d2769799909af", "type": "switch", "z": "29b296e6cd0e71d4", "g": "0682776dd86300a3", "name": "device", "property": "payload.alexa.volume.id", "propertyType": "msg", "rules": [ { "t": "eq", "v": "device", "vt": "msg" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 2130, "y": 320, "wires": [ [ "49c88081983abecf" ] ] }, { "id": "49c88081983abecf", "type": "change", "z": "29b296e6cd0e71d4", "g": "0682776dd86300a3", "name": "set metric", "rules": [ { "t": "set", "p": "measurement", "pt": "msg", "to": "volume", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "alexa", "tot": "str" }, { "t": "set", "p": "payload", "pt": "msg", "to": "volume", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2300, "y": 320, "wires": [ [ "981daf7e528f93a4" ] ] }, { "id": "981daf7e528f93a4", "type": "link out", "z": "29b296e6cd0e71d4", "g": "0682776dd86300a3", "name": "alexa - A32DOYMUN6DTXA, A4ZP7ZC4PI6TO - source volume", "mode": "link", "links": [ "206c1fb4a48067df" ], "x": 2435, "y": 320, "wires": [] }, { "id": "ba866ee153e8e14f", "type": "alexa-remote-echo", "z": "29b296e6cd0e71d4", "g": "87b8cfe55d906fd5", "name": "", "account": "b71b7e764b1feec5", "config": { "option": "command", "value": { "device": { "type": "msg", "value": "device" }, "what": "volume", "value": { "type": "msg", "value": "volume" } } }, "x": 3570, "y": 320, "wires": [ [ "9303aa5b0ee47dcf" ] ] }, { "id": "5e1f61b100dc5e9f", "type": "link in", "z": "29b296e6cd0e71d4", "g": "87b8cfe55d906fd5", "name": "alexa - A32DOYMUN6DTXA, A4ZP7ZC4PI6TO - metric volume", "links": [ "031a6afd8300356a" ], "x": 2615, "y": 320, "wires": [ [ "5298351c16bc5872" ] ] }, { "id": "5298351c16bc5872", "type": "switch", "z": "29b296e6cd0e71d4", "g": "87b8cfe55d906fd5", "name": "measurement", "property": "measurement", "propertyType": "msg", "rules": [ { "t": "eq", "v": "volume", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 2780, "y": 320, "wires": [ [ "b5c60f5b6f67d36f" ] ] }, { "id": "b5c60f5b6f67d36f", "type": "switch", "z": "29b296e6cd0e71d4", "g": "87b8cfe55d906fd5", "name": "field", "property": "field", "propertyType": "msg", "rules": [ { "t": "eq", "v": "alexa", "vt": "str" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 2970, "y": 320, "wires": [ [ "f4b27d3a31761870" ] ] }, { "id": "f4b27d3a31761870", "type": "change", "z": "29b296e6cd0e71d4", "g": "87b8cfe55d906fd5", "name": "from devices", "rules": [ { "t": "set", "p": "device", "pt": "msg", "to": "devices[msg.bucket][msg.measurement][msg.field]id", "tot": "global" }, { "t": "set", "p": "volume", "pt": "msg", "to": "$number(msg.payload)", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 3150, "y": 320, "wires": [ [ "dc7d7c5316cfb32d" ] ] }, { "id": "9303aa5b0ee47dcf", "type": "debug", "z": "29b296e6cd0e71d4", "g": "87b8cfe55d906fd5", "name": "alexa - A32DOYMUN6DTXA, A4ZP7ZC4PI6TO - metric volume", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 3930, "y": 320, "wires": [] }, { "id": "dc7d7c5316cfb32d", "type": "trigger", "z": "29b296e6cd0e71d4", "g": "87b8cfe55d906fd5", "name": "", "op1": "", "op2": "", "op1type": "pay", "op2type": "nul", "duration": "2", "extend": true, "overrideDelay": false, "units": "s", "reset": "", "bytopic": "topic", "topic": "device", "outputs": 1, "x": 3360, "y": 320, "wires": [ [ "ba866ee153e8e14f" ] ] }, { "id": "ecfa439ba7a35d03", "type": "catch", "z": "29b296e6cd0e71d4", "g": "208c778a4cf58d22", "name": "catch error", "scope": null, "uncaught": true, "x": 620, "y": 60, "wires": [ [ "03c130f6c64d6cde" ] ] }, { "id": "03c130f6c64d6cde", "type": "change", "z": "29b296e6cd0e71d4", "g": "208c778a4cf58d22", "name": "topic", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "alexa", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 790, "y": 60, "wires": [ [ "7313123929b92e4c" ] ] }, { "id": "7313123929b92e4c", "type": "link out", "z": "29b296e6cd0e71d4", "g": "208c778a4cf58d22", "name": "catch error", "mode": "link", "links": [ "a52f0e788cd4dca3" ], "x": 915, "y": 60, "wires": [] }, { "id": "fdab2741acb61ed1", "type": "link in", "z": "29b296e6cd0e71d4", "g": "de30f4e4c010908e", "name": "alexa - A32DOYMUN6DTXA, A4ZP7ZC4PI6TO - model", "links": [ "9cb906bf8066d37e" ], "x": 135, "y": 320, "wires": [ [ "dd1f42d36043f351", "5bfc0d7121ebfd77" ] ] }, { "id": "dd1f42d36043f351", "type": "change", "z": "29b296e6cd0e71d4", "g": "de30f4e4c010908e", "name": "model", "rules": [ { "t": "set", "p": "brand", "pt": "msg", "to": "amazon", "tot": "str" }, { "t": "set", "p": "model", "pt": "msg", "to": "A32DOYMUN6DTXA", "tot": "str" }, { "t": "set", "p": "protocol", "pt": "msg", "to": "alexa", "tot": "str" }, { "t": "set", "p": "measurement", "pt": "msg", "to": "volume", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "alexa", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "number", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "20", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 270, "y": 320, "wires": [ [ "69564d0c8dc942c7" ] ] }, { "id": "69564d0c8dc942c7", "type": "link out", "z": "29b296e6cd0e71d4", "g": "de30f4e4c010908e", "name": "alexa - A32DOYMUN6DTXA, A4ZP7ZC4PI6TO - model", "mode": "link", "links": [ "94aa726ce8973d2c" ], "x": 395, "y": 320, "wires": [] }, { "id": "5bfc0d7121ebfd77", "type": "change", "z": "29b296e6cd0e71d4", "g": "de30f4e4c010908e", "name": "model", "rules": [ { "t": "set", "p": "brand", "pt": "msg", "to": "amazon", "tot": "str" }, { "t": "set", "p": "model", "pt": "msg", "to": "A4ZP7ZC4PI6TO", "tot": "str" }, { "t": "set", "p": "protocol", "pt": "msg", "to": "alexa", "tot": "str" }, { "t": "set", "p": "measurement", "pt": "msg", "to": "volume", "tot": "str" }, { "t": "set", "p": "field", "pt": "msg", "to": "alexa", "tot": "str" }, { "t": "set", "p": "format", "pt": "msg", "to": "number", "tot": "str" }, { "t": "set", "p": "default", "pt": "msg", "to": "20", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 270, "y": 380, "wires": [ [ "69564d0c8dc942c7" ] ] }, { "id": "823b0b2460f6ef95", "type": "inject", "z": "29b296e6cd0e71d4", "g": "9244bfd4d05d9c3e", "name": "manual - alexa - init", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 210, "y": 920, "wires": [ [ "8231cb6e85943b7c" ] ] }, { "id": "eadb9f80ae5d73a8", "type": "catch", "z": "29b296e6cd0e71d4", "g": "9244bfd4d05d9c3e", "name": "catch - alexa - init", "scope": [ "8231cb6e85943b7c" ], "uncaught": false, "x": 180, "y": 1040, "wires": [ [ "ba75869a8d314e54" ] ] }, { "id": "ba75869a8d314e54", "type": "delay", "z": "29b296e6cd0e71d4", "g": "9244bfd4d05d9c3e", "name": "2 min", "pauseType": "delay", "timeout": "2", "timeoutUnits": "minutes", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 370, "y": 1040, "wires": [ [ "8231cb6e85943b7c" ] ] }, { "id": "e94465489f353958", "type": "trigger", "z": "29b296e6cd0e71d4", "g": "9244bfd4d05d9c3e", "name": "30 s", "op1": "", "op2": "1", "op1type": "nul", "op2type": "str", "duration": "30", "extend": true, "overrideDelay": false, "units": "s", "reset": "", "bytopic": "all", "topic": "topic", "outputs": 1, "x": 370, "y": 980, "wires": [ [ "8231cb6e85943b7c" ] ] } ]