From 86b4feb43ea32e508e9292f9e5ae3a3d69ad19f7 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Tue, 28 Feb 2023 21:46:25 -0500 Subject: [PATCH] Turn on living room lights when wife gets home after kids' bedtime --- flows.json | 79 +++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 72 insertions(+), 7 deletions(-) diff --git a/flows.json b/flows.json index c0ceff4..9cdd43f 100644 --- a/flows.json +++ b/flows.json @@ -689,9 +689,7 @@ "11993e61de14f592" ], "x": 14, - "y": 719, - "w": 1272, - "h": 502 + "y": 719 }, { "id": "e065b1ed4938b477", @@ -784,9 +782,7 @@ "1eb13d819ba7e226" ], "x": 14, - "y": 19, - "w": 2722, - "h": 682 + "y": 19 }, { "id": "5c50443a84910fb7", @@ -10131,7 +10127,9 @@ "x": 1100, "y": 280, "wires": [ - [] + [ + "7fbab2c7cb7ecc92" + ] ] }, { @@ -11091,6 +11089,73 @@ [] ] }, + { + "id": "7fbab2c7cb7ecc92", + "type": "api-current-state", + "z": "3abb5ae57afb4761", + "name": "Give Me Darkness?", + "server": "9e87348d.9c1c48", + "version": 3, + "outputs": 2, + "halt_if": "on", + "halt_if_type": "str", + "halt_if_compare": "is", + "entity_id": "input_boolean.give_me_darkness", + "state_type": "str", + "blockInputOverrides": false, + "outputProperties": [ + { + "property": "givemedarkness", + "propertyType": "msg", + "value": "", + "valueType": "entityState" + } + ], + "for": "0", + "forType": "num", + "forUnits": "minutes", + "override_topic": false, + "state_location": "payload", + "override_payload": "msg", + "entity_location": "data", + "override_data": "msg", + "x": 1225, + "y": 280, + "wires": [ + [ + "5e72a180d8f0232d" + ], + [] + ], + "l": false + }, + { + "id": "5e72a180d8f0232d", + "type": "api-call-service", + "z": "3abb5ae57afb4761", + "name": "Living Room Lights", + "server": "9e87348d.9c1c48", + "version": 5, + "debugenabled": false, + "domain": "light", + "service": "turn_on", + "areaId": [], + "deviceId": [], + "entityId": [ + "light.living_room_lights" + ], + "data": "", + "dataType": "jsonata", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "x": 1370, + "y": 280, + "wires": [ + [] + ] + }, { "id": "d95d9964546768a5", "type": "server-state-changed",