From ac3193891d3c3a75afc6f4cd6e005bedc38533f8 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sat, 19 Apr 2025 03:35:17 -0400 Subject: [PATCH] Organize presence flows --- flows.json | 383 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 318 insertions(+), 65 deletions(-) diff --git a/flows.json b/flows.json index 9a6b1d8..a27fd1b 100644 --- a/flows.json +++ b/flows.json @@ -2429,6 +2429,192 @@ "w": 352, "h": 622 }, + { + "id": "bf0e3e8c2f5a5474", + "type": "group", + "z": "3abb5ae57afb4761", + "name": "Tina", + "style": { + "stroke": "#6f2fa0", + "fill": "#9363b7", + "label": true + }, + "nodes": [ + "49dbd6d6cba1b010", + "a0c7649e26e66ddb", + "898659d514aa58fd", + "35d7371023527600", + "9ae7e308f889137d", + "edaa6ff605ba6fa7", + "bcdf2e5f1249631d", + "7992545819db1a42", + "ec497068c3a61d02", + "10228956c46b8d7a", + "2851173db6835eda", + "82c0fb65066f3b67", + "7fbab2c7cb7ecc92", + "5e72a180d8f0232d", + "9d03fda88310da78", + "8a22032494f84cae", + "8c910479678a8f5e" + ], + "x": 74, + "y": 399, + "w": 1192, + "h": 422 + }, + { + "id": "7821289ad49774c9", + "type": "group", + "z": "3abb5ae57afb4761", + "name": "Tony", + "style": { + "stroke": "#6f2fa0", + "fill": "#9363b7", + "label": true + }, + "nodes": [ + "134433d6e21dab5b", + "77857e77d43a9d2e", + "379edcf9fe985ebe", + "e6bdfba61c73d081", + "7169f007c32ccc46", + "41aa4436b55474b2", + "bf504c30194524b9", + "0a039e097233b977", + "8c7c1cd31a824cd5", + "24a89088d5503778", + "f54ba77dfe1e7ba4" + ], + "x": 74, + "y": 59, + "w": 652, + "h": 322 + }, + { + "id": "6a0fc544a641af5f", + "type": "group", + "z": "3abb5ae57afb4761", + "name": "Outdoor", + "style": { + "stroke": "#92d04f", + "fill": "#addb7b", + "label": true + }, + "nodes": [ + "26f15fc8d75a4020", + "47aa56df01f697fc", + "c46dfcaa9a2798f0", + "05547a934bbcab4d", + "ff44de8d65439a5f", + "5f8b61ddc9963e99", + "0ba46659c49cf39a", + "025e65a78727f99e", + "788f7cfdfa2fdef9" + ], + "x": 744, + "y": 59, + "w": 672, + "h": 282 + }, + { + "id": "6c0f29670fcc9493", + "type": "group", + "z": "3abb5ae57afb4761", + "name": "Kallen", + "style": { + "stroke": "#6f2fa0", + "fill": "#9363b7", + "label": true + }, + "nodes": [ + "cd4d8dd6b1d34f49", + "5193627a30d1b32d", + "fb1afc4c2078ca29", + "43048b96595e3e97", + "8e081e76e5f19ead", + "156d50efeaeb681c", + "8a450e797b413418", + "8584a491587be9a2", + "547753c8de135e69" + ], + "x": 74, + "y": 839, + "w": 872, + "h": 262 + }, + { + "id": "e74c2fa5c53fd805", + "type": "group", + "z": "3abb5ae57afb4761", + "name": "Parents", + "style": { + "stroke": "#001f60", + "fill": "#3f5787", + "label": true + }, + "nodes": [ + "351ac66c934832eb", + "df53af0726555079", + "331ed2d217025fd1", + "0eaa398b977e03b5", + "63dc161e193d33c5", + "84a56bf51e79fd4d", + "8811ce1d8dacd3b1" + ], + "x": 74, + "y": 1119, + "w": 712, + "h": 202 + }, + { + "id": "205da12d712d058b", + "type": "group", + "z": "3abb5ae57afb4761", + "name": "Nerds", + "style": { + "stroke": "#001f60", + "fill": "#3f5787", + "label": true + }, + "nodes": [ + "663b5401ea953d2d", + "802ff36b76e55809", + "a999c33047fc3b61", + "84a2692b31e7d7d8", + "bf5f6c5af1c02315", + "dafcce5a61b19f8b", + "4e97de53400335b9" + ], + "x": 74, + "y": 1339, + "w": 712, + "h": 202 + }, + { + "id": "c19f180ec1dc0bcf", + "type": "group", + "z": "3abb5ae57afb4761", + "name": "Family", + "style": { + "stroke": "#001f60", + "fill": "#3f5787", + "label": true + }, + "nodes": [ + "028e16d90ac7433d", + "d5a9248680297b56", + "b8ef333da370f91e", + "1ac137ebc9f53e3c", + "66b7ec9a7e332cca", + "bebba6e7a61461b8", + "96ebe81b6e20112e" + ], + "x": 74, + "y": 1559, + "w": 712, + "h": 202 + }, { "id": "fba69dfc80829db7", "type": "junction", @@ -8984,6 +9170,7 @@ "id": "134433d6e21dab5b", "type": "server-state-changed", "z": "3abb5ae57afb4761", + "g": "7821289ad49774c9", "name": "Tony Presence", "server": "9e87348d.9c1c48", "version": 6, @@ -9048,6 +9235,7 @@ "id": "77857e77d43a9d2e", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "7821289ad49774c9", "name": "Enable Texts (Tony)", "server": "9e87348d.9c1c48", "version": 7, @@ -9081,6 +9269,7 @@ "id": "379edcf9fe985ebe", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "7821289ad49774c9", "name": "Disable Texts (Tony)", "server": "9e87348d.9c1c48", "version": 7, @@ -9114,6 +9303,7 @@ "id": "49dbd6d6cba1b010", "type": "server-state-changed", "z": "3abb5ae57afb4761", + "g": "bf0e3e8c2f5a5474", "name": "Tina Presence", "server": "9e87348d.9c1c48", "version": 6, @@ -9161,7 +9351,7 @@ } ], "x": 170, - "y": 480, + "y": 560, "wires": [ [ "a0c7649e26e66ddb", @@ -9185,6 +9375,7 @@ "id": "a0c7649e26e66ddb", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "bf0e3e8c2f5a5474", "name": "Enable Texts (Tina)", "server": "9e87348d.9c1c48", "version": 7, @@ -9207,7 +9398,7 @@ "domain": "input_boolean", "service": "turn_on", "x": 410, - "y": 460, + "y": 540, "wires": [ [ "2851173db6835eda" @@ -9218,6 +9409,7 @@ "id": "898659d514aa58fd", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "bf0e3e8c2f5a5474", "name": "Disable Texts (Tina)", "server": "9e87348d.9c1c48", "version": 7, @@ -9240,7 +9432,7 @@ "domain": "input_boolean", "service": "turn_off", "x": 410, - "y": 640, + "y": 720, "wires": [ [ "82c0fb65066f3b67" @@ -9251,6 +9443,7 @@ "id": "cd4d8dd6b1d34f49", "type": "server-state-changed", "z": "3abb5ae57afb4761", + "g": "6c0f29670fcc9493", "name": "Kallen Presence", "server": "9e87348d.9c1c48", "version": 6, @@ -9292,7 +9485,7 @@ } ], "x": 180, - "y": 840, + "y": 960, "wires": [ [ "5193627a30d1b32d", @@ -9314,6 +9507,7 @@ "id": "5193627a30d1b32d", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "6c0f29670fcc9493", "name": "Enable Texts (Kallen)", "server": "9e87348d.9c1c48", "version": 7, @@ -9336,7 +9530,7 @@ "domain": "input_boolean", "service": "turn_on", "x": 420, - "y": 820, + "y": 940, "wires": [ [ "8e081e76e5f19ead" @@ -9347,6 +9541,7 @@ "id": "fb1afc4c2078ca29", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "6c0f29670fcc9493", "name": "Disable Texts (Kallen)", "server": "9e87348d.9c1c48", "version": 7, @@ -9369,7 +9564,7 @@ "domain": "input_boolean", "service": "turn_off", "x": 640, - "y": 880, + "y": 1000, "wires": [ [ "156d50efeaeb681c" @@ -9380,6 +9575,7 @@ "id": "35d7371023527600", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "bf0e3e8c2f5a5474", "name": "Notify Tony", "server": "9e87348d.9c1c48", "version": 7, @@ -9400,7 +9596,7 @@ "domain": "script", "service": "text_notify", "x": 390, - "y": 580, + "y": 660, "wires": [ [ "bcdf2e5f1249631d" @@ -9411,6 +9607,7 @@ "id": "9ae7e308f889137d", "type": "wake on lan", "z": "3abb5ae57afb4761", + "g": "bf0e3e8c2f5a5474", "mac": "B4:2E:99:A8:CF:88", "host": "192.168.1.255", "udpport": 9, @@ -9418,13 +9615,14 @@ "interval": 100, "name": "Boot Tina's Computer", "x": 900, - "y": 420, + "y": 500, "wires": [] }, { "id": "edaa6ff605ba6fa7", "type": "change", "z": "3abb5ae57afb4761", + "g": "bf0e3e8c2f5a5474", "name": "Formatting", "rules": [ { @@ -9448,7 +9646,7 @@ "to": "", "reg": false, "x": 335, - "y": 520, + "y": 600, "wires": [ [ "10228956c46b8d7a" @@ -9460,6 +9658,7 @@ "id": "e6bdfba61c73d081", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "7821289ad49774c9", "name": "Notify Tina", "server": "9e87348d.9c1c48", "version": 7, @@ -9491,6 +9690,7 @@ "id": "7169f007c32ccc46", "type": "change", "z": "3abb5ae57afb4761", + "g": "7821289ad49774c9", "name": "Formatting", "rules": [ { @@ -9526,6 +9726,7 @@ "id": "41aa4436b55474b2", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "7821289ad49774c9", "name": "Notify Kallen", "server": "9e87348d.9c1c48", "version": 7, @@ -9555,6 +9756,7 @@ "id": "bcdf2e5f1249631d", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "bf0e3e8c2f5a5474", "name": "Notify Kallen", "server": "9e87348d.9c1c48", "version": 7, @@ -9575,7 +9777,7 @@ "domain": "script", "service": "text_notify", "x": 590, - "y": 560, + "y": 640, "wires": [ [] ] @@ -9584,6 +9786,7 @@ "id": "7992545819db1a42", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "bf0e3e8c2f5a5474", "name": "Notify Tony", "server": "9e87348d.9c1c48", "version": 7, @@ -9604,7 +9807,7 @@ "domain": "script", "service": "text_notify", "x": 870, - "y": 480, + "y": 560, "wires": [ [] ] @@ -9613,13 +9816,14 @@ "id": "26f15fc8d75a4020", "type": "link out", "z": "3abb5ae57afb4761", + "g": "6a0fc544a641af5f", "name": "Presence Detection for Front Porch", "mode": "link", "links": [ "f34816b23181f21e" ], - "x": 985, - "y": 40, + "x": 995, + "y": 100, "wires": [] }, { @@ -9647,6 +9851,7 @@ "id": "bf504c30194524b9", "type": "api-current-state", "z": "3abb5ae57afb4761", + "g": "7821289ad49774c9", "name": "Tony Presence?", "server": "9e87348d.9c1c48", "version": 3, @@ -9692,6 +9897,7 @@ "id": "ec497068c3a61d02", "type": "api-current-state", "z": "3abb5ae57afb4761", + "g": "bf0e3e8c2f5a5474", "name": "Tina Presence?", "server": "9e87348d.9c1c48", "version": 3, @@ -9719,7 +9925,7 @@ "entity_location": "data", "override_data": "msg", "x": 180, - "y": 540, + "y": 620, "wires": [ [ "a0c7649e26e66ddb" @@ -9737,6 +9943,7 @@ "id": "43048b96595e3e97", "type": "api-current-state", "z": "3abb5ae57afb4761", + "g": "6c0f29670fcc9493", "name": "Kallen Presence?", "server": "9e87348d.9c1c48", "version": 3, @@ -9764,7 +9971,7 @@ "entity_location": "data", "override_data": "msg", "x": 190, - "y": 900, + "y": 1020, "wires": [ [ "5193627a30d1b32d" @@ -9782,6 +9989,7 @@ "id": "0a039e097233b977", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "7821289ad49774c9", "name": "TV Notifications", "server": "9e87348d.9c1c48", "version": 7, @@ -9811,6 +10019,7 @@ "id": "10228956c46b8d7a", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "bf0e3e8c2f5a5474", "name": "TV Notifications", "server": "9e87348d.9c1c48", "version": 7, @@ -9831,7 +10040,7 @@ "domain": "script", "service": "tv_notify", "x": 600, - "y": 520, + "y": 600, "wires": [ [] ] @@ -9868,6 +10077,7 @@ "id": "47aa56df01f697fc", "type": "server-state-changed", "z": "3abb5ae57afb4761", + "g": "6a0fc544a641af5f", "name": "Front Door Open", "server": "9e87348d.9c1c48", "version": 6, @@ -9914,8 +10124,8 @@ "valueType": "str" } ], - "x": 840, - "y": 60, + "x": 850, + "y": 120, "wires": [ [ "26f15fc8d75a4020", @@ -9935,6 +10145,7 @@ "id": "c46dfcaa9a2798f0", "type": "server-state-changed", "z": "3abb5ae57afb4761", + "g": "6a0fc544a641af5f", "name": "Doorbell", "server": "9e87348d.9c1c48", "version": 6, @@ -9975,8 +10186,8 @@ "valueType": "str" } ], - "x": 860, - "y": 240, + "x": 870, + "y": 300, "wires": [ [ "26f15fc8d75a4020", @@ -9988,6 +10199,7 @@ "id": "05547a934bbcab4d", "type": "server-state-changed", "z": "3abb5ae57afb4761", + "g": "6a0fc544a641af5f", "name": "Motion Detected", "server": "9e87348d.9c1c48", "version": 6, @@ -10028,8 +10240,8 @@ "valueType": "str" } ], - "x": 840, - "y": 180, + "x": 850, + "y": 240, "wires": [ [ "26f15fc8d75a4020", @@ -10044,6 +10256,7 @@ "id": "ff44de8d65439a5f", "type": "server-state-changed", "z": "3abb5ae57afb4761", + "g": "6a0fc544a641af5f", "name": "Back Door Open", "server": "9e87348d.9c1c48", "version": 6, @@ -10090,8 +10303,8 @@ "valueType": "str" } ], - "x": 840, - "y": 120, + "x": 850, + "y": 180, "wires": [ [ "5f8b61ddc9963e99" @@ -10107,6 +10320,7 @@ "id": "5f8b61ddc9963e99", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "6a0fc544a641af5f", "name": "+1", "server": "9e87348d.9c1c48", "version": 7, @@ -10128,8 +10342,8 @@ "blockInputOverrides": false, "domain": "counter", "service": "increment", - "x": 1330, - "y": 140, + "x": 1340, + "y": 200, "wires": [ [] ] @@ -10138,6 +10352,7 @@ "id": "0ba46659c49cf39a", "type": "mqtt out", "z": "3abb5ae57afb4761", + "g": "6a0fc544a641af5f", "name": "MQTT Last Trigger", "topic": "house/presence/outdoor/last_trigger", "qos": "2", @@ -10148,14 +10363,15 @@ "correl": "", "expiry": "", "broker": "fd29421fc00140a8", - "x": 1290, - "y": 80, + "x": 1300, + "y": 140, "wires": [] }, { "id": "025e65a78727f99e", "type": "change", "z": "3abb5ae57afb4761", + "g": "6a0fc544a641af5f", "name": "Set Payload", "rules": [ { @@ -10171,8 +10387,8 @@ "from": "", "to": "", "reg": false, - "x": 1090, - "y": 80, + "x": 1100, + "y": 140, "wires": [ [ "0ba46659c49cf39a" @@ -10183,6 +10399,7 @@ "id": "028e16d90ac7433d", "type": "server-state-changed", "z": "3abb5ae57afb4761", + "g": "c19f180ec1dc0bcf", "name": "Family Presence", "server": "9e87348d.9c1c48", "version": 6, @@ -10224,7 +10441,7 @@ } ], "x": 180, - "y": 1360, + "y": 1600, "wires": [ [ "d5a9248680297b56", @@ -10244,6 +10461,7 @@ "id": "d5a9248680297b56", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "c19f180ec1dc0bcf", "name": "Enable Texts (All)", "server": "9e87348d.9c1c48", "version": 7, @@ -10266,7 +10484,7 @@ "domain": "input_boolean", "service": "turn_on", "x": 450, - "y": 1360, + "y": 1600, "wires": [ [ "66b7ec9a7e332cca" @@ -10277,6 +10495,7 @@ "id": "b8ef333da370f91e", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "c19f180ec1dc0bcf", "name": "Disable Texts (All)", "server": "9e87348d.9c1c48", "version": 7, @@ -10299,7 +10518,7 @@ "domain": "input_boolean", "service": "turn_off", "x": 450, - "y": 1420, + "y": 1660, "wires": [ [ "bebba6e7a61461b8" @@ -10310,6 +10529,7 @@ "id": "351ac66c934832eb", "type": "server-state-changed", "z": "3abb5ae57afb4761", + "g": "e74c2fa5c53fd805", "name": "Parents Presence", "server": "9e87348d.9c1c48", "version": 6, @@ -10351,7 +10571,7 @@ } ], "x": 190, - "y": 1000, + "y": 1160, "wires": [ [ "331ed2d217025fd1", @@ -10367,6 +10587,7 @@ "id": "df53af0726555079", "type": "api-current-state", "z": "3abb5ae57afb4761", + "g": "e74c2fa5c53fd805", "name": "Parents Presence?", "server": "9e87348d.9c1c48", "version": 3, @@ -10394,7 +10615,7 @@ "entity_location": "data", "override_data": "msg", "x": 190, - "y": 1060, + "y": 1220, "wires": [ [ "331ed2d217025fd1" @@ -10408,6 +10629,7 @@ "id": "331ed2d217025fd1", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "e74c2fa5c53fd805", "name": "Enable Texts (Parents)", "server": "9e87348d.9c1c48", "version": 7, @@ -10430,7 +10652,7 @@ "domain": "input_boolean", "service": "turn_on", "x": 460, - "y": 1000, + "y": 1160, "wires": [ [ "63dc161e193d33c5" @@ -10441,6 +10663,7 @@ "id": "0eaa398b977e03b5", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "e74c2fa5c53fd805", "name": "Disable Texts (Parents)", "server": "9e87348d.9c1c48", "version": 7, @@ -10463,7 +10686,7 @@ "domain": "input_boolean", "service": "turn_off", "x": 470, - "y": 1060, + "y": 1220, "wires": [ [ "84a56bf51e79fd4d" @@ -10474,6 +10697,7 @@ "id": "663b5401ea953d2d", "type": "server-state-changed", "z": "3abb5ae57afb4761", + "g": "205da12d712d058b", "name": "Nerds Presence", "server": "9e87348d.9c1c48", "version": 6, @@ -10515,7 +10739,7 @@ } ], "x": 180, - "y": 1180, + "y": 1380, "wires": [ [ "a999c33047fc3b61", @@ -10531,6 +10755,7 @@ "id": "802ff36b76e55809", "type": "api-current-state", "z": "3abb5ae57afb4761", + "g": "205da12d712d058b", "name": "Nerds Presence?", "server": "9e87348d.9c1c48", "version": 3, @@ -10558,7 +10783,7 @@ "entity_location": "data", "override_data": "msg", "x": 190, - "y": 1240, + "y": 1440, "wires": [ [ "a999c33047fc3b61" @@ -10572,6 +10797,7 @@ "id": "a999c33047fc3b61", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "205da12d712d058b", "name": "Enable Texts (Nerds)", "server": "9e87348d.9c1c48", "version": 7, @@ -10594,7 +10820,7 @@ "domain": "input_boolean", "service": "turn_on", "x": 460, - "y": 1180, + "y": 1380, "wires": [ [ "bf5f6c5af1c02315" @@ -10605,6 +10831,7 @@ "id": "84a2692b31e7d7d8", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "205da12d712d058b", "name": "Disable Texts (Nerds)", "server": "9e87348d.9c1c48", "version": 7, @@ -10627,7 +10854,7 @@ "domain": "input_boolean", "service": "turn_off", "x": 460, - "y": 1240, + "y": 1440, "wires": [ [ "dafcce5a61b19f8b" @@ -10638,6 +10865,7 @@ "id": "1ac137ebc9f53e3c", "type": "api-current-state", "z": "3abb5ae57afb4761", + "g": "c19f180ec1dc0bcf", "name": "Family Presence?", "server": "9e87348d.9c1c48", "version": 3, @@ -10665,7 +10893,7 @@ "entity_location": "data", "override_data": "msg", "x": 190, - "y": 1420, + "y": 1660, "wires": [ [ "d5a9248680297b56" @@ -10679,6 +10907,7 @@ "id": "788f7cfdfa2fdef9", "type": "server-state-changed", "z": "3abb5ae57afb4761", + "g": "6a0fc544a641af5f", "name": "Basement Door", "server": "9e87348d.9c1c48", "version": 6, @@ -10725,8 +10954,8 @@ "valueType": "str" } ], - "x": 1060, - "y": 160, + "x": 1070, + "y": 220, "wires": [ [ "5f8b61ddc9963e99" @@ -10742,6 +10971,7 @@ "id": "8c7c1cd31a824cd5", "type": "mqtt out", "z": "3abb5ae57afb4761", + "g": "7821289ad49774c9", "name": "MQTT Publish", "topic": "house/presence/people/tony", "qos": "2", @@ -10760,6 +10990,7 @@ "id": "24a89088d5503778", "type": "mqtt out", "z": "3abb5ae57afb4761", + "g": "7821289ad49774c9", "name": "MQTT Publish", "topic": "house/presence/people/tony", "qos": "2", @@ -10778,6 +11009,7 @@ "id": "2851173db6835eda", "type": "mqtt out", "z": "3abb5ae57afb4761", + "g": "bf0e3e8c2f5a5474", "name": "MQTT Publish", "topic": "house/presence/people/tina", "qos": "2", @@ -10789,13 +11021,14 @@ "expiry": "", "broker": "fd29421fc00140a8", "x": 600, - "y": 460, + "y": 540, "wires": [] }, { "id": "82c0fb65066f3b67", "type": "mqtt out", "z": "3abb5ae57afb4761", + "g": "bf0e3e8c2f5a5474", "name": "MQTT Publish", "topic": "house/presence/people/tina", "qos": "2", @@ -10807,13 +11040,14 @@ "expiry": "", "broker": "fd29421fc00140a8", "x": 600, - "y": 640, + "y": 720, "wires": [] }, { "id": "8e081e76e5f19ead", "type": "mqtt out", "z": "3abb5ae57afb4761", + "g": "6c0f29670fcc9493", "name": "MQTT Publish", "topic": "house/presence/people/kallen", "qos": "2", @@ -10825,13 +11059,14 @@ "expiry": "", "broker": "fd29421fc00140a8", "x": 620, - "y": 820, + "y": 940, "wires": [] }, { "id": "156d50efeaeb681c", "type": "mqtt out", "z": "3abb5ae57afb4761", + "g": "6c0f29670fcc9493", "name": "MQTT Publish", "topic": "house/presence/people/kallen", "qos": "2", @@ -10843,13 +11078,14 @@ "expiry": "", "broker": "fd29421fc00140a8", "x": 840, - "y": 880, + "y": 1000, "wires": [] }, { "id": "63dc161e193d33c5", "type": "mqtt out", "z": "3abb5ae57afb4761", + "g": "e74c2fa5c53fd805", "name": "MQTT Publish", "topic": "house/presence/people/groups/parents", "qos": "2", @@ -10861,13 +11097,14 @@ "expiry": "", "broker": "fd29421fc00140a8", "x": 680, - "y": 1000, + "y": 1160, "wires": [] }, { "id": "84a56bf51e79fd4d", "type": "mqtt out", "z": "3abb5ae57afb4761", + "g": "e74c2fa5c53fd805", "name": "MQTT Publish", "topic": "house/presence/people/groups/parents", "qos": "2", @@ -10879,13 +11116,14 @@ "expiry": "", "broker": "fd29421fc00140a8", "x": 680, - "y": 1060, + "y": 1220, "wires": [] }, { "id": "bf5f6c5af1c02315", "type": "mqtt out", "z": "3abb5ae57afb4761", + "g": "205da12d712d058b", "name": "MQTT Publish", "topic": "house/presence/people/groups/nerds", "qos": "2", @@ -10897,13 +11135,14 @@ "expiry": "", "broker": "fd29421fc00140a8", "x": 680, - "y": 1180, + "y": 1380, "wires": [] }, { "id": "dafcce5a61b19f8b", "type": "mqtt out", "z": "3abb5ae57afb4761", + "g": "205da12d712d058b", "name": "MQTT Publish", "topic": "house/presence/people/groups/nerds", "qos": "2", @@ -10915,13 +11154,14 @@ "expiry": "", "broker": "fd29421fc00140a8", "x": 680, - "y": 1240, + "y": 1440, "wires": [] }, { "id": "66b7ec9a7e332cca", "type": "mqtt out", "z": "3abb5ae57afb4761", + "g": "c19f180ec1dc0bcf", "name": "MQTT Publish", "topic": "house/presence/people/groups/family", "qos": "2", @@ -10933,13 +11173,14 @@ "expiry": "", "broker": "fd29421fc00140a8", "x": 680, - "y": 1360, + "y": 1600, "wires": [] }, { "id": "bebba6e7a61461b8", "type": "mqtt out", "z": "3abb5ae57afb4761", + "g": "c19f180ec1dc0bcf", "name": "MQTT Publish", "topic": "house/presence/people/groups/family", "qos": "2", @@ -10951,13 +11192,14 @@ "expiry": "", "broker": "fd29421fc00140a8", "x": 680, - "y": 1420, + "y": 1660, "wires": [] }, { "id": "8a450e797b413418", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "6c0f29670fcc9493", "name": "Notify Parents", "server": "9e87348d.9c1c48", "version": 7, @@ -10978,7 +11220,7 @@ "domain": "script", "service": "text_notify", "x": 400, - "y": 760, + "y": 880, "wires": [ [] ] @@ -10987,6 +11229,7 @@ "id": "7fbab2c7cb7ecc92", "type": "api-current-state", "z": "3abb5ae57afb4761", + "g": "bf0e3e8c2f5a5474", "name": "Give Me Darkness?", "server": "9e87348d.9c1c48", "version": 3, @@ -11014,7 +11257,7 @@ "entity_location": "data", "override_data": "msg", "x": 1005, - "y": 360, + "y": 440, "wires": [ [ "5e72a180d8f0232d" @@ -11027,6 +11270,7 @@ "id": "5e72a180d8f0232d", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "bf0e3e8c2f5a5474", "name": "Living Room Lights", "server": "9e87348d.9c1c48", "version": 7, @@ -11049,7 +11293,7 @@ "domain": "light", "service": "turn_on", "x": 1150, - "y": 360, + "y": 440, "wires": [ [] ] @@ -11058,6 +11302,7 @@ "id": "8584a491587be9a2", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "6c0f29670fcc9493", "name": "Bedroom Lights Off", "server": "9e87348d.9c1c48", "version": 7, @@ -11080,7 +11325,7 @@ "domain": "light", "service": "turn_off", "x": 410, - "y": 880, + "y": 1000, "wires": [ [ "fb1afc4c2078ca29" @@ -11091,6 +11336,7 @@ "id": "9d03fda88310da78", "type": "function", "z": "3abb5ae57afb4761", + "g": "bf0e3e8c2f5a5474", "name": "Processing", "func": "const states = global.get('homeassistant.homeAssistant.states')\nconst workEndZone = states['binary_sensor.tina_work_end_zone'].state\nconst tinawork = msg.tinawork\n\nif (tinawork === 'on' && workEndZone === 'on') {\n node.status({fill:\"green\",shape:\"dot\",text:\"Activated\"})\n return[msg,null]\n} else if (tinawork === 'on' && workEndZone === 'off') {\n node.status({fill:\"yellow\",shape:\"dot\",text:\"Not time to leave yet\"})\n return null\n} else if (tinawork === 'off') {\n node.status({fill:\"yellow\",shape:\"dot\",text:\"No Work Today\"})\n return null\n} else {\n node.status({fill:\"red\",shape:\"ring\",text:\"We fucked up\"})\n node.warn(\"Tina presence flow encountered a situation we did not account for\")\n return[null,msg]\n}", "outputs": 2, @@ -11100,7 +11346,7 @@ "finalize": "", "libs": [], "x": 390, - "y": 400, + "y": 480, "wires": [ [ "9ae7e308f889137d", @@ -11120,6 +11366,7 @@ "id": "8a22032494f84cae", "type": "api-call-service", "z": "3abb5ae57afb4761", + "g": "bf0e3e8c2f5a5474", "name": "Lights Handler", "server": "9e87348d.9c1c48", "version": 7, @@ -11142,7 +11389,7 @@ "domain": "light", "service": "turn_on", "x": 880, - "y": 360, + "y": 440, "wires": [ [ "7fbab2c7cb7ecc92" @@ -11153,30 +11400,33 @@ "id": "547753c8de135e69", "type": "link out", "z": "3abb5ae57afb4761", + "g": "6c0f29670fcc9493", "name": "Kallen Presence - Out", "mode": "link", "links": [ "de09ef54cbab864a" ], "x": 335, - "y": 940, + "y": 1060, "wires": [] }, { "id": "8c910479678a8f5e", "type": "link out", "z": "3abb5ae57afb4761", + "g": "bf0e3e8c2f5a5474", "name": "Tina Presence - Out", "mode": "link", "links": [], "x": 335, - "y": 700, + "y": 780, "wires": [] }, { "id": "f54ba77dfe1e7ba4", "type": "link out", "z": "3abb5ae57afb4761", + "g": "7821289ad49774c9", "name": "Tony Presence - Out", "mode": "link", "links": [], @@ -11188,33 +11438,36 @@ "id": "8811ce1d8dacd3b1", "type": "link out", "z": "3abb5ae57afb4761", + "g": "e74c2fa5c53fd805", "name": "Parents Presence - Out", "mode": "link", "links": [], "x": 375, - "y": 1120, + "y": 1280, "wires": [] }, { "id": "4e97de53400335b9", "type": "link out", "z": "3abb5ae57afb4761", + "g": "205da12d712d058b", "name": "Nerds Presence - Out", "mode": "link", "links": [], "x": 375, - "y": 1300, + "y": 1500, "wires": [] }, { "id": "96ebe81b6e20112e", "type": "link out", "z": "3abb5ae57afb4761", + "g": "c19f180ec1dc0bcf", "name": "Family Presence - Out", "mode": "link", "links": [], "x": 375, - "y": 1480, + "y": 1720, "wires": [] }, {