Advertisement
Guest User

Untitled

a guest
Jun 15th, 2018
928
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 8.68 KB | None | 0 0
  1. [
  2.     {
  3.         "id": "e05421d.b78e86",
  4.         "type": "server-state-changed",
  5.         "z": "3dff0390.3f6f24",
  6.         "name": "Mauricio Phone - Away?",
  7.         "server": "336968d4.86149",
  8.         "entityidfilter": "input_boolean.mauricio_phone",
  9.         "entityidfiltertype": "exact",
  10.         "haltifstate": "on",
  11.         "x": 150,
  12.         "y": 180,
  13.         "wires": [
  14.             [
  15.                 "a033de2.6c18d2"
  16.             ]
  17.         ]
  18.     },
  19.     {
  20.         "id": "5a329bbe.97cebc",
  21.         "type": "server-state-changed",
  22.         "z": "3dff0390.3f6f24",
  23.         "name": "Mauricio Phone - SNMP",
  24.         "server": "336968d4.86149",
  25.         "entityidfilter": "device_tracker.0123456789ab",
  26.         "entityidfiltertype": "exact",
  27.         "haltifstate": "",
  28.         "x": 150,
  29.         "y": 120,
  30.         "wires": [
  31.             [
  32.                 "7a72bf94.169ff8"
  33.             ]
  34.         ]
  35.     },
  36.     {
  37.         "id": "7a72bf94.169ff8",
  38.         "type": "switch",
  39.         "z": "3dff0390.3f6f24",
  40.         "name": "Home?",
  41.         "property": "payload",
  42.         "propertyType": "msg",
  43.         "rules": [
  44.             {
  45.                 "t": "eq",
  46.                 "v": "home",
  47.                 "vt": "str"
  48.             },
  49.             {
  50.                 "t": "eq",
  51.                 "v": "not_home",
  52.                 "vt": "str"
  53.             }
  54.         ],
  55.         "checkall": "true",
  56.         "repair": false,
  57.         "outputs": 2,
  58.         "x": 340,
  59.         "y": 120,
  60.         "wires": [
  61.             [
  62.                 "3e54626b.8d72e6"
  63.             ],
  64.             [
  65.                 "a033de2.6c18d2"
  66.             ]
  67.         ]
  68.     },
  69.     {
  70.         "id": "3e54626b.8d72e6",
  71.         "type": "api-current-state",
  72.         "z": "3dff0390.3f6f24",
  73.         "name": "Mauricio - Status?",
  74.         "server": "336968d4.86149",
  75.         "halt_if": "",
  76.         "override_topic": true,
  77.         "override_payload": true,
  78.         "entity_id": "input_select.mauricio_status_dropdown",
  79.         "x": 510,
  80.         "y": 100,
  81.         "wires": [
  82.             [
  83.                 "76eaefe5.c2cd8",
  84.                 "2b229568.0f1f22"
  85.             ]
  86.         ]
  87.     },
  88.     {
  89.         "id": "76eaefe5.c2cd8",
  90.         "type": "switch",
  91.         "z": "3dff0390.3f6f24",
  92.         "name": "Just Left?",
  93.         "property": "payload",
  94.         "propertyType": "msg",
  95.         "rules": [
  96.             {
  97.                 "t": "neq",
  98.                 "v": "Just Left",
  99.                 "vt": "str"
  100.             },
  101.             {
  102.                 "t": "else"
  103.             }
  104.         ],
  105.         "checkall": "true",
  106.         "repair": false,
  107.         "outputs": 2,
  108.         "x": 680,
  109.         "y": 100,
  110.         "wires": [
  111.             [
  112.                 "f6f1ee8f.1f9aa"
  113.             ],
  114.             [
  115.                 "e1f718e.8829068"
  116.             ]
  117.         ]
  118.     },
  119.     {
  120.         "id": "e1f718e.8829068",
  121.         "type": "api-call-service",
  122.         "z": "3dff0390.3f6f24",
  123.         "name": "Mauricio => Home",
  124.         "server": "336968d4.86149",
  125.         "service_domain": "input_select",
  126.         "service": "select_option",
  127.         "data": "{ \"entity_id\": \"input_select.mauricio_status_dropdown\", \"option\": \"Home\" }",
  128.         "mergecontext": "",
  129.         "x": 1090,
  130.         "y": 140,
  131.         "wires": [
  132.             []
  133.         ]
  134.     },
  135.     {
  136.         "id": "f6f1ee8f.1f9aa",
  137.         "type": "api-call-service",
  138.         "z": "3dff0390.3f6f24",
  139.         "name": "Mauricio => Just Arrived",
  140.         "server": "336968d4.86149",
  141.         "service_domain": "input_select",
  142.         "service": "select_option",
  143.         "data": "{ \"entity_id\": \"input_select.mauricio_status_dropdown\", \"option\": \"Just Arrived\" }",
  144.         "mergecontext": "",
  145.         "x": 870,
  146.         "y": 80,
  147.         "wires": [
  148.             [
  149.                 "af4375da.2a71b8"
  150.             ]
  151.         ]
  152.     },
  153.     {
  154.         "id": "567ff287.d999dc",
  155.         "type": "api-call-service",
  156.         "z": "3dff0390.3f6f24",
  157.         "name": "Mauricio => Just Left",
  158.         "server": "336968d4.86149",
  159.         "service_domain": "input_select",
  160.         "service": "select_option",
  161.         "data": "{ \"entity_id\": \"input_select.mauricio_status_dropdown\", \"option\": \"Just Left\" }",
  162.         "mergecontext": "",
  163.         "x": 520,
  164.         "y": 180,
  165.         "wires": [
  166.             [
  167.                 "ab613958.2eca78",
  168.                 "2b65ed44.dcb67a"
  169.             ]
  170.         ]
  171.     },
  172.     {
  173.         "id": "9187204d.52b81",
  174.         "type": "api-call-service",
  175.         "z": "3dff0390.3f6f24",
  176.         "name": "Mauricio => Away",
  177.         "server": "336968d4.86149",
  178.         "service_domain": "input_select",
  179.         "service": "select_option",
  180.         "data": "{ \"entity_id\": \"input_select.mauricio_status_dropdown\", \"option\": \"Away\" }",
  181.         "mergecontext": "",
  182.         "x": 890,
  183.         "y": 220,
  184.         "wires": [
  185.             [
  186.                 "22e8de38.f12222"
  187.             ]
  188.         ]
  189.     },
  190.     {
  191.         "id": "6bf7b4e6.123314",
  192.         "type": "api-call-service",
  193.         "z": "3dff0390.3f6f24",
  194.         "name": "Mauricio => Extended Away",
  195.         "server": "336968d4.86149",
  196.         "service_domain": "input_select",
  197.         "service": "select_option",
  198.         "data": "{ \"entity_id\": \"input_select.mauricio_status_dropdown\", \"option\": \"Extended Away\" }",
  199.         "mergecontext": "",
  200.         "x": 1260,
  201.         "y": 180,
  202.         "wires": [
  203.             []
  204.         ]
  205.     },
  206.     {
  207.         "id": "2b229568.0f1f22",
  208.         "type": "change",
  209.         "z": "3dff0390.3f6f24",
  210.         "name": "RESET",
  211.         "rules": [
  212.             {
  213.                 "t": "set",
  214.                 "p": "reset",
  215.                 "pt": "msg",
  216.                 "to": "true",
  217.                 "tot": "bool"
  218.             }
  219.         ],
  220.         "action": "",
  221.         "property": "",
  222.         "from": "",
  223.         "to": "",
  224.         "reg": false,
  225.         "x": 680,
  226.         "y": 140,
  227.         "wires": [
  228.             [
  229.                 "2b65ed44.dcb67a",
  230.                 "22e8de38.f12222"
  231.             ]
  232.         ]
  233.     },
  234.     {
  235.         "id": "a033de2.6c18d2",
  236.         "type": "or-gate",
  237.         "z": "3dff0390.3f6f24",
  238.         "name": "OR",
  239.         "rules": [],
  240.         "outputTopic": "",
  241.         "gateType": "or",
  242.         "emitOnlyIfTrue": false,
  243.         "x": 350,
  244.         "y": 180,
  245.         "wires": [
  246.             [
  247.                 "567ff287.d999dc"
  248.             ]
  249.         ]
  250.     },
  251.     {
  252.         "id": "ab613958.2eca78",
  253.         "type": "change",
  254.         "z": "3dff0390.3f6f24",
  255.         "name": "RESET",
  256.         "rules": [
  257.             {
  258.                 "t": "set",
  259.                 "p": "reset",
  260.                 "pt": "msg",
  261.                 "to": "true",
  262.                 "tot": "bool"
  263.             }
  264.         ],
  265.         "action": "",
  266.         "property": "",
  267.         "from": "",
  268.         "to": "",
  269.         "reg": false,
  270.         "x": 800,
  271.         "y": 180,
  272.         "wires": [
  273.             [
  274.                 "22e8de38.f12222",
  275.                 "af4375da.2a71b8"
  276.             ]
  277.         ]
  278.     },
  279.     {
  280.         "id": "2b65ed44.dcb67a",
  281.         "type": "trigger",
  282.         "z": "3dff0390.3f6f24",
  283.         "op1": "",
  284.         "op2": "0",
  285.         "op1type": "nul",
  286.         "op2type": "str",
  287.         "duration": "10",
  288.         "extend": false,
  289.         "units": "min",
  290.         "reset": "",
  291.         "bytopic": "all",
  292.         "name": "10 Min",
  293.         "x": 730,
  294.         "y": 220,
  295.         "wires": [
  296.             [
  297.                 "9187204d.52b81"
  298.             ]
  299.         ]
  300.     },
  301.     {
  302.         "id": "af4375da.2a71b8",
  303.         "type": "trigger",
  304.         "z": "3dff0390.3f6f24",
  305.         "op1": "",
  306.         "op2": "0",
  307.         "op1type": "nul",
  308.         "op2type": "str",
  309.         "duration": "10",
  310.         "extend": false,
  311.         "units": "min",
  312.         "reset": "",
  313.         "bytopic": "all",
  314.         "name": "10 Min",
  315.         "x": 1050,
  316.         "y": 100,
  317.         "wires": [
  318.             [
  319.                 "e1f718e.8829068"
  320.             ]
  321.         ]
  322.     },
  323.     {
  324.         "id": "22e8de38.f12222",
  325.         "type": "trigger",
  326.         "z": "3dff0390.3f6f24",
  327.         "op1": "",
  328.         "op2": "0",
  329.         "op1type": "nul",
  330.         "op2type": "str",
  331.         "duration": "24",
  332.         "extend": false,
  333.         "units": "hr",
  334.         "reset": "",
  335.         "bytopic": "all",
  336.         "name": "24 Hours",
  337.         "x": 1060,
  338.         "y": 180,
  339.         "wires": [
  340.             [
  341.                 "6bf7b4e6.123314"
  342.             ]
  343.         ]
  344.     },
  345.     {
  346.         "id": "336968d4.86149",
  347.         "type": "server",
  348.         "z": "",
  349.         "name": "Home Assistant",
  350.         "url": "http://localhost:8123",
  351.         "pass": "<REDACTED>"
  352.     }
  353. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement