Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "a475d464.111ea8",
- "type": "site",
- "z": "4b0274f2.cc435c",
- "user": "",
- "name": "Revgårdsveien 25",
- "x": 100.07988739013672,
- "y": 243.97570037841797,
- "wires": [
- [
- "23fef806.a904f8"
- ]
- ]
- },
- {
- "id": "23fef806.a904f8",
- "type": "json",
- "z": "4b0274f2.cc435c",
- "name": "",
- "pretty": true,
- "x": 209.01734924316406,
- "y": 127.01040458679199,
- "wires": [
- [
- "e74305ed.e48608",
- "8c2f7670.fad618"
- ]
- ]
- },
- {
- "id": "e74305ed.e48608",
- "type": "debug",
- "z": "4b0274f2.cc435c",
- "name": "all",
- "active": true,
- "console": "false",
- "complete": "payload",
- "x": 344.0173454284668,
- "y": 65.01040458679199,
- "wires": []
- },
- {
- "id": "8c2f7670.fad618",
- "type": "switch",
- "z": "4b0274f2.cc435c",
- "name": "skille filter",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "payload.site",
- "vt": "msg"
- },
- {
- "t": "cont",
- "v": "payload.rooms",
- "vt": "msg"
- },
- {
- "t": "cont",
- "v": "payload.devices",
- "vt": "msg"
- }
- ],
- "checkall": "true",
- "outputs": 3,
- "x": 352.0173568725586,
- "y": 146.01038551330566,
- "wires": [
- [
- "353aa42.730b55c",
- "19ff7a0e.3b4516"
- ],
- [],
- []
- ],
- "outputLabels": [
- "site",
- "rooms",
- "devices"
- ]
- },
- {
- "id": "353aa42.730b55c",
- "type": "debug",
- "z": "4b0274f2.cc435c",
- "name": "site",
- "active": true,
- "console": "false",
- "complete": "payload",
- "x": 547.0173416137695,
- "y": 67.01041221618652,
- "wires": []
- },
- {
- "id": "19ff7a0e.3b4516",
- "type": "switch",
- "z": "4b0274f2.cc435c",
- "name": "modes",
- "property": "payload.site.mode",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "home",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "away",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "sleep",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "vacation",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "outputs": 4,
- "x": 546.0173263549805,
- "y": 127.01041412353516,
- "wires": [
- [],
- [],
- [
- "d21c2ff1.a8d76"
- ],
- []
- ]
- },
- {
- "id": "c644b356.7a303",
- "type": "switch",
- "z": "4b0274f2.cc435c",
- "name": "Vindu trapp",
- "property": "payload.devices[0].id",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "3",
- "vt": "num"
- }
- ],
- "checkall": "true",
- "outputs": 1,
- "x": 857.0177993774414,
- "y": 148.0104160308838,
- "wires": [
- [
- "1fcaf88e.a4cf97"
- ]
- ]
- },
- {
- "id": "1fcaf88e.a4cf97",
- "type": "switch",
- "z": "4b0274f2.cc435c",
- "name": "Åpen/Lukket?",
- "property": "payload.devices[0].openState",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "open",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "closed",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "outputs": 2,
- "x": 1034.684471130371,
- "y": 148.89934158325195,
- "wires": [
- [
- "4732151.fdc7eec"
- ],
- [
- "d2fe3f20.2e392"
- ]
- ]
- },
- {
- "id": "d2fe3f20.2e392",
- "type": "trigger",
- "z": "4b0274f2.cc435c",
- "op1": "Alle dører og vinduer er lukket",
- "op2": "",
- "op1type": "str",
- "op2type": "nul",
- "duration": "10",
- "extend": false,
- "units": "min",
- "reset": "",
- "name": "Alt er lukket",
- "x": 1196.0178146362305,
- "y": 166.01048851013184,
- "wires": [
- [
- "808a51c0.7fd41"
- ]
- ]
- },
- {
- "id": "808a51c0.7fd41",
- "type": "googlehome-notify",
- "z": "4b0274f2.cc435c",
- "server": "289c30c0.cf3e",
- "name": "Google Home",
- "x": 1372.017505645752,
- "y": 166.0104694366455,
- "wires": []
- },
- {
- "id": "4732151.fdc7eec",
- "type": "trigger",
- "z": "4b0274f2.cc435c",
- "op1": "Et eller flere vinduer er åpne, sjekk appen.",
- "op2": "",
- "op1type": "str",
- "op2type": "nul",
- "duration": "10",
- "extend": false,
- "units": "min",
- "reset": "",
- "name": "Noe er åpent",
- "x": 1197.0174102783203,
- "y": 118.01044368743896,
- "wires": [
- [
- "5c6f402b.d65ec"
- ]
- ]
- },
- {
- "id": "5c6f402b.d65ec",
- "type": "googlehome-notify",
- "z": "4b0274f2.cc435c",
- "server": "289c30c0.cf3e",
- "name": "Google Home",
- "x": 1375.0179977416992,
- "y": 117.01043510437012,
- "wires": []
- },
- {
- "id": "d21c2ff1.a8d76",
- "type": "switch",
- "z": "4b0274f2.cc435c",
- "name": "filter",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "payload.site",
- "vt": "msg"
- },
- {
- "t": "cont",
- "v": "payload.rooms",
- "vt": "msg"
- },
- {
- "t": "cont",
- "v": "payload.devices",
- "vt": "msg"
- }
- ],
- "checkall": "true",
- "outputs": 3,
- "x": 710.0173454284668,
- "y": 136.01039695739746,
- "wires": [
- [],
- [],
- [
- "c644b356.7a303"
- ]
- ],
- "outputLabels": [
- "site",
- "rooms",
- "devices"
- ]
- },
- {
- "id": "e8df6175.9eb8",
- "type": "comment",
- "z": "4b0274f2.cc435c",
- "name": "om modes",
- "info": "Litt usikker på om her modes skifter modus eller om den bare sjekker.",
- "x": 722.1667881011963,
- "y": 51.00001525878906,
- "wires": []
- },
- {
- "id": "54d0f824.6aa8d8",
- "type": "comment",
- "z": "4b0274f2.cc435c",
- "name": "filter",
- "info": "trenger vel dette filteret for å spesifisere at det\ner devices jeg jobber med?",
- "x": 736.1667137145996,
- "y": 206.66667938232422,
- "wires": []
- },
- {
- "id": "289c30c0.cf3e",
- "type": "googlehome-config-node",
- "z": "",
- "ipaddress": "10.0.0.5",
- "language": "no"
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement