diff --git a/flows.json b/flows.json index 5912d87..3c06bf5 100644 --- a/flows.json +++ b/flows.json @@ -675,12 +675,14 @@ "5350d2264880d0ad", "0852e64607df9f3a", "1d03ecbe4448d224", - "da70285e80c3f195" + "da70285e80c3f195", + "a7a59e2f845b849c", + "37f1c11c59a6ce16" ], "x": 94, "y": 339, "w": 1872, - "h": 582 + "h": 622 }, { "id": "39a7ac02f2727f1d", @@ -1305,9 +1307,7 @@ "6f84db50867abc7b" ], "x": 14, - "y": 519, - "w": 612, - "h": 202 + "y": 519 }, { "id": "19b0e082db0643ac", @@ -11671,9 +11671,9 @@ "a1fa2d2d1f55af4b" ], [ - "2e299ac73c696afc", "31b8c8291d19ffc6", - "a1fa2d2d1f55af4b" + "a1fa2d2d1f55af4b", + "a7a59e2f845b849c" ] ], "outputLabels": [ @@ -11813,8 +11813,8 @@ "override_payload": "msg", "entity_location": "data", "override_data": "msg", - "x": 490, - "y": 860, + "x": 690, + "y": 900, "wires": [ [ "d1ae15dff680b3b1" @@ -11850,8 +11850,8 @@ "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 1310, - "y": 820, + "x": 1510, + "y": 860, "wires": [ [] ] @@ -11878,8 +11878,8 @@ "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 700, - "y": 880, + "x": 900, + "y": 920, "wires": [ [ "8859759915625e2f" @@ -11904,8 +11904,8 @@ "drop": false, "allowrate": false, "outputs": 1, - "x": 825, - "y": 880, + "x": 1025, + "y": 920, "wires": [ [ "3941b4a5b3493461" @@ -11935,8 +11935,8 @@ "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 950, - "y": 880, + "x": 1150, + "y": 920, "wires": [ [ "0b122b02cfb10c25" @@ -11965,8 +11965,8 @@ "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 1140, - "y": 880, + "x": 1340, + "y": 920, "wires": [ [] ] @@ -12008,8 +12008,8 @@ "override_payload": "msg", "entity_location": "data", "override_data": "msg", - "x": 710, - "y": 820, + "x": 910, + "y": 860, "wires": [ [ "3a25dfcae623ee00" @@ -12045,8 +12045,8 @@ "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 1340, - "y": 760, + "x": 1540, + "y": 800, "wires": [ [] ] @@ -12119,8 +12119,8 @@ "override_payload": "msg", "entity_location": "data", "override_data": "msg", - "x": 950, - "y": 820, + "x": 1150, + "y": 860, "wires": [ [ "ea02f8930aa2c7aa" @@ -12153,8 +12153,8 @@ "checkall": "true", "repair": false, "outputs": 2, - "x": 1145, - "y": 820, + "x": 1345, + "y": 860, "wires": [ [ "39b90ceaed170ac8" @@ -12607,6 +12607,86 @@ "On" ] }, + { + "id": "a7a59e2f845b849c", + "type": "api-current-state", + "z": "5e238cbbe6d612c9", + "g": "eccca853a916b662", + "name": "Motion On?", + "server": "9e87348d.9c1c48", + "version": 3, + "outputs": 2, + "halt_if": "on", + "halt_if_type": "str", + "halt_if_compare": "is", + "entity_id": "binary_sensor.upstairs_bathroom_motion", + "state_type": "str", + "blockInputOverrides": false, + "outputProperties": [ + { + "property": "motion", + "propertyType": "msg", + "value": "", + "valueType": "entityState" + }, + { + "property": "data", + "propertyType": "msg", + "value": "", + "valueType": "entity" + } + ], + "for": "0", + "forType": "num", + "forUnits": "minutes", + "override_topic": false, + "state_location": "payload", + "override_payload": "msg", + "entity_location": "data", + "override_data": "msg", + "x": 470, + "y": 900, + "wires": [ + [ + "37f1c11c59a6ce16" + ], + [ + "2e299ac73c696afc" + ] + ], + "outputLabels": [ + "On", + "Off" + ] + }, + { + "id": "37f1c11c59a6ce16", + "type": "api-call-service", + "z": "5e238cbbe6d612c9", + "g": "eccca853a916b662", + "name": "Set Adaptive", + "server": "9e87348d.9c1c48", + "version": 5, + "debugenabled": false, + "domain": "input_select", + "service": "select_option", + "areaId": [], + "deviceId": [], + "entityId": [ + "input_select.upstairs_bathroom_scenes" + ], + "data": "{\t \"option\":\"Adaptive\"\t}", + "dataType": "jsonata", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "x": 670, + "y": 840, + "wires": [ + [] + ] + }, { "id": "07049ae77b6751c6", "type": "server-state-changed",