Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "e05421d.b78e86",
- "type": "server-state-changed",
- "z": "3dff0390.3f6f24",
- "name": "Mauricio Phone - Away?",
- "server": "336968d4.86149",
- "entityidfilter": "input_boolean.mauricio_phone",
- "entityidfiltertype": "exact",
- "haltifstate": "on",
- "x": 150,
- "y": 180,
- "wires": [
- [
- "a033de2.6c18d2"
- ]
- ]
- },
- {
- "id": "5a329bbe.97cebc",
- "type": "server-state-changed",
- "z": "3dff0390.3f6f24",
- "name": "Mauricio Phone - SNMP",
- "server": "336968d4.86149",
- "entityidfilter": "device_tracker.0123456789ab",
- "entityidfiltertype": "exact",
- "haltifstate": "",
- "x": 150,
- "y": 120,
- "wires": [
- [
- "7a72bf94.169ff8"
- ]
- ]
- },
- {
- "id": "7a72bf94.169ff8",
- "type": "switch",
- "z": "3dff0390.3f6f24",
- "name": "Home?",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "home",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "not_home",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 340,
- "y": 120,
- "wires": [
- [
- "3e54626b.8d72e6"
- ],
- [
- "a033de2.6c18d2"
- ]
- ]
- },
- {
- "id": "3e54626b.8d72e6",
- "type": "api-current-state",
- "z": "3dff0390.3f6f24",
- "name": "Mauricio - Status?",
- "server": "336968d4.86149",
- "halt_if": "",
- "override_topic": true,
- "override_payload": true,
- "entity_id": "input_select.mauricio_status_dropdown",
- "x": 510,
- "y": 100,
- "wires": [
- [
- "76eaefe5.c2cd8",
- "2b229568.0f1f22"
- ]
- ]
- },
- {
- "id": "76eaefe5.c2cd8",
- "type": "switch",
- "z": "3dff0390.3f6f24",
- "name": "Just Left?",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "neq",
- "v": "Just Left",
- "vt": "str"
- },
- {
- "t": "else"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 680,
- "y": 100,
- "wires": [
- [
- "f6f1ee8f.1f9aa"
- ],
- [
- "e1f718e.8829068"
- ]
- ]
- },
- {
- "id": "e1f718e.8829068",
- "type": "api-call-service",
- "z": "3dff0390.3f6f24",
- "name": "Mauricio => Home",
- "server": "336968d4.86149",
- "service_domain": "input_select",
- "service": "select_option",
- "data": "{ \"entity_id\": \"input_select.mauricio_status_dropdown\", \"option\": \"Home\" }",
- "mergecontext": "",
- "x": 1090,
- "y": 140,
- "wires": [
- []
- ]
- },
- {
- "id": "f6f1ee8f.1f9aa",
- "type": "api-call-service",
- "z": "3dff0390.3f6f24",
- "name": "Mauricio => Just Arrived",
- "server": "336968d4.86149",
- "service_domain": "input_select",
- "service": "select_option",
- "data": "{ \"entity_id\": \"input_select.mauricio_status_dropdown\", \"option\": \"Just Arrived\" }",
- "mergecontext": "",
- "x": 870,
- "y": 80,
- "wires": [
- [
- "af4375da.2a71b8"
- ]
- ]
- },
- {
- "id": "567ff287.d999dc",
- "type": "api-call-service",
- "z": "3dff0390.3f6f24",
- "name": "Mauricio => Just Left",
- "server": "336968d4.86149",
- "service_domain": "input_select",
- "service": "select_option",
- "data": "{ \"entity_id\": \"input_select.mauricio_status_dropdown\", \"option\": \"Just Left\" }",
- "mergecontext": "",
- "x": 520,
- "y": 180,
- "wires": [
- [
- "ab613958.2eca78",
- "2b65ed44.dcb67a"
- ]
- ]
- },
- {
- "id": "9187204d.52b81",
- "type": "api-call-service",
- "z": "3dff0390.3f6f24",
- "name": "Mauricio => Away",
- "server": "336968d4.86149",
- "service_domain": "input_select",
- "service": "select_option",
- "data": "{ \"entity_id\": \"input_select.mauricio_status_dropdown\", \"option\": \"Away\" }",
- "mergecontext": "",
- "x": 890,
- "y": 220,
- "wires": [
- [
- "22e8de38.f12222"
- ]
- ]
- },
- {
- "id": "6bf7b4e6.123314",
- "type": "api-call-service",
- "z": "3dff0390.3f6f24",
- "name": "Mauricio => Extended Away",
- "server": "336968d4.86149",
- "service_domain": "input_select",
- "service": "select_option",
- "data": "{ \"entity_id\": \"input_select.mauricio_status_dropdown\", \"option\": \"Extended Away\" }",
- "mergecontext": "",
- "x": 1260,
- "y": 180,
- "wires": [
- []
- ]
- },
- {
- "id": "2b229568.0f1f22",
- "type": "change",
- "z": "3dff0390.3f6f24",
- "name": "RESET",
- "rules": [
- {
- "t": "set",
- "p": "reset",
- "pt": "msg",
- "to": "true",
- "tot": "bool"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 680,
- "y": 140,
- "wires": [
- [
- "2b65ed44.dcb67a",
- "22e8de38.f12222"
- ]
- ]
- },
- {
- "id": "a033de2.6c18d2",
- "type": "or-gate",
- "z": "3dff0390.3f6f24",
- "name": "OR",
- "rules": [],
- "outputTopic": "",
- "gateType": "or",
- "emitOnlyIfTrue": false,
- "x": 350,
- "y": 180,
- "wires": [
- [
- "567ff287.d999dc"
- ]
- ]
- },
- {
- "id": "ab613958.2eca78",
- "type": "change",
- "z": "3dff0390.3f6f24",
- "name": "RESET",
- "rules": [
- {
- "t": "set",
- "p": "reset",
- "pt": "msg",
- "to": "true",
- "tot": "bool"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 800,
- "y": 180,
- "wires": [
- [
- "22e8de38.f12222",
- "af4375da.2a71b8"
- ]
- ]
- },
- {
- "id": "2b65ed44.dcb67a",
- "type": "trigger",
- "z": "3dff0390.3f6f24",
- "op1": "",
- "op2": "0",
- "op1type": "nul",
- "op2type": "str",
- "duration": "10",
- "extend": false,
- "units": "min",
- "reset": "",
- "bytopic": "all",
- "name": "10 Min",
- "x": 730,
- "y": 220,
- "wires": [
- [
- "9187204d.52b81"
- ]
- ]
- },
- {
- "id": "af4375da.2a71b8",
- "type": "trigger",
- "z": "3dff0390.3f6f24",
- "op1": "",
- "op2": "0",
- "op1type": "nul",
- "op2type": "str",
- "duration": "10",
- "extend": false,
- "units": "min",
- "reset": "",
- "bytopic": "all",
- "name": "10 Min",
- "x": 1050,
- "y": 100,
- "wires": [
- [
- "e1f718e.8829068"
- ]
- ]
- },
- {
- "id": "22e8de38.f12222",
- "type": "trigger",
- "z": "3dff0390.3f6f24",
- "op1": "",
- "op2": "0",
- "op1type": "nul",
- "op2type": "str",
- "duration": "24",
- "extend": false,
- "units": "hr",
- "reset": "",
- "bytopic": "all",
- "name": "24 Hours",
- "x": 1060,
- "y": 180,
- "wires": [
- [
- "6bf7b4e6.123314"
- ]
- ]
- },
- {
- "id": "336968d4.86149",
- "type": "server",
- "z": "",
- "name": "Home Assistant",
- "url": "http://localhost:8123",
- "pass": "<REDACTED>"
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement