d_sellers1

Motion detector FLOW

Nov 11th, 2021 (edited)
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 9.43 KB | None | 0 0
  1. [
  2.     {
  3.         "id": "28d3e4331882c3b6",
  4.         "type": "group",
  5.         "z": "9037e766.edc3f8",
  6.         "name": "Motion Detection",
  7.         "style": {
  8.             "label": true
  9.         },
  10.         "nodes": [
  11.             "de2a85e7c944fb39",
  12.             "9193a436be2b7235",
  13.             "56e04fbf5d40973a",
  14.             "d971e4ff0ee3e2b8",
  15.             "69ee52f64ba6f85d",
  16.             "f8d08f8f8513cf5e",
  17.             "0978ee95ee9b68ad",
  18.             "25b9c5aea7f1c66f",
  19.             "26e265b4afb624b4",
  20.             "cfa96da0a1323b7a",
  21.             "639e0c8a54f80430"
  22.         ],
  23.         "x": 34,
  24.         "y": 819,
  25.         "w": 1472,
  26.         "h": 242
  27.     },
  28.     {
  29.         "id": "de2a85e7c944fb39",
  30.         "type": "server-state-changed",
  31.         "z": "9037e766.edc3f8",
  32.         "g": "28d3e4331882c3b6",
  33.         "name": "Motion Detectors",
  34.         "server": "5829325a.2a80bc",
  35.         "version": 3,
  36.         "exposeToHomeAssistant": false,
  37.         "haConfig": [
  38.             {
  39.                 "property": "name",
  40.                 "value": ""
  41.             },
  42.             {
  43.                 "property": "icon",
  44.                 "value": ""
  45.             }
  46.         ],
  47.         "entityidfilter": "_motion_detector_o",
  48.         "entityidfiltertype": "substring",
  49.         "outputinitially": false,
  50.         "state_type": "str",
  51.         "haltifstate": "on",
  52.         "halt_if_type": "str",
  53.         "halt_if_compare": "is",
  54.         "outputs": 2,
  55.         "output_only_on_state_change": true,
  56.         "for": 0,
  57.         "forType": "num",
  58.         "forUnits": "minutes",
  59.         "ignorePrevStateNull": false,
  60.         "ignorePrevStateUnknown": false,
  61.         "ignorePrevStateUnavailable": false,
  62.         "ignoreCurrentStateUnknown": false,
  63.         "ignoreCurrentStateUnavailable": false,
  64.         "outputProperties": [
  65.             {
  66.                 "property": "payload",
  67.                 "propertyType": "msg",
  68.                 "value": "",
  69.                 "valueType": "entityState"
  70.             },
  71.             {
  72.                 "property": "data",
  73.                 "propertyType": "msg",
  74.                 "value": "",
  75.                 "valueType": "eventData"
  76.             },
  77.             {
  78.                 "property": "topic",
  79.                 "propertyType": "msg",
  80.                 "value": "",
  81.                 "valueType": "triggerId"
  82.             }
  83.         ],
  84.         "x": 200,
  85.         "y": 960,
  86.         "wires": [
  87.             [
  88.                 "f8d08f8f8513cf5e"
  89.             ],
  90.             []
  91.         ]
  92.     },
  93.     {
  94.         "id": "9193a436be2b7235",
  95.         "type": "api-call-service",
  96.         "z": "9037e766.edc3f8",
  97.         "g": "28d3e4331882c3b6",
  98.         "name": "Turn off Common and Bathroom lights and Fire Screen",
  99.         "server": "5829325a.2a80bc",
  100.         "version": 3,
  101.         "debugenabled": false,
  102.         "service_domain": "light",
  103.         "service": "turn_{{payload}}",
  104.         "entityId": "light.bathroom_lights, light.kitchen_lights, light.living_room_lights, light.fire_living_room_screen",
  105.         "data": "",
  106.         "dataType": "jsonata",
  107.         "mergecontext": "",
  108.         "mustacheAltTags": false,
  109.         "outputProperties": [],
  110.         "queue": "none",
  111.         "x": 1270,
  112.         "y": 960,
  113.         "wires": [
  114.             []
  115.         ]
  116.     },
  117.     {
  118.         "id": "56e04fbf5d40973a",
  119.         "type": "time-range-switch",
  120.         "z": "9037e766.edc3f8",
  121.         "g": "28d3e4331882c3b6",
  122.         "name": "",
  123.         "lat": "",
  124.         "lon": "",
  125.         "startTime": "00:00",
  126.         "endTime": "07:00",
  127.         "startOffset": 0,
  128.         "endOffset": 0,
  129.         "x": 700,
  130.         "y": 960,
  131.         "wires": [
  132.             [
  133.                 "d971e4ff0ee3e2b8",
  134.                 "26e265b4afb624b4"
  135.             ],
  136.             []
  137.         ]
  138.     },
  139.     {
  140.         "id": "d971e4ff0ee3e2b8",
  141.         "type": "trigger",
  142.         "z": "9037e766.edc3f8",
  143.         "g": "28d3e4331882c3b6",
  144.         "name": "",
  145.         "op1": "",
  146.         "op2": "off",
  147.         "op1type": "nul",
  148.         "op2type": "str",
  149.         "duration": "5",
  150.         "extend": true,
  151.         "overrideDelay": false,
  152.         "units": "min",
  153.         "reset": "",
  154.         "bytopic": "all",
  155.         "topic": "topic",
  156.         "outputs": 1,
  157.         "x": 910,
  158.         "y": 960,
  159.         "wires": [
  160.             [
  161.                 "9193a436be2b7235"
  162.             ]
  163.         ]
  164.     },
  165.     {
  166.         "id": "69ee52f64ba6f85d",
  167.         "type": "inject",
  168.         "z": "9037e766.edc3f8",
  169.         "g": "28d3e4331882c3b6",
  170.         "name": "Force off",
  171.         "props": [
  172.             {
  173.                 "p": "payload"
  174.             },
  175.             {
  176.                 "p": "topic",
  177.                 "vt": "str"
  178.             }
  179.         ],
  180.         "repeat": "",
  181.         "crontab": "",
  182.         "once": false,
  183.         "onceDelay": 0.1,
  184.         "topic": "",
  185.         "payload": "off",
  186.         "payloadType": "str",
  187.         "x": 920,
  188.         "y": 1020,
  189.         "wires": [
  190.             [
  191.                 "9193a436be2b7235"
  192.             ]
  193.         ]
  194.     },
  195.     {
  196.         "id": "f8d08f8f8513cf5e",
  197.         "type": "api-current-state",
  198.         "z": "9037e766.edc3f8",
  199.         "g": "28d3e4331882c3b6",
  200.         "name": "Motion Detectors Enabled?",
  201.         "server": "5829325a.2a80bc",
  202.         "version": 2,
  203.         "outputs": 2,
  204.         "halt_if": "on",
  205.         "halt_if_type": "str",
  206.         "halt_if_compare": "is",
  207.         "entity_id": "input_boolean.motion_detectors_active",
  208.         "state_type": "str",
  209.         "blockInputOverrides": false,
  210.         "outputProperties": [
  211.             {
  212.                 "property": "payload",
  213.                 "propertyType": "msg",
  214.                 "value": "",
  215.                 "valueType": "entityState"
  216.             },
  217.             {
  218.                 "property": "data",
  219.                 "propertyType": "msg",
  220.                 "value": "",
  221.                 "valueType": "entity"
  222.             }
  223.         ],
  224.         "override_topic": false,
  225.         "state_location": "payload",
  226.         "override_payload": "msg",
  227.         "entity_location": "data",
  228.         "override_data": "msg",
  229.         "x": 460,
  230.         "y": 960,
  231.         "wires": [
  232.             [
  233.                 "56e04fbf5d40973a"
  234.             ],
  235.             []
  236.         ]
  237.     },
  238.     {
  239.         "id": "0978ee95ee9b68ad",
  240.         "type": "inject",
  241.         "z": "9037e766.edc3f8",
  242.         "g": "28d3e4331882c3b6",
  243.         "name": "Enable Motion Detectors",
  244.         "props": [
  245.             {
  246.                 "p": "payload"
  247.             },
  248.             {
  249.                 "p": "topic",
  250.                 "vt": "str"
  251.             }
  252.         ],
  253.         "repeat": "",
  254.         "crontab": "",
  255.         "once": false,
  256.         "onceDelay": 0.1,
  257.         "topic": "",
  258.         "payload": "turn_on",
  259.         "payloadType": "str",
  260.         "x": 190,
  261.         "y": 860,
  262.         "wires": [
  263.             [
  264.                 "25b9c5aea7f1c66f"
  265.             ]
  266.         ]
  267.     },
  268.     {
  269.         "id": "25b9c5aea7f1c66f",
  270.         "type": "api-call-service",
  271.         "z": "9037e766.edc3f8",
  272.         "g": "28d3e4331882c3b6",
  273.         "name": "Set Motion Detectors",
  274.         "server": "5829325a.2a80bc",
  275.         "version": 3,
  276.         "debugenabled": false,
  277.         "service_domain": "input_boolean",
  278.         "service": "{{payload}}",
  279.         "entityId": "input_boolean.motion_detectors_active",
  280.         "data": "",
  281.         "dataType": "jsonata",
  282.         "mergecontext": "",
  283.         "mustacheAltTags": false,
  284.         "outputProperties": [],
  285.         "queue": "none",
  286.         "x": 440,
  287.         "y": 880,
  288.         "wires": [
  289.             []
  290.         ]
  291.     },
  292.     {
  293.         "id": "26e265b4afb624b4",
  294.         "type": "link out",
  295.         "z": "9037e766.edc3f8",
  296.         "g": "28d3e4331882c3b6",
  297.         "name": "Late Night Scene",
  298.         "links": [
  299.             "64395a15.0c6b3c"
  300.         ],
  301.         "x": 930,
  302.         "y": 900,
  303.         "wires": [],
  304.         "l": true
  305.     },
  306.     {
  307.         "id": "cfa96da0a1323b7a",
  308.         "type": "inject",
  309.         "z": "9037e766.edc3f8",
  310.         "g": "28d3e4331882c3b6",
  311.         "name": "Force Occupied",
  312.         "props": [
  313.             {
  314.                 "p": "payload"
  315.             }
  316.         ],
  317.         "repeat": "",
  318.         "crontab": "",
  319.         "once": false,
  320.         "onceDelay": 0.1,
  321.         "topic": "",
  322.         "payloadType": "date",
  323.         "x": 180,
  324.         "y": 1020,
  325.         "wires": [
  326.             [
  327.                 "f8d08f8f8513cf5e"
  328.             ]
  329.         ]
  330.     },
  331.     {
  332.         "id": "639e0c8a54f80430",
  333.         "type": "inject",
  334.         "z": "9037e766.edc3f8",
  335.         "g": "28d3e4331882c3b6",
  336.         "name": "Disable Motion Detectors",
  337.         "props": [
  338.             {
  339.                 "p": "payload"
  340.             },
  341.             {
  342.                 "p": "topic",
  343.                 "vt": "str"
  344.             }
  345.         ],
  346.         "repeat": "",
  347.         "crontab": "",
  348.         "once": false,
  349.         "onceDelay": 0.1,
  350.         "topic": "",
  351.         "payload": "turn_off",
  352.         "payloadType": "str",
  353.         "x": 190,
  354.         "y": 900,
  355.         "wires": [
  356.             [
  357.                 "25b9c5aea7f1c66f"
  358.             ]
  359.         ]
  360.     },
  361.     {
  362.         "id": "5829325a.2a80bc",
  363.         "type": "server",
  364.         "name": "Home Assistant",
  365.         "version": 1,
  366.         "addon": true,
  367.         "rejectUnauthorizedCerts": true,
  368.         "ha_boolean": "y|yes|true|on|home|open",
  369.         "connectionDelay": true,
  370.         "cacheJson": true
  371.     }
  372. ]
Advertisement
Add Comment
Please, Sign In to add comment