Advertisement
Guest User

Untitled

a guest
Jun 17th, 2018
728
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 9.73 KB | None | 0 0
  1. [
  2.     {
  3.         "id": "8fcbf262.6bc3d8",
  4.         "type": "server-state-changed",
  5.         "z": "152abd73.69dcbb",
  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": 360,
  13.         "wires": [
  14.             [
  15.                 "febbec75.7e65f8"
  16.             ]
  17.         ]
  18.     },
  19.     {
  20.         "id": "95360a40.8cb83",
  21.         "type": "server-state-changed",
  22.         "z": "152abd73.69dcbb",
  23.         "name": "Mauricio Phone - SNMP?",
  24.         "server": "336968d4.86149",
  25.         "entityidfilter": "device_tracker.3871de51d9bd",
  26.         "entityidfiltertype": "exact",
  27.         "haltifstate": "",
  28.         "x": 150,
  29.         "y": 280,
  30.         "wires": [
  31.             [
  32.                 "17f7eb65.ab8c5d"
  33.             ]
  34.         ]
  35.     },
  36.     {
  37.         "id": "17f7eb65.ab8c5d",
  38.         "type": "switch",
  39.         "z": "152abd73.69dcbb",
  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": "false",
  56.         "repair": false,
  57.         "outputs": 2,
  58.         "x": 360,
  59.         "y": 280,
  60.         "wires": [
  61.             [
  62.                 "7a21f6b2.01ed5",
  63.                 "2810bf82.d5ce48"
  64.             ],
  65.             [
  66.                 "febbec75.7e65f8"
  67.             ]
  68.         ]
  69.     },
  70.     {
  71.         "id": "2810bf82.d5ce48",
  72.         "type": "api-current-state",
  73.         "z": "152abd73.69dcbb",
  74.         "name": "Mauricio - Status?",
  75.         "server": "336968d4.86149",
  76.         "halt_if": "",
  77.         "override_topic": true,
  78.         "override_payload": true,
  79.         "entity_id": "input_select.mauricio_status_dropdown",
  80.         "x": 630,
  81.         "y": 300,
  82.         "wires": [
  83.             [
  84.                 "4a6ff12f.af684",
  85.                 "228f6c9e.c955ac"
  86.             ]
  87.         ]
  88.     },
  89.     {
  90.         "id": "4a6ff12f.af684",
  91.         "type": "switch",
  92.         "z": "152abd73.69dcbb",
  93.         "name": "Just Left?",
  94.         "property": "payload",
  95.         "propertyType": "msg",
  96.         "rules": [
  97.             {
  98.                 "t": "neq",
  99.                 "v": "Just Left",
  100.                 "vt": "str"
  101.             },
  102.             {
  103.                 "t": "else"
  104.             }
  105.         ],
  106.         "checkall": "true",
  107.         "repair": false,
  108.         "outputs": 2,
  109.         "x": 860,
  110.         "y": 260,
  111.         "wires": [
  112.             [
  113.                 "cdb8b76c.31b398"
  114.             ],
  115.             [
  116.                 "fcec1e14.f3821"
  117.             ]
  118.         ]
  119.     },
  120.     {
  121.         "id": "fcec1e14.f3821",
  122.         "type": "api-call-service",
  123.         "z": "152abd73.69dcbb",
  124.         "name": "Mauricio => Home",
  125.         "server": "336968d4.86149",
  126.         "service_domain": "input_select",
  127.         "service": "select_option",
  128.         "data": "{ \"entity_id\": \"input_select.mauricio_status_dropdown\", \"option\": \"Home\" }",
  129.         "mergecontext": "",
  130.         "x": 1310,
  131.         "y": 300,
  132.         "wires": [
  133.             []
  134.         ]
  135.     },
  136.     {
  137.         "id": "cdb8b76c.31b398",
  138.         "type": "api-call-service",
  139.         "z": "152abd73.69dcbb",
  140.         "name": "Mauricio => Just Arrived",
  141.         "server": "336968d4.86149",
  142.         "service_domain": "input_select",
  143.         "service": "select_option",
  144.         "data": "{ \"entity_id\": \"input_select.mauricio_status_dropdown\", \"option\": \"Just Arrived\" }",
  145.         "mergecontext": "",
  146.         "x": 1070,
  147.         "y": 260,
  148.         "wires": [
  149.             [
  150.                 "5a40cfcc.560fc8"
  151.             ]
  152.         ]
  153.     },
  154.     {
  155.         "id": "bb5e3c24.e0a7c8",
  156.         "type": "api-call-service",
  157.         "z": "152abd73.69dcbb",
  158.         "name": "Mauricio => Just Left",
  159.         "server": "336968d4.86149",
  160.         "service_domain": "input_select",
  161.         "service": "select_option",
  162.         "data": "{ \"entity_id\": \"input_select.mauricio_status_dropdown\", \"option\": \"Just Left\" }",
  163.         "mergecontext": "",
  164.         "x": 640,
  165.         "y": 380,
  166.         "wires": [
  167.             [
  168.                 "cde2a109.08c9e8",
  169.                 "9cb513e9.f5347"
  170.             ]
  171.         ]
  172.     },
  173.     {
  174.         "id": "c9254c73.b76d88",
  175.         "type": "api-call-service",
  176.         "z": "152abd73.69dcbb",
  177.         "name": "Mauricio => Away",
  178.         "server": "336968d4.86149",
  179.         "service_domain": "input_select",
  180.         "service": "select_option",
  181.         "data": "{ \"entity_id\": \"input_select.mauricio_status_dropdown\", \"option\": \"Away\" }",
  182.         "mergecontext": "",
  183.         "x": 1050,
  184.         "y": 380,
  185.         "wires": [
  186.             [
  187.                 "da09254c.50d2"
  188.             ]
  189.         ]
  190.     },
  191.     {
  192.         "id": "d8bd4d42.766a4",
  193.         "type": "api-call-service",
  194.         "z": "152abd73.69dcbb",
  195.         "name": "Mauricio => Extended Away",
  196.         "server": "336968d4.86149",
  197.         "service_domain": "input_select",
  198.         "service": "select_option",
  199.         "data": "{ \"entity_id\": \"input_select.mauricio_status_dropdown\", \"option\": \"Extended Away\" }",
  200.         "mergecontext": "",
  201.         "x": 1340,
  202.         "y": 380,
  203.         "wires": [
  204.             []
  205.         ]
  206.     },
  207.     {
  208.         "id": "228f6c9e.c955ac",
  209.         "type": "change",
  210.         "z": "152abd73.69dcbb",
  211.         "name": "RESET",
  212.         "rules": [
  213.             {
  214.                 "t": "set",
  215.                 "p": "reset",
  216.                 "pt": "msg",
  217.                 "to": "true",
  218.                 "tot": "bool"
  219.             }
  220.         ],
  221.         "action": "",
  222.         "property": "",
  223.         "from": "",
  224.         "to": "",
  225.         "reg": false,
  226.         "x": 860,
  227.         "y": 300,
  228.         "wires": [
  229.             [
  230.                 "9cb513e9.f5347",
  231.                 "da09254c.50d2"
  232.             ]
  233.         ]
  234.     },
  235.     {
  236.         "id": "cde2a109.08c9e8",
  237.         "type": "change",
  238.         "z": "152abd73.69dcbb",
  239.         "name": "RESET",
  240.         "rules": [
  241.             {
  242.                 "t": "set",
  243.                 "p": "reset",
  244.                 "pt": "msg",
  245.                 "to": "true",
  246.                 "tot": "bool"
  247.             }
  248.         ],
  249.         "action": "",
  250.         "property": "",
  251.         "from": "",
  252.         "to": "",
  253.         "reg": false,
  254.         "x": 860,
  255.         "y": 340,
  256.         "wires": [
  257.             [
  258.                 "da09254c.50d2",
  259.                 "5a40cfcc.560fc8"
  260.             ]
  261.         ]
  262.     },
  263.     {
  264.         "id": "9cb513e9.f5347",
  265.         "type": "trigger",
  266.         "z": "152abd73.69dcbb",
  267.         "op1": "",
  268.         "op2": "0",
  269.         "op1type": "nul",
  270.         "op2type": "str",
  271.         "duration": "10",
  272.         "extend": false,
  273.         "units": "min",
  274.         "reset": "",
  275.         "bytopic": "all",
  276.         "name": "10 Min",
  277.         "x": 850,
  278.         "y": 380,
  279.         "wires": [
  280.             [
  281.                 "c9254c73.b76d88"
  282.             ]
  283.         ]
  284.     },
  285.     {
  286.         "id": "5a40cfcc.560fc8",
  287.         "type": "trigger",
  288.         "z": "152abd73.69dcbb",
  289.         "op1": "",
  290.         "op2": "0",
  291.         "op1type": "nul",
  292.         "op2type": "str",
  293.         "duration": "10",
  294.         "extend": false,
  295.         "units": "min",
  296.         "reset": "",
  297.         "bytopic": "all",
  298.         "name": "10 Min",
  299.         "x": 1270,
  300.         "y": 260,
  301.         "wires": [
  302.             [
  303.                 "fcec1e14.f3821"
  304.             ]
  305.         ]
  306.     },
  307.     {
  308.         "id": "da09254c.50d2",
  309.         "type": "trigger",
  310.         "z": "152abd73.69dcbb",
  311.         "op1": "",
  312.         "op2": "0",
  313.         "op1type": "nul",
  314.         "op2type": "str",
  315.         "duration": "24",
  316.         "extend": false,
  317.         "units": "hr",
  318.         "reset": "",
  319.         "bytopic": "all",
  320.         "name": "24 Hours",
  321.         "x": 1280,
  322.         "y": 340,
  323.         "wires": [
  324.             [
  325.                 "d8bd4d42.766a4"
  326.             ]
  327.         ]
  328.     },
  329.     {
  330.         "id": "4578bd49.c82334",
  331.         "type": "api-call-service",
  332.         "z": "152abd73.69dcbb",
  333.         "name": "Mauricio Home => OFF",
  334.         "server": "336968d4.86149",
  335.         "service_domain": "input_boolean",
  336.         "service": "turn_off",
  337.         "data": "{ \"entity_id\": \"input_boolean.mauricio_home\" }",
  338.         "mergecontext": "",
  339.         "x": 650,
  340.         "y": 340,
  341.         "wires": [
  342.             []
  343.         ]
  344.     },
  345.     {
  346.         "id": "7a21f6b2.01ed5",
  347.         "type": "api-call-service",
  348.         "z": "152abd73.69dcbb",
  349.         "name": "Mauricio Home => ON",
  350.         "server": "336968d4.86149",
  351.         "service_domain": "input_boolean",
  352.         "service": "turn_on",
  353.         "data": "{ \"entity_id\": \"input_boolean.mauricio_home\" }",
  354.         "mergecontext": "",
  355.         "x": 640,
  356.         "y": 260,
  357.         "wires": [
  358.             []
  359.         ]
  360.     },
  361.     {
  362.         "id": "febbec75.7e65f8",
  363.         "type": "api-current-state",
  364.         "z": "152abd73.69dcbb",
  365.         "name": "Mauricio Home ON?",
  366.         "server": "336968d4.86149",
  367.         "halt_if": "off",
  368.         "override_topic": true,
  369.         "override_payload": true,
  370.         "entity_id": "input_boolean.mauricio_home",
  371.         "x": 400,
  372.         "y": 360,
  373.         "wires": [
  374.             [
  375.                 "4578bd49.c82334",
  376.                 "bb5e3c24.e0a7c8"
  377.             ]
  378.         ]
  379.     },
  380.     {
  381.         "id": "336968d4.86149",
  382.         "type": "server",
  383.         "z": "",
  384.         "name": "Home Assistant",
  385.         "url": "http://localhost:8123",
  386.         "pass": "<REDACTED>"
  387.     }
  388. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement