Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "8fcbf262.6bc3d8",
- "type": "server-state-changed",
- "z": "152abd73.69dcbb",
- "name": "Mauricio Phone - Away?",
- "server": "336968d4.86149",
- "entityidfilter": "input_boolean.mauricio_phone",
- "entityidfiltertype": "exact",
- "haltifstate": "on",
- "x": 150,
- "y": 360,
- "wires": [
- [
- "febbec75.7e65f8"
- ]
- ]
- },
- {
- "id": "95360a40.8cb83",
- "type": "server-state-changed",
- "z": "152abd73.69dcbb",
- "name": "Mauricio Phone - SNMP?",
- "server": "336968d4.86149",
- "entityidfilter": "device_tracker.3871de51d9bd",
- "entityidfiltertype": "exact",
- "haltifstate": "",
- "x": 150,
- "y": 280,
- "wires": [
- [
- "17f7eb65.ab8c5d"
- ]
- ]
- },
- {
- "id": "17f7eb65.ab8c5d",
- "type": "switch",
- "z": "152abd73.69dcbb",
- "name": "Home?",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "home",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "not_home",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": false,
- "outputs": 2,
- "x": 360,
- "y": 280,
- "wires": [
- [
- "7a21f6b2.01ed5",
- "2810bf82.d5ce48"
- ],
- [
- "febbec75.7e65f8"
- ]
- ]
- },
- {
- "id": "2810bf82.d5ce48",
- "type": "api-current-state",
- "z": "152abd73.69dcbb",
- "name": "Mauricio - Status?",
- "server": "336968d4.86149",
- "halt_if": "",
- "override_topic": true,
- "override_payload": true,
- "entity_id": "input_select.mauricio_status_dropdown",
- "x": 630,
- "y": 300,
- "wires": [
- [
- "4a6ff12f.af684",
- "228f6c9e.c955ac"
- ]
- ]
- },
- {
- "id": "4a6ff12f.af684",
- "type": "switch",
- "z": "152abd73.69dcbb",
- "name": "Just Left?",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "neq",
- "v": "Just Left",
- "vt": "str"
- },
- {
- "t": "else"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 860,
- "y": 260,
- "wires": [
- [
- "cdb8b76c.31b398"
- ],
- [
- "fcec1e14.f3821"
- ]
- ]
- },
- {
- "id": "fcec1e14.f3821",
- "type": "api-call-service",
- "z": "152abd73.69dcbb",
- "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": 1310,
- "y": 300,
- "wires": [
- []
- ]
- },
- {
- "id": "cdb8b76c.31b398",
- "type": "api-call-service",
- "z": "152abd73.69dcbb",
- "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": 1070,
- "y": 260,
- "wires": [
- [
- "5a40cfcc.560fc8"
- ]
- ]
- },
- {
- "id": "bb5e3c24.e0a7c8",
- "type": "api-call-service",
- "z": "152abd73.69dcbb",
- "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": 640,
- "y": 380,
- "wires": [
- [
- "cde2a109.08c9e8",
- "9cb513e9.f5347"
- ]
- ]
- },
- {
- "id": "c9254c73.b76d88",
- "type": "api-call-service",
- "z": "152abd73.69dcbb",
- "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": 1050,
- "y": 380,
- "wires": [
- [
- "da09254c.50d2"
- ]
- ]
- },
- {
- "id": "d8bd4d42.766a4",
- "type": "api-call-service",
- "z": "152abd73.69dcbb",
- "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": 1340,
- "y": 380,
- "wires": [
- []
- ]
- },
- {
- "id": "228f6c9e.c955ac",
- "type": "change",
- "z": "152abd73.69dcbb",
- "name": "RESET",
- "rules": [
- {
- "t": "set",
- "p": "reset",
- "pt": "msg",
- "to": "true",
- "tot": "bool"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 860,
- "y": 300,
- "wires": [
- [
- "9cb513e9.f5347",
- "da09254c.50d2"
- ]
- ]
- },
- {
- "id": "cde2a109.08c9e8",
- "type": "change",
- "z": "152abd73.69dcbb",
- "name": "RESET",
- "rules": [
- {
- "t": "set",
- "p": "reset",
- "pt": "msg",
- "to": "true",
- "tot": "bool"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 860,
- "y": 340,
- "wires": [
- [
- "da09254c.50d2",
- "5a40cfcc.560fc8"
- ]
- ]
- },
- {
- "id": "9cb513e9.f5347",
- "type": "trigger",
- "z": "152abd73.69dcbb",
- "op1": "",
- "op2": "0",
- "op1type": "nul",
- "op2type": "str",
- "duration": "10",
- "extend": false,
- "units": "min",
- "reset": "",
- "bytopic": "all",
- "name": "10 Min",
- "x": 850,
- "y": 380,
- "wires": [
- [
- "c9254c73.b76d88"
- ]
- ]
- },
- {
- "id": "5a40cfcc.560fc8",
- "type": "trigger",
- "z": "152abd73.69dcbb",
- "op1": "",
- "op2": "0",
- "op1type": "nul",
- "op2type": "str",
- "duration": "10",
- "extend": false,
- "units": "min",
- "reset": "",
- "bytopic": "all",
- "name": "10 Min",
- "x": 1270,
- "y": 260,
- "wires": [
- [
- "fcec1e14.f3821"
- ]
- ]
- },
- {
- "id": "da09254c.50d2",
- "type": "trigger",
- "z": "152abd73.69dcbb",
- "op1": "",
- "op2": "0",
- "op1type": "nul",
- "op2type": "str",
- "duration": "24",
- "extend": false,
- "units": "hr",
- "reset": "",
- "bytopic": "all",
- "name": "24 Hours",
- "x": 1280,
- "y": 340,
- "wires": [
- [
- "d8bd4d42.766a4"
- ]
- ]
- },
- {
- "id": "4578bd49.c82334",
- "type": "api-call-service",
- "z": "152abd73.69dcbb",
- "name": "Mauricio Home => OFF",
- "server": "336968d4.86149",
- "service_domain": "input_boolean",
- "service": "turn_off",
- "data": "{ \"entity_id\": \"input_boolean.mauricio_home\" }",
- "mergecontext": "",
- "x": 650,
- "y": 340,
- "wires": [
- []
- ]
- },
- {
- "id": "7a21f6b2.01ed5",
- "type": "api-call-service",
- "z": "152abd73.69dcbb",
- "name": "Mauricio Home => ON",
- "server": "336968d4.86149",
- "service_domain": "input_boolean",
- "service": "turn_on",
- "data": "{ \"entity_id\": \"input_boolean.mauricio_home\" }",
- "mergecontext": "",
- "x": 640,
- "y": 260,
- "wires": [
- []
- ]
- },
- {
- "id": "febbec75.7e65f8",
- "type": "api-current-state",
- "z": "152abd73.69dcbb",
- "name": "Mauricio Home ON?",
- "server": "336968d4.86149",
- "halt_if": "off",
- "override_topic": true,
- "override_payload": true,
- "entity_id": "input_boolean.mauricio_home",
- "x": 400,
- "y": 360,
- "wires": [
- [
- "4578bd49.c82334",
- "bb5e3c24.e0a7c8"
- ]
- ]
- },
- {
- "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