From 3e125a763a20c427ab091eb3642cb569cc100533 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Fri, 28 Oct 2022 23:08:05 -0400 Subject: [PATCH] Fix presence detection not turning off porch light --- flows.json | 70 ++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 50 insertions(+), 20 deletions(-) diff --git a/flows.json b/flows.json index 4ac60c5..d30316c 100644 --- a/flows.json +++ b/flows.json @@ -627,9 +627,7 @@ "909d1a99a02620dd" ], "x": 94, - "y": 339, - "w": 1932, - "h": 582 + "y": 339 }, { "id": "39a7ac02f2727f1d", @@ -868,10 +866,8 @@ "7ffbdab6daa40cd9", "d00db0647d1c4034" ], - "x": null, - "y": null, - "w": null, - "h": null + "x": 0, + "y": 0 }, { "id": "46275dd0f9461013", @@ -1031,11 +1027,12 @@ "f56b84619fd19f18", "8f3c66f06ed3f7b2", "d8a2fa45040cce43", - "aeae503fd214ff93" + "aeae503fd214ff93", + "16029ccf061bdd10" ], "x": 34, "y": 539, - "w": 1772, + "w": 1912, "h": 282 }, { @@ -9158,7 +9155,7 @@ "queue": "none", "output_location": "", "output_location_type": "none", - "x": 950, + "x": 1090, "y": 640, "wires": [ [ @@ -9233,7 +9230,7 @@ "override_payload": "msg", "entity_location": "data", "override_data": "msg", - "x": 530, + "x": 670, "y": 640, "wires": [ [ @@ -9279,7 +9276,7 @@ "override_payload": "msg", "entity_location": "data", "override_data": "msg", - "x": 750, + "x": 890, "y": 640, "wires": [ [ @@ -9450,7 +9447,7 @@ "override_payload": "msg", "entity_location": "data", "override_data": "msg", - "x": 1280, + "x": 1420, "y": 580, "wires": [ [ @@ -9481,7 +9478,7 @@ "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 1470, + "x": 1610, "y": 580, "wires": [ [ @@ -9511,7 +9508,7 @@ "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 1680, + "x": 1820, "y": 580, "wires": [ [] @@ -9535,7 +9532,7 @@ "checkall": "true", "repair": false, "outputs": 1, - "x": 1110, + "x": 1250, "y": 580, "wires": [ [ @@ -9587,8 +9584,8 @@ "valueType": "date" } ], - "x": 380, - "y": 580, + "x": 160, + "y": 760, "wires": [ [ "d8a2fa45040cce43" @@ -9623,8 +9620,8 @@ "y": 640, "wires": [ [ - "edef3ad58f6e9bbd", - "d8a2fa45040cce43" + "d8a2fa45040cce43", + "16029ccf061bdd10" ], [ "8f3c66f06ed3f7b2" @@ -9744,6 +9741,39 @@ ] ] }, + { + "id": "16029ccf061bdd10", + "type": "switch", + "z": "eff21041cc941fef", + "g": "eeafd13be593ae69", + "name": "", + "property": "detect", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "presence", + "vt": "str" + }, + { + "t": "else" + } + ], + "checkall": "true", + "repair": false, + "outputs": 2, + "x": 470, + "y": 640, + "wires": [ + [ + "edef3ad58f6e9bbd", + "8f3c66f06ed3f7b2" + ], + [ + "edef3ad58f6e9bbd" + ] + ] + }, { "id": "879ee8903841b8f0", "type": "server-state-changed",