Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "28d3e4331882c3b6",
- "type": "group",
- "z": "9037e766.edc3f8",
- "name": "Motion Detection",
- "style": {
- "label": true
- },
- "nodes": [
- "de2a85e7c944fb39",
- "9193a436be2b7235",
- "56e04fbf5d40973a",
- "d971e4ff0ee3e2b8",
- "69ee52f64ba6f85d",
- "f8d08f8f8513cf5e",
- "0978ee95ee9b68ad",
- "25b9c5aea7f1c66f",
- "26e265b4afb624b4",
- "cfa96da0a1323b7a",
- "639e0c8a54f80430"
- ],
- "x": 34,
- "y": 819,
- "w": 1472,
- "h": 242
- },
- {
- "id": "de2a85e7c944fb39",
- "type": "server-state-changed",
- "z": "9037e766.edc3f8",
- "g": "28d3e4331882c3b6",
- "name": "Motion Detectors",
- "server": "5829325a.2a80bc",
- "version": 3,
- "exposeToHomeAssistant": false,
- "haConfig": [
- {
- "property": "name",
- "value": ""
- },
- {
- "property": "icon",
- "value": ""
- }
- ],
- "entityidfilter": "_motion_detector_o",
- "entityidfiltertype": "substring",
- "outputinitially": false,
- "state_type": "str",
- "haltifstate": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "outputs": 2,
- "output_only_on_state_change": true,
- "for": 0,
- "forType": "num",
- "forUnits": "minutes",
- "ignorePrevStateNull": false,
- "ignorePrevStateUnknown": false,
- "ignorePrevStateUnavailable": false,
- "ignoreCurrentStateUnknown": false,
- "ignoreCurrentStateUnavailable": false,
- "outputProperties": [
- {
- "property": "payload",
- "propertyType": "msg",
- "value": "",
- "valueType": "entityState"
- },
- {
- "property": "data",
- "propertyType": "msg",
- "value": "",
- "valueType": "eventData"
- },
- {
- "property": "topic",
- "propertyType": "msg",
- "value": "",
- "valueType": "triggerId"
- }
- ],
- "x": 200,
- "y": 960,
- "wires": [
- [
- "f8d08f8f8513cf5e"
- ],
- []
- ]
- },
- {
- "id": "9193a436be2b7235",
- "type": "api-call-service",
- "z": "9037e766.edc3f8",
- "g": "28d3e4331882c3b6",
- "name": "Turn off Common and Bathroom lights and Fire Screen",
- "server": "5829325a.2a80bc",
- "version": 3,
- "debugenabled": false,
- "service_domain": "light",
- "service": "turn_{{payload}}",
- "entityId": "light.bathroom_lights, light.kitchen_lights, light.living_room_lights, light.fire_living_room_screen",
- "data": "",
- "dataType": "jsonata",
- "mergecontext": "",
- "mustacheAltTags": false,
- "outputProperties": [],
- "queue": "none",
- "x": 1270,
- "y": 960,
- "wires": [
- []
- ]
- },
- {
- "id": "56e04fbf5d40973a",
- "type": "time-range-switch",
- "z": "9037e766.edc3f8",
- "g": "28d3e4331882c3b6",
- "name": "",
- "lat": "",
- "lon": "",
- "startTime": "00:00",
- "endTime": "07:00",
- "startOffset": 0,
- "endOffset": 0,
- "x": 700,
- "y": 960,
- "wires": [
- [
- "d971e4ff0ee3e2b8",
- "26e265b4afb624b4"
- ],
- []
- ]
- },
- {
- "id": "d971e4ff0ee3e2b8",
- "type": "trigger",
- "z": "9037e766.edc3f8",
- "g": "28d3e4331882c3b6",
- "name": "",
- "op1": "",
- "op2": "off",
- "op1type": "nul",
- "op2type": "str",
- "duration": "5",
- "extend": true,
- "overrideDelay": false,
- "units": "min",
- "reset": "",
- "bytopic": "all",
- "topic": "topic",
- "outputs": 1,
- "x": 910,
- "y": 960,
- "wires": [
- [
- "9193a436be2b7235"
- ]
- ]
- },
- {
- "id": "69ee52f64ba6f85d",
- "type": "inject",
- "z": "9037e766.edc3f8",
- "g": "28d3e4331882c3b6",
- "name": "Force off",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "off",
- "payloadType": "str",
- "x": 920,
- "y": 1020,
- "wires": [
- [
- "9193a436be2b7235"
- ]
- ]
- },
- {
- "id": "f8d08f8f8513cf5e",
- "type": "api-current-state",
- "z": "9037e766.edc3f8",
- "g": "28d3e4331882c3b6",
- "name": "Motion Detectors Enabled?",
- "server": "5829325a.2a80bc",
- "version": 2,
- "outputs": 2,
- "halt_if": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "entity_id": "input_boolean.motion_detectors_active",
- "state_type": "str",
- "blockInputOverrides": false,
- "outputProperties": [
- {
- "property": "payload",
- "propertyType": "msg",
- "value": "",
- "valueType": "entityState"
- },
- {
- "property": "data",
- "propertyType": "msg",
- "value": "",
- "valueType": "entity"
- }
- ],
- "override_topic": false,
- "state_location": "payload",
- "override_payload": "msg",
- "entity_location": "data",
- "override_data": "msg",
- "x": 460,
- "y": 960,
- "wires": [
- [
- "56e04fbf5d40973a"
- ],
- []
- ]
- },
- {
- "id": "0978ee95ee9b68ad",
- "type": "inject",
- "z": "9037e766.edc3f8",
- "g": "28d3e4331882c3b6",
- "name": "Enable Motion Detectors",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "turn_on",
- "payloadType": "str",
- "x": 190,
- "y": 860,
- "wires": [
- [
- "25b9c5aea7f1c66f"
- ]
- ]
- },
- {
- "id": "25b9c5aea7f1c66f",
- "type": "api-call-service",
- "z": "9037e766.edc3f8",
- "g": "28d3e4331882c3b6",
- "name": "Set Motion Detectors",
- "server": "5829325a.2a80bc",
- "version": 3,
- "debugenabled": false,
- "service_domain": "input_boolean",
- "service": "{{payload}}",
- "entityId": "input_boolean.motion_detectors_active",
- "data": "",
- "dataType": "jsonata",
- "mergecontext": "",
- "mustacheAltTags": false,
- "outputProperties": [],
- "queue": "none",
- "x": 440,
- "y": 880,
- "wires": [
- []
- ]
- },
- {
- "id": "26e265b4afb624b4",
- "type": "link out",
- "z": "9037e766.edc3f8",
- "g": "28d3e4331882c3b6",
- "name": "Late Night Scene",
- "links": [
- "64395a15.0c6b3c"
- ],
- "x": 930,
- "y": 900,
- "wires": [],
- "l": true
- },
- {
- "id": "cfa96da0a1323b7a",
- "type": "inject",
- "z": "9037e766.edc3f8",
- "g": "28d3e4331882c3b6",
- "name": "Force Occupied",
- "props": [
- {
- "p": "payload"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payloadType": "date",
- "x": 180,
- "y": 1020,
- "wires": [
- [
- "f8d08f8f8513cf5e"
- ]
- ]
- },
- {
- "id": "639e0c8a54f80430",
- "type": "inject",
- "z": "9037e766.edc3f8",
- "g": "28d3e4331882c3b6",
- "name": "Disable Motion Detectors",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "turn_off",
- "payloadType": "str",
- "x": 190,
- "y": 900,
- "wires": [
- [
- "25b9c5aea7f1c66f"
- ]
- ]
- },
- {
- "id": "5829325a.2a80bc",
- "type": "server",
- "name": "Home Assistant",
- "version": 1,
- "addon": true,
- "rejectUnauthorizedCerts": true,
- "ha_boolean": "y|yes|true|on|home|open",
- "connectionDelay": true,
- "cacheJson": true
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment