[ { "id": "5c8872e.2f6de8c", "type": "tab", "label": "Sequencer for Bathroom", "disabled": false, "info": "" }, { "id": "761aaa4f.3d5ec4", "type": "debug", "z": "5c8872e.2f6de8c", "name": "", "active": true, "tosidebar": false, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "x": 2010, "y": 160, "wires": [] }, { "id": "773ab71e.11ad48", "type": "debug", "z": "5c8872e.2f6de8c", "name": "", "active": true, "tosidebar": false, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "x": 2010, "y": 220, "wires": [] }, { "id": "1e997440.543a4c", "type": "debug", "z": "5c8872e.2f6de8c", "name": "", "active": true, "tosidebar": false, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "x": 2010, "y": 280, "wires": [] }, { "id": "b473b9bb.ec28d8", "type": "debug", "z": "5c8872e.2f6de8c", "name": "", "active": true, "tosidebar": false, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "x": 2010, "y": 340, "wires": [] }, { "id": "180f3f66.b34031", "type": "debug", "z": "5c8872e.2f6de8c", "name": "", "active": true, "tosidebar": false, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "x": 2010, "y": 400, "wires": [] }, { "id": "120ae77d.da6449", "type": "debug", "z": "5c8872e.2f6de8c", "name": "", "active": true, "tosidebar": false, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "x": 2010, "y": 460, "wires": [] }, { "id": "ade9602.abb79a", "type": "debug", "z": "5c8872e.2f6de8c", "name": "", "active": true, "tosidebar": false, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "x": 2010, "y": 520, "wires": [] }, { "id": "a54d625.f7018a", "type": "debug", "z": "5c8872e.2f6de8c", "name": "", "active": true, "tosidebar": false, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "x": 2010, "y": 580, "wires": [] }, { "id": "2414224a.18b02e", "type": "debug", "z": "5c8872e.2f6de8c", "name": "", "active": true, "tosidebar": false, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "x": 2010, "y": 760, "wires": [] }, { "id": "8c26ff45.4011", "type": "switch", "z": "5c8872e.2f6de8c", "name": "Divide up Topics", "property": "topic", "propertyType": "msg", "rules": [ { "t": "eq", "v": "one", "vt": "str" }, { "t": "eq", "v": "two", "vt": "str" }, { "t": "eq", "v": "three", "vt": "str" }, { "t": "eq", "v": "four", "vt": "str" }, { "t": "eq", "v": "five", "vt": "str" }, { "t": "eq", "v": "six", "vt": "str" }, { "t": "eq", "v": "seven", "vt": "str" }, { "t": "eq", "v": "eight", "vt": "str" }, { "t": "eq", "v": "play", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 9, "x": 1380, "y": 300, "wires": [ [ "761aaa4f.3d5ec4" ], [ "773ab71e.11ad48" ], [ "1e997440.543a4c" ], [ "b473b9bb.ec28d8" ], [ "180f3f66.b34031" ], [ "120ae77d.da6449" ], [ "ade9602.abb79a" ], [ "a54d625.f7018a" ], [ "2414224a.18b02e", "f474884d.064f98" ] ] }, { "id": "25c6251c.c3922a", "type": "inject", "z": "5c8872e.2f6de8c", "name": "Load Eight Topics and repeat", "topic": "", "payload": "{\"name\":\"EightTopics\",\"seq\":[{\"data\":{\"topic\":\"one\",\"payload\":50},\"delay\":0},{\"data\":{\"topic\":\"two\",\"payload\":50},\"delay\":1000},{\"data\":{\"topic\":\"three\",\"payload\":\"ON\"},\"delay\":1000},{\"data\":{\"topic\":\"four\",\"payload\":0},\"delay\":1000},{\"data\":{\"topic\":\"five\",\"payload\":50},\"delay\":1000},{\"data\":{\"topic\":\"six\",\"payload\":50},\"delay\":1000},{\"data\":{\"topic\":\"seven\",\"payload\":\"ON\"},\"delay\":1000},{\"data\":{\"topic\":\"eight\",\"payload\":75},\"delay\":1000},{\"data\":{\"topic\":\"play\",\"payload\":\"EightTopics\"},\"delay\":1000}]}", "payloadType": "str", "repeat": "", "crontab": "", "once": false, "onceDelay": "", "x": 920, "y": 340, "wires": [ [ "2afe12e6.c3284e" ] ] }, { "id": "7fc853ac.d1f1bc", "type": "inject", "z": "5c8872e.2f6de8c", "name": "Play", "topic": "", "payload": "EightTopics", "payloadType": "str", "repeat": "", "crontab": "", "once": false, "onceDelay": "", "x": 870, "y": 420, "wires": [ [ "5a8b352.a5178cc" ] ] }, { "id": "c8978b25.6b0988", "type": "inject", "z": "5c8872e.2f6de8c", "name": "Stop", "topic": "", "payload": "EightTopics", "payloadType": "str", "repeat": "", "crontab": "", "once": false, "onceDelay": "", "x": 870, "y": 780, "wires": [ [ "6cd81c74.de4944", "e758178e.ed2c08" ] ] }, { "id": "df8abad1.cae8c8", "type": "player", "z": "5c8872e.2f6de8c", "name": "Player node", "runOnLoad": true, "x": 1430, "y": 620, "wires": [ [ "87839721.b5d738", "8c26ff45.4011" ] ] }, { "id": "87839721.b5d738", "type": "debug", "z": "5c8872e.2f6de8c", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "x": 1570, "y": 660, "wires": [] }, { "id": "2afe12e6.c3284e", "type": "change", "z": "5c8872e.2f6de8c", "name": "payload -> sequence", "rules": [ { "t": "move", "p": "payload", "pt": "msg", "to": "sequence", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1160, "y": 520, "wires": [ [ "df8abad1.cae8c8" ] ] }, { "id": "5a8b352.a5178cc", "type": "change", "z": "5c8872e.2f6de8c", "name": "payload -> play", "rules": [ { "t": "move", "p": "payload", "pt": "msg", "to": "play", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1140, "y": 560, "wires": [ [ "df8abad1.cae8c8" ] ] }, { "id": "535514f8.b3f0ac", "type": "change", "z": "5c8872e.2f6de8c", "name": "payload -> pause", "rules": [ { "t": "move", "p": "payload", "pt": "msg", "to": "pause", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1150, "y": 600, "wires": [ [ "df8abad1.cae8c8" ] ] }, { "id": "6cd81c74.de4944", "type": "change", "z": "5c8872e.2f6de8c", "name": "payload -> stop", "rules": [ { "t": "move", "p": "payload", "pt": "msg", "to": "stop", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1140, "y": 640, "wires": [ [ "df8abad1.cae8c8" ] ] }, { "id": "46cbb2f3.467f8c", "type": "change", "z": "5c8872e.2f6de8c", "name": "payload -> remove", "rules": [ { "t": "move", "p": "payload", "pt": "msg", "to": "remove", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1150, "y": 680, "wires": [ [ "df8abad1.cae8c8" ] ] }, { "id": "681867e8.883a08", "type": "openhab2-events", "z": "5c8872e.2f6de8c", "name": "openHAB events in House", "controller": "deaa963.282a968", "itemname": "", "x": 270, "y": 500, "wires": [ [ "ea0af200.86f1a" ] ] }, { "id": "ea0af200.86f1a", "type": "function", "z": "5c8872e.2f6de8c", "name": "Show Flow temp sensor", "func": "var event = msg.payload.event;\nvar channel = msg.payload.channel;\nvar newMsg = { payload: msg.payload.event };\nvar button = \"velbus:vmb7in:c5053467:0B:input#CH1\"\n\nif (channel === button ) {\n\tif (event === \"PRESSED\") {\n\t\treturn [newMsg, null, null];\n\t}\n\tif (event === \"LONG_PRESSED\") {\n\t\treturn [null, newMsg, null];\n\t}\n\tif (event === \"RELEASED\") {\n\t\treturn [null, null, newMsg];\n\t}\n}\nreturn null;\n", "outputs": 3, "noerr": 0, "x": 310, "y": 580, "wires": [ [ "ffbb28fb.543d28", "88de9207.30699" ], [ "22e2b06f.83de3" ], [ "db65300c.9e274", "250d796e.fea556" ] ], "inputLabels": [ "Raw Events from openHAB2" ], "outputLabels": [ "PRESSED", "LONG_PRESSED", "RELEASED" ] }, { "id": "ffbb28fb.543d28", "type": "debug", "z": "5c8872e.2f6de8c", "name": "", "active": true, "tosidebar": false, "console": false, "tostatus": true, "complete": "payload", "x": 570, "y": 460, "wires": [] }, { "id": "22e2b06f.83de3", "type": "debug", "z": "5c8872e.2f6de8c", "name": "", "active": true, "tosidebar": false, "console": false, "tostatus": true, "complete": "payload", "x": 570, "y": 580, "wires": [] }, { "id": "db65300c.9e274", "type": "debug", "z": "5c8872e.2f6de8c", "name": "", "active": true, "tosidebar": false, "console": false, "tostatus": true, "complete": "payload", "x": 570, "y": 680, "wires": [] }, { "id": "88de9207.30699", "type": "change", "z": "5c8872e.2f6de8c", "name": "Pressed = Load Sequence", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "{\"name\":\"EightTopics\",\"seq\":[{\"data\":{\"topic\":\"one\",\"payload\":50},\"delay\":0},{\"data\":{\"topic\":\"two\",\"payload\":50},\"delay\":1000},{\"data\":{\"topic\":\"three\",\"payload\":\"ON\"},\"delay\":1000},{\"data\":{\"topic\":\"four\",\"payload\":0},\"delay\":1000},{\"data\":{\"topic\":\"five\",\"payload\":50},\"delay\":1000},{\"data\":{\"topic\":\"six\",\"payload\":50},\"delay\":1000},{\"data\":{\"topic\":\"seven\",\"payload\":\"ON\"},\"delay\":1000},{\"data\":{\"topic\":\"eight\",\"payload\":75},\"delay\":1000},{\"data\":{\"topic\":\"play\",\"payload\":\"EightTopics\"},\"delay\":1000}]}", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 620, "y": 520, "wires": [ [ "2afe12e6.c3284e" ] ] }, { "id": "250d796e.fea556", "type": "change", "z": "5c8872e.2f6de8c", "name": "Released to STOP", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "EightTopics", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 590, "y": 640, "wires": [ [ "6cd81c74.de4944", "e758178e.ed2c08" ] ] }, { "id": "6e400a78.97f154", "type": "comment", "z": "5c8872e.2f6de8c", "name": "Restart Sequence", "info": "", "x": 2030, "y": 680, "wires": [] }, { "id": "a538089f.5ac6b8", "type": "comment", "z": "5c8872e.2f6de8c", "name": "Set devices during the sequence", "info": "", "x": 1990, "y": 120, "wires": [] }, { "id": "f474884d.064f98", "type": "delay", "z": "5c8872e.2f6de8c", "name": "", "pauseType": "delay", "timeout": "1", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 2020, "y": 800, "wires": [ [ "5a8b352.a5178cc" ] ] }, { "id": "e758178e.ed2c08", "type": "change", "z": "5c8872e.2f6de8c", "name": "OFF Sequence", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "{\"name\":\"OFF\",\"seq\":[{\"data\":{\"topic\":\"one\",\"payload\":0},\"delay\":0},{\"data\":{\"topic\":\"two\",\"payload\":0},\"delay\":1000},{\"data\":{\"topic\":\"three\",\"payload\":\"OFF\"},\"delay\":1000},{\"data\":{\"topic\":\"four\",\"payload\":0},\"delay\":1000},{\"data\":{\"topic\":\"five\",\"payload\":0},\"delay\":1000},{\"data\":{\"topic\":\"six\",\"payload\":0},\"delay\":1000},{\"data\":{\"topic\":\"seven\",\"payload\":\"OFF\"},\"delay\":1000},{\"data\":{\"topic\":\"eight\",\"payload\":0},\"delay\":1000}]}", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 840, "y": 600, "wires": [ [ "1bae37.c4b531c9" ] ] }, { "id": "1bae37.c4b531c9", "type": "delay", "z": "5c8872e.2f6de8c", "name": "", "pauseType": "delay", "timeout": "50", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 870, "y": 540, "wires": [ [ "2afe12e6.c3284e" ] ] }, { "id": "deaa963.282a968", "type": "openhab2-controller", "z": "", "name": "OpenHAB2 Home", "protocol": "http", "host": "127.0.0.1", "port": "8080", "path": "", "username": "", "password": "" } ]