Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "82c1e160.e9dcc",
- "type": "tab",
- "label": "Day23_Alarm",
- "disabled": true,
- "info": ""
- },
- {
- "id": "8a352534.4e3838",
- "type": "mqtt in",
- "z": "82c1e160.e9dcc",
- "name": "",
- "topic": "NodeESP/[PID]/button/state/get/out",
- "qos": "2",
- "broker": "3c53c9b8.8965a6",
- "x": 260,
- "y": 280,
- "wires": [
- [
- "24659bbf.6c6f84",
- "597bae5f.c9075"
- ]
- ]
- },
- {
- "id": "24659bbf.6c6f84",
- "type": "json",
- "z": "82c1e160.e9dcc",
- "name": "",
- "property": "payload",
- "action": "",
- "pretty": false,
- "x": 510,
- "y": 280,
- "wires": [
- [
- "7e8868a9.2735b8"
- ]
- ]
- },
- {
- "id": "3b654964.c5d6f6",
- "type": "ui_audio",
- "z": "82c1e160.e9dcc",
- "name": "",
- "group": "69ee1125.0f167",
- "voice": "",
- "always": "",
- "x": 1480,
- "y": 140,
- "wires": []
- },
- {
- "id": "1187f01f.f317e",
- "type": "ui_toast",
- "z": "82c1e160.e9dcc",
- "position": "top right",
- "displayTime": "3",
- "highlight": "",
- "outputs": 0,
- "ok": "OK",
- "cancel": "",
- "topic": "",
- "name": "",
- "x": 1500,
- "y": 200,
- "wires": []
- },
- {
- "id": "867286e5.b0ed48",
- "type": "e-mail",
- "z": "82c1e160.e9dcc",
- "server": "smtp.gmail.com",
- "port": "465",
- "secure": true,
- "name": "",
- "dname": "",
- "x": 1470,
- "y": 260,
- "wires": []
- },
- {
- "id": "d5764564.ff01c8",
- "type": "twitter out",
- "z": "82c1e160.e9dcc",
- "twitter": "",
- "name": "Tweet",
- "x": 1470,
- "y": 320,
- "wires": []
- },
- {
- "id": "d2041ebc.626af",
- "type": "mqtt out",
- "z": "82c1e160.e9dcc",
- "name": "",
- "topic": "NodeESP/[PID]/in",
- "qos": "",
- "retain": "",
- "broker": "3c53c9b8.8965a6",
- "x": 1310,
- "y": 360,
- "wires": []
- },
- {
- "id": "34eed7b6.404048",
- "type": "switch",
- "z": "82c1e160.e9dcc",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "true"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 1,
- "x": 1050,
- "y": 240,
- "wires": [
- [
- "9034c4b5.c536b8"
- ]
- ]
- },
- {
- "id": "9034c4b5.c536b8",
- "type": "change",
- "z": "82c1e160.e9dcc",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "Intruder Detected! Alarm!",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 1240,
- "y": 240,
- "wires": [
- [
- "3b654964.c5d6f6",
- "1187f01f.f317e",
- "867286e5.b0ed48",
- "d5764564.ff01c8"
- ]
- ]
- },
- {
- "id": "7e8868a9.2735b8",
- "type": "switch",
- "z": "82c1e160.e9dcc",
- "name": "",
- "property": "payload.Tilt",
- "propertyType": "msg",
- "rules": [
- {
- "t": "true"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 1,
- "x": 670,
- "y": 280,
- "wires": [
- [
- "a27a4f6e.ffbb7"
- ]
- ]
- },
- {
- "id": "a27a4f6e.ffbb7",
- "type": "trigger",
- "z": "82c1e160.e9dcc",
- "op1": "true",
- "op2": "false",
- "op1type": "bool",
- "op2type": "bool",
- "duration": "5",
- "extend": false,
- "units": "s",
- "reset": "",
- "bytopic": "all",
- "name": "",
- "x": 820,
- "y": 280,
- "wires": [
- [
- "34eed7b6.404048",
- "a2387682.cfacf8",
- "ca27ee95.e8fa"
- ]
- ]
- },
- {
- "id": "a2387682.cfacf8",
- "type": "template",
- "z": "82c1e160.e9dcc",
- "name": "set_alarm",
- "field": "payload",
- "fieldType": "msg",
- "format": "handlebars",
- "syntax": "mustache",
- "template": "{\"cmd\":\"set_alarm\",\"value\":{{payload}}}",
- "output": "str",
- "x": 1060,
- "y": 360,
- "wires": [
- [
- "d2041ebc.626af"
- ]
- ]
- },
- {
- "id": "597bae5f.c9075",
- "type": "debug",
- "z": "82c1e160.e9dcc",
- "name": "",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "false",
- "x": 540,
- "y": 200,
- "wires": []
- },
- {
- "id": "ca27ee95.e8fa",
- "type": "ui_switch",
- "z": "82c1e160.e9dcc",
- "name": "",
- "label": "Alarm State",
- "group": "69ee1125.0f167",
- "order": 0,
- "width": 0,
- "height": 0,
- "passthru": true,
- "decouple": "false",
- "topic": "",
- "style": "",
- "onvalue": "true",
- "onvalueType": "bool",
- "onicon": "",
- "oncolor": "",
- "offvalue": "false",
- "offvalueType": "bool",
- "officon": "",
- "offcolor": "",
- "x": 1070,
- "y": 180,
- "wires": [
- []
- ]
- },
- {
- "id": "3c53c9b8.8965a6",
- "type": "mqtt-broker",
- "z": "",
- "name": "fkainka.de",
- "broker": "broker.fkainka.de",
- "port": "1883",
- "clientid": "",
- "usetls": false,
- "compatmode": true,
- "keepalive": "60",
- "cleansession": true,
- "willTopic": "",
- "willQos": "0",
- "willPayload": "",
- "birthTopic": "",
- "birthQos": "0",
- "birthPayload": ""
- },
- {
- "id": "69ee1125.0f167",
- "type": "ui_group",
- "z": "",
- "name": "[Day23] Alarm",
- "tab": "7d1eab34.801e04",
- "order": 1,
- "disp": true,
- "width": "6",
- "collapse": false
- },
- {
- "id": "7d1eab34.801e04",
- "type": "ui_tab",
- "z": "",
- "name": "Day23",
- "icon": "dashboard",
- "order": 18
- }
- ]
Add Comment
Please, Sign In to add comment