diff --git a/flows.json b/flows.json index b0eeb00..147ed7f 100644 --- a/flows.json +++ b/flows.json @@ -95,6 +95,14 @@ "info": "", "env": [] }, + { + "id": "9824adcf61e30734", + "type": "tab", + "label": "Housewide Modes", + "disabled": false, + "info": "", + "env": [] + }, { "id": "5c4ac37140a54ac9", "type": "tab", @@ -2032,63 +2040,6 @@ "w": 1492, "h": 382 }, - { - "id": "f4057835848d0904", - "type": "group", - "z": "5c4ac37140a54ac9", - "name": "Goodnight", - "style": { - "label": true - }, - "nodes": [ - "ba97906b7b81342c", - "d9e39b8ebb86c941", - "09c7a61f7a4c4d05", - "280e2a7895ca63fb", - "60ce44747cf3e507", - "50e351d1ee6108b3", - "33773b3aaa551b79", - "f30486c8e11db0e4", - "9bd4665845af0545", - "20b3699a56b0e901", - "f3df71ec460b7609", - "775777f1c01e424c", - "334c28e08be1db12", - "de09ef54cbab864a", - "5c919106ebd7c9d4", - "75072695f27adae7" - ], - "x": 14, - "y": 239, - "w": 1092, - "h": 322 - }, - { - "id": "7d1c0a1099be4427", - "type": "group", - "z": "5c4ac37140a54ac9", - "name": "Good Morning", - "style": { - "label": true - }, - "nodes": [ - "105271e0816c6a52", - "2854170262757e84", - "5c9c73b7adb72896", - "c18d27a9438bfa08", - "ef0efdc23805d872", - "bad6373b442c58a1", - "54b8bca62d27e659", - "708843ea29ee6626", - "bb77b36dd4d9cc96", - "2fb85204eb56f86b", - "3778a9f4cb80ce0b" - ], - "x": 14, - "y": 19, - "w": 1072, - "h": 202 - }, { "id": "553ecd620357c03d", "type": "group", @@ -2122,8 +2073,8 @@ "506e7e645cf06383", "716d4f60c2af0f2e" ], - "x": 14, - "y": 1039, + "x": 54, + "y": 479, "w": 1192, "h": 262 }, @@ -2332,8 +2283,8 @@ "b077b050fad45521", "b1f93c10edc4ff47" ], - "x": 14, - "y": 579, + "x": 54, + "y": 19, "w": 972, "h": 442 }, @@ -2868,6 +2819,63 @@ "w": 812, "h": 262 }, + { + "id": "f4057835848d0904", + "type": "group", + "z": "9824adcf61e30734", + "name": "Goodnight", + "style": { + "label": true + }, + "nodes": [ + "ba97906b7b81342c", + "d9e39b8ebb86c941", + "09c7a61f7a4c4d05", + "280e2a7895ca63fb", + "60ce44747cf3e507", + "50e351d1ee6108b3", + "33773b3aaa551b79", + "f30486c8e11db0e4", + "9bd4665845af0545", + "20b3699a56b0e901", + "f3df71ec460b7609", + "775777f1c01e424c", + "334c28e08be1db12", + "de09ef54cbab864a", + "5c919106ebd7c9d4", + "75072695f27adae7" + ], + "x": 54, + "y": 239, + "w": 1092, + "h": 322 + }, + { + "id": "7d1c0a1099be4427", + "type": "group", + "z": "9824adcf61e30734", + "name": "Good Morning", + "style": { + "label": true + }, + "nodes": [ + "105271e0816c6a52", + "2854170262757e84", + "5c9c73b7adb72896", + "c18d27a9438bfa08", + "ef0efdc23805d872", + "bad6373b442c58a1", + "54b8bca62d27e659", + "708843ea29ee6626", + "bb77b36dd4d9cc96", + "2fb85204eb56f86b", + "3778a9f4cb80ce0b" + ], + "x": 54, + "y": 19, + "w": 1072, + "h": 202 + }, { "id": "fba69dfc80829db7", "type": "junction", @@ -27127,106 +27135,10 @@ ] ] }, - { - "id": "105271e0816c6a52", - "type": "ha-button", - "z": "5c4ac37140a54ac9", - "g": "7d1c0a1099be4427", - "name": "Good Morning", - "version": 0, - "debugenabled": false, - "outputs": 1, - "entityConfig": "ad5b1d9f1ea8fea1", - "outputProperties": [ - { - "property": "payload", - "propertyType": "msg", - "value": "", - "valueType": "date" - }, - { - "property": "topic", - "propertyType": "msg", - "value": "mrbedroom-wakeup", - "valueType": "str" - } - ], - "x": 110, - "y": 60, - "wires": [ - [ - "c18d27a9438bfa08", - "ef0efdc23805d872", - "bad6373b442c58a1" - ] - ] - }, - { - "id": "2854170262757e84", - "type": "api-call-service", - "z": "5c4ac37140a54ac9", - "g": "7d1c0a1099be4427", - "name": "Turn off switches", - "server": "9e87348d.9c1c48", - "version": 7, - "debugenabled": false, - "action": "switch.turn_off", - "floorId": [], - "areaId": [], - "deviceId": [], - "entityId": [ - "switch.basement_echo_dot_do_not_disturb_switch", - "switch.living_room_echo_dot_do_not_disturb_switch", - "switch.master_bedroom_echo_dot_do_not_disturb_switch" - ], - "labelId": [], - "data": "", - "dataType": "jsonata", - "mergeContext": "", - "mustacheAltTags": false, - "outputProperties": [], - "queue": "none", - "blockInputOverrides": false, - "domain": "switch", - "service": "turn_off", - "x": 510, - "y": 60, - "wires": [ - [ - "5c9c73b7adb72896", - "3778a9f4cb80ce0b" - ] - ] - }, - { - "id": "6f84caa4bd59a747", - "type": "ha-button", - "z": "5c4ac37140a54ac9", - "name": "Weather Briefing", - "version": 0, - "debugenabled": false, - "outputs": 1, - "entityConfig": "a8da4d03a2922c42", - "outputProperties": [ - { - "property": "payload", - "propertyType": "msg", - "value": "", - "valueType": "date" - } - ], - "x": 1200, - "y": 40, - "wires": [ - [ - "fa09d8a69bcbfbb5" - ] - ] - }, { "id": "ba97906b7b81342c", "type": "ha-button", - "z": "5c4ac37140a54ac9", + "z": "9824adcf61e30734", "g": "f4057835848d0904", "name": "Goodnight", "version": 0, @@ -27259,7 +27171,7 @@ "valueType": "str" } ], - "x": 100, + "x": 140, "y": 340, "wires": [ [ @@ -27270,7 +27182,7 @@ { "id": "d9e39b8ebb86c941", "type": "api-call-service", - "z": "5c4ac37140a54ac9", + "z": "9824adcf61e30734", "g": "f4057835848d0904", "name": "Kallen Desktop - Shutdown", "server": "9e87348d.9c1c48", @@ -27291,12 +27203,855 @@ "blockInputOverrides": false, "domain": "script", "service": "kallen_desktop_shutdown", - "x": 960, + "x": 1000, "y": 400, "wires": [ [] ] }, + { + "id": "09c7a61f7a4c4d05", + "type": "api-current-state", + "z": "9824adcf61e30734", + "g": "f4057835848d0904", + "name": "Check Security", + "server": "9e87348d.9c1c48", + "version": 3, + "outputs": 2, + "halt_if": "disarmed", + "halt_if_type": "str", + "halt_if_compare": "is", + "entity_id": "alarm_control_panel.nerdhome_alarm_panel", + "state_type": "str", + "blockInputOverrides": false, + "outputProperties": [ + { + "property": "payload", + "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": 680, + "y": 340, + "wires": [ + [ + "280e2a7895ca63fb" + ], + [] + ] + }, + { + "id": "280e2a7895ca63fb", + "type": "api-call-service", + "z": "9824adcf61e30734", + "g": "f4057835848d0904", + "name": "Arm Security", + "server": "9e87348d.9c1c48", + "version": 7, + "debugenabled": false, + "action": "alarm_control_panel.alarm_arm_home", + "floorId": [], + "areaId": [], + "deviceId": [], + "entityId": [ + "alarm_control_panel.nerdhome_alarm_panel" + ], + "labelId": [], + "data": "", + "dataType": "jsonata", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "blockInputOverrides": false, + "domain": "alarm_control_panel", + "service": "alarm_arm_home", + "x": 890, + "y": 340, + "wires": [ + [] + ] + }, + { + "id": "60ce44747cf3e507", + "type": "link out", + "z": "9824adcf61e30734", + "g": "f4057835848d0904", + "name": "Goodnight Output", + "mode": "link", + "links": [ + "55e84ccb73ae9b74", + "bc592ba259667f9d" + ], + "x": 615, + "y": 280, + "wires": [] + }, + { + "id": "50e351d1ee6108b3", + "type": "api-current-state", + "z": "9824adcf61e30734", + "g": "f4057835848d0904", + "name": "Kallen Computer Updates?", + "server": "9e87348d.9c1c48", + "version": 3, + "outputs": 2, + "halt_if": "off", + "halt_if_type": "str", + "halt_if_compare": "is", + "entity_id": "input_boolean.kallen_computer_updates", + "state_type": "str", + "blockInputOverrides": false, + "outputProperties": [ + { + "property": "payload", + "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": 720, + "y": 400, + "wires": [ + [ + "d9e39b8ebb86c941" + ], + [] + ], + "outputLabels": [ + "Off", + "On" + ] + }, + { + "id": "33773b3aaa551b79", + "type": "api-call-service", + "z": "9824adcf61e30734", + "g": "f4057835848d0904", + "name": "MB Sleep Switch", + "server": "9e87348d.9c1c48", + "version": 7, + "debugenabled": false, + "action": "input_boolean.turn_on", + "floorId": [], + "areaId": [], + "deviceId": [], + "entityId": [ + "input_boolean.master_bedroom_sleeping" + ], + "labelId": [], + "data": "", + "dataType": "jsonata", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "blockInputOverrides": false, + "domain": "input_boolean", + "service": "turn_on", + "x": 410, + "y": 340, + "wires": [ + [ + "09c7a61f7a4c4d05", + "60ce44747cf3e507", + "50e351d1ee6108b3", + "f30486c8e11db0e4", + "334c28e08be1db12" + ] + ] + }, + { + "id": "f30486c8e11db0e4", + "type": "api-call-service", + "z": "9824adcf61e30734", + "g": "f4057835848d0904", + "name": "Do Not Disturb", + "server": "9e87348d.9c1c48", + "version": 7, + "debugenabled": false, + "action": "switch.turn_on", + "floorId": [], + "areaId": [], + "deviceId": [], + "entityId": [ + "switch.basement_echo_dot_do_not_disturb_switch", + "switch.living_room_echo_dot_do_not_disturb_switch", + "switch.master_bedroom_echo_dot_do_not_disturb_switch" + ], + "labelId": [], + "data": "", + "dataType": "jsonata", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "blockInputOverrides": false, + "domain": "switch", + "service": "turn_on", + "x": 680, + "y": 460, + "wires": [ + [ + "20b3699a56b0e901" + ] + ] + }, + { + "id": "9bd4665845af0545", + "type": "api-call-service", + "z": "9824adcf61e30734", + "g": "f4057835848d0904", + "name": "Goodnight Scripts", + "server": "9e87348d.9c1c48", + "version": 7, + "debugenabled": false, + "action": "", + "floorId": [], + "areaId": [], + "deviceId": [], + "entityId": [], + "labelId": [], + "data": "", + "dataType": "jsonata", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "blockInputOverrides": false, + "domain": "script", + "service": "turn_on", + "x": 890, + "y": 520, + "wires": [ + [] + ] + }, + { + "id": "20b3699a56b0e901", + "type": "api-call-service", + "z": "9824adcf61e30734", + "g": "f4057835848d0904", + "name": "Turn off Quiet/Gaming Modes", + "server": "9e87348d.9c1c48", + "version": 7, + "debugenabled": false, + "action": "input_boolean.turn_off", + "floorId": [], + "areaId": [], + "deviceId": [], + "entityId": [ + "input_boolean.gaming_mode", + "input_boolean.studio_quiet" + ], + "labelId": [], + "data": "", + "dataType": "jsonata", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "blockInputOverrides": false, + "domain": "input_boolean", + "service": "turn_off", + "x": 930, + "y": 460, + "wires": [ + [] + ] + }, + { + "id": "f3df71ec460b7609", + "type": "api-call-service", + "z": "9824adcf61e30734", + "g": "f4057835848d0904", + "name": "Goodnight Switch", + "server": "9e87348d.9c1c48", + "version": 7, + "debugenabled": false, + "action": "input_boolean.turn_on", + "floorId": [], + "areaId": [], + "deviceId": [], + "entityId": [ + "input_boolean.goodnight", + "input_boolean.night_mode" + ], + "labelId": [], + "data": "", + "dataType": "jsonata", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "blockInputOverrides": false, + "domain": "input_boolean", + "service": "turn_on", + "x": 410, + "y": 400, + "wires": [ + [] + ] + }, + { + "id": "775777f1c01e424c", + "type": "api-current-state", + "z": "9824adcf61e30734", + "g": "f4057835848d0904", + "name": "Early Night Mode", + "server": "9e87348d.9c1c48", + "version": 3, + "outputs": 2, + "halt_if": "on", + "halt_if_type": "str", + "halt_if_compare": "is", + "entity_id": "binary_sensor.early_night_mode", + "state_type": "str", + "blockInputOverrides": true, + "outputProperties": [ + { + "property": "earlynight", + "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": 255, + "y": 340, + "wires": [ + [ + "f3df71ec460b7609", + "33773b3aaa551b79" + ], + [ + "33773b3aaa551b79" + ] + ], + "outputLabels": [ + "On", + "Off" + ], + "l": false + }, + { + "id": "334c28e08be1db12", + "type": "function", + "z": "9824adcf61e30734", + "g": "f4057835848d0904", + "name": "Choose Floors", + "func": "const states = global.get('homeassistant.homeAssistant.states')\nconst schoolToday = states['input_boolean.kallen_school_today'].state\nconst kallen = states['person.kallen_stork'].state\nconst morning = states['binary_sensor.morning'].state\n\nlet basement = {\n \"payload\": {\n \"action\": \"script.goodnight_in_basement\"\n }\n}\n\nlet firstFloor = {\n \"payload\": {\n \"action\": \"script.goodnight_on_first_floor\"\n }\n}\n\nlet secondFloor = {\n \"payload\": {\n \"action\": \"script.goodnight_on_second_floor\"\n }\n}\n\nif (schoolToday === 'on' && kallen === 'home' && morning === 'on') {\n node.send([[basement,secondFloor]])\n node.status({fill:'yellow',shape:'dot',text:'Kallen waiting for school bus'})\n} else {\n node.send([[basement,firstFloor,secondFloor]])\n node.status({fill:'green',shape:'dot',text:'All scripts sent'})\n}", + "outputs": 1, + "timeout": 0, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 680, + "y": 520, + "wires": [ + [ + "9bd4665845af0545" + ] + ] + }, + { + "id": "de09ef54cbab864a", + "type": "link in", + "z": "9824adcf61e30734", + "g": "f4057835848d0904", + "name": "Kallen Presence to Goodnight Flow", + "links": [ + "547753c8de135e69" + ], + "x": 145, + "y": 460, + "wires": [ + [ + "5c919106ebd7c9d4" + ] + ] + }, + { + "id": "5c919106ebd7c9d4", + "type": "function", + "z": "9824adcf61e30734", + "g": "f4057835848d0904", + "name": "Filter", + "func": "const states = global.get('homeassistant.homeAssistant.states')\nconst schoolToday = states['input_boolean.kallen_school_today'].state\nconst kallen = states['person.kallen_stork'].state\nconst morning = states['binary_sensor.morning'].state\nconst masterBedroomSleeping = states['input_boolean.master_bedroom_sleeping'].state\nconst payload = msg.payload\n\nlet presence = {}\n\nif (payload === 'home') {\n presence = 'on'\n} else if (payload != 'unavailable' && payload != 'unknown') {\n presence = 'off'\n}\n\nif (schoolToday === 'on' && kallen != 'home' && morning === 'on') {\n if (presence === 'off' && masterBedroomSleeping === 'on') {\n node.send(msg)\n node.status({fill:'green',shape:'dot',text:'Kallen left, first floor lights off'})\n } else {\n return null\n }\n} else {\n return null\n}", + "outputs": 1, + "timeout": 0, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 215, + "y": 460, + "wires": [ + [ + "75072695f27adae7" + ] + ], + "l": false + }, + { + "id": "75072695f27adae7", + "type": "api-call-service", + "z": "9824adcf61e30734", + "g": "f4057835848d0904", + "name": "First Floor Lights Off", + "server": "9e87348d.9c1c48", + "version": 7, + "debugenabled": false, + "action": "script.goodnight_on_first_floor", + "floorId": [], + "areaId": [], + "deviceId": [], + "entityId": [], + "labelId": [], + "data": "", + "dataType": "jsonata", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "blockInputOverrides": false, + "domain": "script", + "service": "goodnight_on_first_floor", + "x": 360, + "y": 460, + "wires": [ + [] + ] + }, + { + "id": "105271e0816c6a52", + "type": "ha-button", + "z": "9824adcf61e30734", + "g": "7d1c0a1099be4427", + "name": "Good Morning", + "version": 0, + "debugenabled": false, + "outputs": 1, + "entityConfig": "ad5b1d9f1ea8fea1", + "outputProperties": [ + { + "property": "payload", + "propertyType": "msg", + "value": "", + "valueType": "date" + }, + { + "property": "topic", + "propertyType": "msg", + "value": "mrbedroom-wakeup", + "valueType": "str" + } + ], + "x": 150, + "y": 60, + "wires": [ + [ + "c18d27a9438bfa08", + "ef0efdc23805d872", + "bad6373b442c58a1" + ] + ] + }, + { + "id": "2854170262757e84", + "type": "api-call-service", + "z": "9824adcf61e30734", + "g": "7d1c0a1099be4427", + "name": "Turn off switches", + "server": "9e87348d.9c1c48", + "version": 7, + "debugenabled": false, + "action": "switch.turn_off", + "floorId": [], + "areaId": [], + "deviceId": [], + "entityId": [ + "switch.basement_echo_dot_do_not_disturb_switch", + "switch.living_room_echo_dot_do_not_disturb_switch", + "switch.master_bedroom_echo_dot_do_not_disturb_switch" + ], + "labelId": [], + "data": "", + "dataType": "jsonata", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "blockInputOverrides": false, + "domain": "switch", + "service": "turn_off", + "x": 550, + "y": 60, + "wires": [ + [ + "5c9c73b7adb72896", + "3778a9f4cb80ce0b" + ] + ] + }, + { + "id": "5c9c73b7adb72896", + "type": "link out", + "z": "9824adcf61e30734", + "g": "7d1c0a1099be4427", + "name": "Good Morning Output", + "mode": "link", + "links": [ + "bc592ba259667f9d" + ], + "x": 715, + "y": 60, + "wires": [] + }, + { + "id": "c18d27a9438bfa08", + "type": "api-call-service", + "z": "9824adcf61e30734", + "g": "7d1c0a1099be4427", + "name": "Morning Scene", + "server": "9e87348d.9c1c48", + "version": 7, + "debugenabled": false, + "action": "script.morning_scene", + "floorId": [], + "areaId": [], + "deviceId": [], + "entityId": [], + "labelId": [], + "data": "", + "dataType": "jsonata", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "blockInputOverrides": false, + "domain": "script", + "service": "morning_scene", + "x": 360, + "y": 60, + "wires": [ + [ + "2854170262757e84" + ] + ] + }, + { + "id": "ef0efdc23805d872", + "type": "api-current-state", + "z": "9824adcf61e30734", + "g": "7d1c0a1099be4427", + "name": "Morning?", + "server": "9e87348d.9c1c48", + "version": 3, + "outputs": 2, + "halt_if": "on", + "halt_if_type": "str", + "halt_if_compare": "is", + "entity_id": "binary_sensor.morning", + "state_type": "str", + "blockInputOverrides": false, + "outputProperties": [ + { + "property": "time", + "propertyType": "msg", + "value": "morning", + "valueType": "str" + } + ], + "for": "0", + "forType": "num", + "forUnits": "minutes", + "override_topic": false, + "state_location": "payload", + "override_payload": "msg", + "entity_location": "data", + "override_data": "msg", + "x": 340, + "y": 120, + "wires": [ + [ + "54b8bca62d27e659" + ], + [] + ], + "outputLabels": [ + "on", + "off" + ] + }, + { + "id": "bad6373b442c58a1", + "type": "api-current-state", + "z": "9824adcf61e30734", + "g": "7d1c0a1099be4427", + "name": "Late Morning?", + "server": "9e87348d.9c1c48", + "version": 3, + "outputs": 2, + "halt_if": "on", + "halt_if_type": "str", + "halt_if_compare": "is", + "entity_id": "binary_sensor.late_morning", + "state_type": "str", + "blockInputOverrides": false, + "outputProperties": [ + { + "property": "time", + "propertyType": "msg", + "value": "late-morning", + "valueType": "str" + } + ], + "for": "0", + "forType": "num", + "forUnits": "minutes", + "override_topic": false, + "state_location": "payload", + "override_payload": "msg", + "entity_location": "data", + "override_data": "msg", + "x": 360, + "y": 180, + "wires": [ + [ + "54b8bca62d27e659" + ], + [] + ], + "outputLabels": [ + "on", + "off" + ] + }, + { + "id": "54b8bca62d27e659", + "type": "api-current-state", + "z": "9824adcf61e30734", + "g": "7d1c0a1099be4427", + "name": "Security State", + "server": "9e87348d.9c1c48", + "version": 3, + "outputs": 2, + "halt_if": "armed_home", + "halt_if_type": "str", + "halt_if_compare": "is", + "entity_id": "alarm_control_panel.nerdhome_alarm_panel", + "state_type": "str", + "blockInputOverrides": false, + "outputProperties": [ + { + "property": "security", + "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": 580, + "y": 180, + "wires": [ + [ + "bb77b36dd4d9cc96" + ], + [] + ], + "outputLabels": [ + "armed_home", + "else" + ] + }, + { + "id": "708843ea29ee6626", + "type": "api-call-service", + "z": "9824adcf61e30734", + "g": "7d1c0a1099be4427", + "name": "Disarm Security", + "server": "9e87348d.9c1c48", + "version": 7, + "debugenabled": false, + "action": "alarm_control_panel.alarm_disarm", + "floorId": [], + "areaId": [], + "deviceId": [], + "entityId": [ + "alarm_control_panel.nerdhome_alarm_panel" + ], + "labelId": [], + "data": "{\t \"silent\": 1\t}", + "dataType": "jsonata", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "blockInputOverrides": false, + "domain": "alarm_control_panel", + "service": "alarm_disarm", + "x": 1020, + "y": 180, + "wires": [ + [] + ] + }, + { + "id": "bb77b36dd4d9cc96", + "type": "api-call-service", + "z": "9824adcf61e30734", + "g": "7d1c0a1099be4427", + "name": "Disable Automations", + "server": "9e87348d.9c1c48", + "version": 7, + "debugenabled": false, + "action": "automation.turn_off", + "floorId": [], + "areaId": [], + "deviceId": [], + "entityId": [ + "automation.scheduled_alarm_disarm", + "automation.scheduled_alarm_rearm" + ], + "labelId": [], + "data": "", + "dataType": "jsonata", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "blockInputOverrides": false, + "domain": "automation", + "service": "turn_off", + "x": 800, + "y": 180, + "wires": [ + [ + "708843ea29ee6626" + ] + ] + }, + { + "id": "2fb85204eb56f86b", + "type": "api-call-service", + "z": "9824adcf61e30734", + "g": "7d1c0a1099be4427", + "name": "TTS Briefing", + "server": "9e87348d.9c1c48", + "version": 7, + "debugenabled": false, + "action": "script.morning_briefing", + "floorId": [], + "areaId": [], + "deviceId": [], + "entityId": [], + "labelId": [], + "data": "{\t \"who\":\"alexa_everywhere\"\t}", + "dataType": "jsonata", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "blockInputOverrides": false, + "domain": "script", + "service": "morning_briefing", + "x": 830, + "y": 120, + "wires": [ + [] + ] + }, + { + "id": "3778a9f4cb80ce0b", + "type": "delay", + "z": "9824adcf61e30734", + "g": "7d1c0a1099be4427", + "name": "", + "pauseType": "delay", + "timeout": "5", + "timeoutUnits": "seconds", + "rate": "1", + "nbRateUnits": "1", + "rateUnits": "second", + "randomFirst": "1", + "randomLast": "5", + "randomUnits": "seconds", + "drop": false, + "allowrate": false, + "outputs": 1, + "x": 715, + "y": 120, + "wires": [ + [ + "2fb85204eb56f86b" + ] + ], + "l": false + }, + { + "id": "6f84caa4bd59a747", + "type": "ha-button", + "z": "5c4ac37140a54ac9", + "name": "Weather Briefing", + "version": 0, + "debugenabled": false, + "outputs": 1, + "entityConfig": "a8da4d03a2922c42", + "outputProperties": [ + { + "property": "payload", + "propertyType": "msg", + "value": "", + "valueType": "date" + } + ], + "x": 1200, + "y": 40, + "wires": [ + [ + "fa09d8a69bcbfbb5" + ] + ] + }, { "id": "a58bc61a625f47af", "type": "ha-button", @@ -27370,84 +28125,6 @@ ] ] }, - { - "id": "09c7a61f7a4c4d05", - "type": "api-current-state", - "z": "5c4ac37140a54ac9", - "g": "f4057835848d0904", - "name": "Check Security", - "server": "9e87348d.9c1c48", - "version": 3, - "outputs": 2, - "halt_if": "disarmed", - "halt_if_type": "str", - "halt_if_compare": "is", - "entity_id": "alarm_control_panel.nerdhome_alarm_panel", - "state_type": "str", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "payload", - "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": 640, - "y": 340, - "wires": [ - [ - "280e2a7895ca63fb" - ], - [] - ] - }, - { - "id": "280e2a7895ca63fb", - "type": "api-call-service", - "z": "5c4ac37140a54ac9", - "g": "f4057835848d0904", - "name": "Arm Security", - "server": "9e87348d.9c1c48", - "version": 7, - "debugenabled": false, - "action": "alarm_control_panel.alarm_arm_home", - "floorId": [], - "areaId": [], - "deviceId": [], - "entityId": [ - "alarm_control_panel.nerdhome_alarm_panel" - ], - "labelId": [], - "data": "", - "dataType": "jsonata", - "mergeContext": "", - "mustacheAltTags": false, - "outputProperties": [], - "queue": "none", - "blockInputOverrides": false, - "domain": "alarm_control_panel", - "service": "alarm_arm_home", - "x": 850, - "y": 340, - "wires": [ - [] - ] - }, { "id": "28a99bbb21540cbc", "type": "debug", @@ -27524,35 +28201,6 @@ ], "l": false }, - { - "id": "5c9c73b7adb72896", - "type": "link out", - "z": "5c4ac37140a54ac9", - "g": "7d1c0a1099be4427", - "name": "Good Morning Output", - "mode": "link", - "links": [ - "bc592ba259667f9d" - ], - "x": 675, - "y": 60, - "wires": [] - }, - { - "id": "60ce44747cf3e507", - "type": "link out", - "z": "5c4ac37140a54ac9", - "g": "f4057835848d0904", - "name": "Goodnight Output", - "mode": "link", - "links": [ - "55e84ccb73ae9b74", - "bc592ba259667f9d" - ], - "x": 575, - "y": 280, - "wires": [] - }, { "id": "fe338e85c7419657", "type": "ha-button", @@ -27640,311 +28288,6 @@ "y": 160, "wires": [] }, - { - "id": "c18d27a9438bfa08", - "type": "api-call-service", - "z": "5c4ac37140a54ac9", - "g": "7d1c0a1099be4427", - "name": "Morning Scene", - "server": "9e87348d.9c1c48", - "version": 7, - "debugenabled": false, - "action": "script.morning_scene", - "floorId": [], - "areaId": [], - "deviceId": [], - "entityId": [], - "labelId": [], - "data": "", - "dataType": "jsonata", - "mergeContext": "", - "mustacheAltTags": false, - "outputProperties": [], - "queue": "none", - "blockInputOverrides": false, - "domain": "script", - "service": "morning_scene", - "x": 320, - "y": 60, - "wires": [ - [ - "2854170262757e84" - ] - ] - }, - { - "id": "ef0efdc23805d872", - "type": "api-current-state", - "z": "5c4ac37140a54ac9", - "g": "7d1c0a1099be4427", - "name": "Morning?", - "server": "9e87348d.9c1c48", - "version": 3, - "outputs": 2, - "halt_if": "on", - "halt_if_type": "str", - "halt_if_compare": "is", - "entity_id": "binary_sensor.morning", - "state_type": "str", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "time", - "propertyType": "msg", - "value": "morning", - "valueType": "str" - } - ], - "for": "0", - "forType": "num", - "forUnits": "minutes", - "override_topic": false, - "state_location": "payload", - "override_payload": "msg", - "entity_location": "data", - "override_data": "msg", - "x": 300, - "y": 120, - "wires": [ - [ - "54b8bca62d27e659" - ], - [] - ], - "outputLabels": [ - "on", - "off" - ] - }, - { - "id": "bad6373b442c58a1", - "type": "api-current-state", - "z": "5c4ac37140a54ac9", - "g": "7d1c0a1099be4427", - "name": "Late Morning?", - "server": "9e87348d.9c1c48", - "version": 3, - "outputs": 2, - "halt_if": "on", - "halt_if_type": "str", - "halt_if_compare": "is", - "entity_id": "binary_sensor.late_morning", - "state_type": "str", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "time", - "propertyType": "msg", - "value": "late-morning", - "valueType": "str" - } - ], - "for": "0", - "forType": "num", - "forUnits": "minutes", - "override_topic": false, - "state_location": "payload", - "override_payload": "msg", - "entity_location": "data", - "override_data": "msg", - "x": 320, - "y": 180, - "wires": [ - [ - "54b8bca62d27e659" - ], - [] - ], - "outputLabels": [ - "on", - "off" - ] - }, - { - "id": "54b8bca62d27e659", - "type": "api-current-state", - "z": "5c4ac37140a54ac9", - "g": "7d1c0a1099be4427", - "name": "Security State", - "server": "9e87348d.9c1c48", - "version": 3, - "outputs": 2, - "halt_if": "armed_home", - "halt_if_type": "str", - "halt_if_compare": "is", - "entity_id": "alarm_control_panel.nerdhome_alarm_panel", - "state_type": "str", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "security", - "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": 540, - "y": 180, - "wires": [ - [ - "bb77b36dd4d9cc96" - ], - [] - ], - "outputLabels": [ - "armed_home", - "else" - ] - }, - { - "id": "708843ea29ee6626", - "type": "api-call-service", - "z": "5c4ac37140a54ac9", - "g": "7d1c0a1099be4427", - "name": "Disarm Security", - "server": "9e87348d.9c1c48", - "version": 7, - "debugenabled": false, - "action": "alarm_control_panel.alarm_disarm", - "floorId": [], - "areaId": [], - "deviceId": [], - "entityId": [ - "alarm_control_panel.nerdhome_alarm_panel" - ], - "labelId": [], - "data": "{\t \"silent\": 1\t}", - "dataType": "jsonata", - "mergeContext": "", - "mustacheAltTags": false, - "outputProperties": [], - "queue": "none", - "blockInputOverrides": false, - "domain": "alarm_control_panel", - "service": "alarm_disarm", - "x": 980, - "y": 180, - "wires": [ - [] - ] - }, - { - "id": "bb77b36dd4d9cc96", - "type": "api-call-service", - "z": "5c4ac37140a54ac9", - "g": "7d1c0a1099be4427", - "name": "Disable Automations", - "server": "9e87348d.9c1c48", - "version": 7, - "debugenabled": false, - "action": "automation.turn_off", - "floorId": [], - "areaId": [], - "deviceId": [], - "entityId": [ - "automation.scheduled_alarm_disarm", - "automation.scheduled_alarm_rearm" - ], - "labelId": [], - "data": "", - "dataType": "jsonata", - "mergeContext": "", - "mustacheAltTags": false, - "outputProperties": [], - "queue": "none", - "blockInputOverrides": false, - "domain": "automation", - "service": "turn_off", - "x": 760, - "y": 180, - "wires": [ - [ - "708843ea29ee6626" - ] - ] - }, - { - "id": "50e351d1ee6108b3", - "type": "api-current-state", - "z": "5c4ac37140a54ac9", - "g": "f4057835848d0904", - "name": "Kallen Computer Updates?", - "server": "9e87348d.9c1c48", - "version": 3, - "outputs": 2, - "halt_if": "off", - "halt_if_type": "str", - "halt_if_compare": "is", - "entity_id": "input_boolean.kallen_computer_updates", - "state_type": "str", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "payload", - "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": 680, - "y": 400, - "wires": [ - [ - "d9e39b8ebb86c941" - ], - [] - ], - "outputLabels": [ - "Off", - "On" - ] - }, - { - "id": "2fb85204eb56f86b", - "type": "api-call-service", - "z": "5c4ac37140a54ac9", - "g": "7d1c0a1099be4427", - "name": "TTS Briefing", - "server": "9e87348d.9c1c48", - "version": 7, - "debugenabled": false, - "action": "script.morning_briefing", - "floorId": [], - "areaId": [], - "deviceId": [], - "entityId": [], - "labelId": [], - "data": "{\t \"who\":\"alexa_everywhere\"\t}", - "dataType": "jsonata", - "mergeContext": "", - "mustacheAltTags": false, - "outputProperties": [], - "queue": "none", - "blockInputOverrides": false, - "domain": "script", - "service": "morning_briefing", - "x": 790, - "y": 120, - "wires": [ - [] - ] - }, { "id": "8c4d01db6f6ef33e", "type": "ha-button", @@ -27963,8 +28306,8 @@ "valueType": "date" } ], - "x": 120, - "y": 1080, + "x": 160, + "y": 520, "wires": [ [ "88c56b0964f9a6db" @@ -27995,8 +28338,8 @@ "blockInputOverrides": false, "domain": "script", "service": "activate_alexa_actionable_notification", - "x": 930, - "y": 1080, + "x": 970, + "y": 520, "wires": [ [ "38e168a79848fa19" @@ -28009,8 +28352,8 @@ "z": "5c4ac37140a54ac9", "g": "553ecd620357c03d", "name": "", - "x": 275, - "y": 1080, + "x": 315, + "y": 520, "wires": [ [ "7d53b4bd4c7ea874" @@ -28032,8 +28375,8 @@ "targetType": "full", "statusVal": "", "statusType": "auto", - "x": 1100, - "y": 1080, + "x": 1140, + "y": 520, "wires": [] }, { @@ -28063,8 +28406,8 @@ } ], "event_type": "", - "x": 130, - "y": 1140, + "x": 170, + "y": 580, "wires": [ [ "5926b0004a47dfd1" @@ -28077,8 +28420,8 @@ "z": "5c4ac37140a54ac9", "g": "553ecd620357c03d", "name": "", - "x": 275, - "y": 1140, + "x": 315, + "y": 580, "wires": [ [ "4726a2605a1f56cc" @@ -28110,8 +28453,8 @@ "blockInputOverrides": false, "domain": "script", "service": "activate_alexa_actionable_notification", - "x": 930, - "y": 1140, + "x": 970, + "y": 580, "wires": [ [ "254ffc8e8bd1d414" @@ -28132,8 +28475,8 @@ "targetType": "full", "statusVal": "", "statusType": "auto", - "x": 1100, - "y": 1140, + "x": 1140, + "y": 580, "wires": [] }, { @@ -28163,8 +28506,8 @@ } ], "event_type": "", - "x": 130, - "y": 1200, + "x": 170, + "y": 640, "wires": [ [ "6167d4da61990bfb" @@ -28185,8 +28528,8 @@ "targetType": "full", "statusVal": "", "statusType": "auto", - "x": 1100, - "y": 1200, + "x": 1140, + "y": 640, "wires": [] }, { @@ -28195,8 +28538,8 @@ "z": "5c4ac37140a54ac9", "g": "553ecd620357c03d", "name": "", - "x": 275, - "y": 1200, + "x": 315, + "y": 640, "wires": [ [ "506e7e645cf06383" @@ -28230,8 +28573,8 @@ "blockInputOverrides": false, "domain": "input_select", "service": "select_option", - "x": 690, - "y": 1140, + "x": 730, + "y": 580, "wires": [ [ "50982205a91e63c5" @@ -28264,8 +28607,8 @@ "blockInputOverrides": false, "domain": "input_number", "service": "set_value", - "x": 690, - "y": 1200, + "x": 730, + "y": 640, "wires": [ [ "dff1ff1e18a1bc74" @@ -28296,8 +28639,8 @@ "blockInputOverrides": false, "domain": "script", "service": "activate_alexa_actionable_notification", - "x": 930, - "y": 1200, + "x": 970, + "y": 640, "wires": [ [ "65589264d77f668d" @@ -28331,8 +28674,8 @@ } ], "event_type": "", - "x": 130, - "y": 1260, + "x": 170, + "y": 700, "wires": [ [ "716d4f60c2af0f2e" @@ -28365,8 +28708,8 @@ "blockInputOverrides": false, "domain": "input_select", "service": "select_option", - "x": 690, - "y": 1260, + "x": 730, + "y": 700, "wires": [ [ "c2212b77414c61f3" @@ -28387,8 +28730,8 @@ "targetType": "full", "statusVal": "", "statusType": "auto", - "x": 1090, - "y": 1260, + "x": 1130, + "y": 700, "wires": [] }, { @@ -28409,8 +28752,8 @@ "drop": false, "allowrate": false, "outputs": 1, - "x": 805, - "y": 1260, + "x": 845, + "y": 700, "wires": [ [ "1383f8e6ebf8ad88" @@ -28444,8 +28787,8 @@ "blockInputOverrides": false, "domain": "button", "service": "press", - "x": 930, - "y": 1260, + "x": 970, + "y": 700, "wires": [ [ "75e1b9f265ecb4e5" @@ -28465,8 +28808,8 @@ "initialize": "", "finalize": "", "libs": [], - "x": 520, - "y": 1080, + "x": 560, + "y": 520, "wires": [ [ "20ede2b52515bc63" @@ -28486,8 +28829,8 @@ "initialize": "", "finalize": "", "libs": [], - "x": 520, - "y": 1140, + "x": 560, + "y": 580, "wires": [ [ "2aa8397f85a8ceed" @@ -28507,8 +28850,8 @@ "initialize": "", "finalize": "", "libs": [], - "x": 520, - "y": 1200, + "x": 560, + "y": 640, "wires": [ [ "9f1c60a822a2b550" @@ -28528,178 +28871,14 @@ "initialize": "", "finalize": "", "libs": [], - "x": 520, - "y": 1260, + "x": 560, + "y": 700, "wires": [ [ "efd47cbc26ed2810" ] ] }, - { - "id": "33773b3aaa551b79", - "type": "api-call-service", - "z": "5c4ac37140a54ac9", - "g": "f4057835848d0904", - "name": "MB Sleep Switch", - "server": "9e87348d.9c1c48", - "version": 7, - "debugenabled": false, - "action": "input_boolean.turn_on", - "floorId": [], - "areaId": [], - "deviceId": [], - "entityId": [ - "input_boolean.master_bedroom_sleeping" - ], - "labelId": [], - "data": "", - "dataType": "jsonata", - "mergeContext": "", - "mustacheAltTags": false, - "outputProperties": [], - "queue": "none", - "blockInputOverrides": false, - "domain": "input_boolean", - "service": "turn_on", - "x": 370, - "y": 340, - "wires": [ - [ - "09c7a61f7a4c4d05", - "60ce44747cf3e507", - "50e351d1ee6108b3", - "f30486c8e11db0e4", - "334c28e08be1db12" - ] - ] - }, - { - "id": "f30486c8e11db0e4", - "type": "api-call-service", - "z": "5c4ac37140a54ac9", - "g": "f4057835848d0904", - "name": "Do Not Disturb", - "server": "9e87348d.9c1c48", - "version": 7, - "debugenabled": false, - "action": "switch.turn_on", - "floorId": [], - "areaId": [], - "deviceId": [], - "entityId": [ - "switch.basement_echo_dot_do_not_disturb_switch", - "switch.living_room_echo_dot_do_not_disturb_switch", - "switch.master_bedroom_echo_dot_do_not_disturb_switch" - ], - "labelId": [], - "data": "", - "dataType": "jsonata", - "mergeContext": "", - "mustacheAltTags": false, - "outputProperties": [], - "queue": "none", - "blockInputOverrides": false, - "domain": "switch", - "service": "turn_on", - "x": 640, - "y": 460, - "wires": [ - [ - "20b3699a56b0e901" - ] - ] - }, - { - "id": "9bd4665845af0545", - "type": "api-call-service", - "z": "5c4ac37140a54ac9", - "g": "f4057835848d0904", - "name": "Goodnight Scripts", - "server": "9e87348d.9c1c48", - "version": 7, - "debugenabled": false, - "action": "", - "floorId": [], - "areaId": [], - "deviceId": [], - "entityId": [], - "labelId": [], - "data": "", - "dataType": "jsonata", - "mergeContext": "", - "mustacheAltTags": false, - "outputProperties": [], - "queue": "none", - "blockInputOverrides": false, - "domain": "script", - "service": "turn_on", - "x": 850, - "y": 520, - "wires": [ - [] - ] - }, - { - "id": "3778a9f4cb80ce0b", - "type": "delay", - "z": "5c4ac37140a54ac9", - "g": "7d1c0a1099be4427", - "name": "", - "pauseType": "delay", - "timeout": "5", - "timeoutUnits": "seconds", - "rate": "1", - "nbRateUnits": "1", - "rateUnits": "second", - "randomFirst": "1", - "randomLast": "5", - "randomUnits": "seconds", - "drop": false, - "allowrate": false, - "outputs": 1, - "x": 675, - "y": 120, - "wires": [ - [ - "2fb85204eb56f86b" - ] - ], - "l": false - }, - { - "id": "20b3699a56b0e901", - "type": "api-call-service", - "z": "5c4ac37140a54ac9", - "g": "f4057835848d0904", - "name": "Turn off Quiet/Gaming Modes", - "server": "9e87348d.9c1c48", - "version": 7, - "debugenabled": false, - "action": "input_boolean.turn_off", - "floorId": [], - "areaId": [], - "deviceId": [], - "entityId": [ - "input_boolean.gaming_mode", - "input_boolean.studio_quiet" - ], - "labelId": [], - "data": "", - "dataType": "jsonata", - "mergeContext": "", - "mustacheAltTags": false, - "outputProperties": [], - "queue": "none", - "blockInputOverrides": false, - "domain": "input_boolean", - "service": "turn_off", - "x": 890, - "y": 460, - "wires": [ - [] - ] - }, { "id": "80761160776018a1", "type": "ha-button", @@ -28724,8 +28903,8 @@ "valueType": "str" } ], - "x": 120, - "y": 620, + "x": 160, + "y": 60, "wires": [ [] ] @@ -28740,8 +28919,8 @@ "links": [ "06b3f795ae9e14e6" ], - "x": 65, - "y": 840, + "x": 105, + "y": 280, "wires": [] }, { @@ -28759,8 +28938,8 @@ "correl": "", "expiry": "", "broker": "fd29421fc00140a8", - "x": 390, - "y": 620, + "x": 430, + "y": 60, "wires": [] }, { @@ -28792,8 +28971,8 @@ "blockInputOverrides": false, "domain": "input_select", "service": "select_option", - "x": 370, - "y": 680, + "x": 410, + "y": 120, "wires": [ [] ] @@ -28824,8 +29003,8 @@ "blockInputOverrides": false, "domain": "input_boolean", "service": "turn_on", - "x": 390, - "y": 740, + "x": 430, + "y": 180, "wires": [ [ "8d992470168b48db" @@ -28859,8 +29038,8 @@ "blockInputOverrides": false, "domain": "input_boolean", "service": "turn_off", - "x": 620, - "y": 740, + "x": 660, + "y": 180, "wires": [ [] ] @@ -28902,8 +29081,8 @@ "override_payload": "msg", "entity_location": "data", "override_data": "msg", - "x": 315, - "y": 800, + "x": 355, + "y": 240, "wires": [ [ "c7302971bce3d542" @@ -28943,8 +29122,8 @@ "blockInputOverrides": false, "domain": "remote", "service": "turn_off", - "x": 460, - "y": 800, + "x": 500, + "y": 240, "wires": [ [] ] @@ -28986,8 +29165,8 @@ "override_payload": "msg", "entity_location": "data", "override_data": "msg", - "x": 315, - "y": 860, + "x": 355, + "y": 300, "wires": [ [ "adb36e61e39c7fa9" @@ -29025,8 +29204,8 @@ "blockInputOverrides": false, "domain": "script", "service": "kallen_desktop_shutdown", - "x": 480, - "y": 860, + "x": 520, + "y": 300, "wires": [ [] ] @@ -29037,8 +29216,8 @@ "z": "5c4ac37140a54ac9", "g": "3e78b849c3a85b84", "name": "", - "x": 315, - "y": 920, + "x": 355, + "y": 360, "wires": [ [ "56a4fbb75463258c" @@ -29070,8 +29249,8 @@ "blockInputOverrides": false, "domain": "script", "service": "activate_alexa_actionable_notification", - "x": 520, - "y": 920, + "x": 560, + "y": 360, "wires": [ [ "881f3f534e5cc523", @@ -29115,8 +29294,8 @@ ], "entityLocation": "data", "entityLocationType": "none", - "x": 840, - "y": 860, + "x": 880, + "y": 300, "wires": [ [], [] @@ -29157,8 +29336,8 @@ ], "entityLocation": "data", "entityLocationType": "none", - "x": 810, - "y": 920, + "x": 850, + "y": 360, "wires": [ [], [] @@ -29199,184 +29378,13 @@ ], "entityLocation": "data", "entityLocationType": "none", - "x": 830, - "y": 980, + "x": 870, + "y": 420, "wires": [ [], [] ] }, - { - "id": "f3df71ec460b7609", - "type": "api-call-service", - "z": "5c4ac37140a54ac9", - "g": "f4057835848d0904", - "name": "Goodnight Switch", - "server": "9e87348d.9c1c48", - "version": 7, - "debugenabled": false, - "action": "input_boolean.turn_on", - "floorId": [], - "areaId": [], - "deviceId": [], - "entityId": [ - "input_boolean.goodnight", - "input_boolean.night_mode" - ], - "labelId": [], - "data": "", - "dataType": "jsonata", - "mergeContext": "", - "mustacheAltTags": false, - "outputProperties": [], - "queue": "none", - "blockInputOverrides": false, - "domain": "input_boolean", - "service": "turn_on", - "x": 370, - "y": 400, - "wires": [ - [] - ] - }, - { - "id": "775777f1c01e424c", - "type": "api-current-state", - "z": "5c4ac37140a54ac9", - "g": "f4057835848d0904", - "name": "Early Night Mode", - "server": "9e87348d.9c1c48", - "version": 3, - "outputs": 2, - "halt_if": "on", - "halt_if_type": "str", - "halt_if_compare": "is", - "entity_id": "binary_sensor.early_night_mode", - "state_type": "str", - "blockInputOverrides": true, - "outputProperties": [ - { - "property": "earlynight", - "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": 215, - "y": 340, - "wires": [ - [ - "f3df71ec460b7609", - "33773b3aaa551b79" - ], - [ - "33773b3aaa551b79" - ] - ], - "outputLabels": [ - "On", - "Off" - ], - "l": false - }, - { - "id": "334c28e08be1db12", - "type": "function", - "z": "5c4ac37140a54ac9", - "g": "f4057835848d0904", - "name": "Choose Floors", - "func": "const states = global.get('homeassistant.homeAssistant.states')\nconst schoolToday = states['input_boolean.kallen_school_today'].state\nconst kallen = states['person.kallen_stork'].state\nconst morning = states['binary_sensor.morning'].state\n\nlet basement = {\n \"payload\": {\n \"action\": \"script.goodnight_in_basement\"\n }\n}\n\nlet firstFloor = {\n \"payload\": {\n \"action\": \"script.goodnight_on_first_floor\"\n }\n}\n\nlet secondFloor = {\n \"payload\": {\n \"action\": \"script.goodnight_on_second_floor\"\n }\n}\n\nif (schoolToday === 'on' && kallen === 'home' && morning === 'on') {\n node.send([[basement,secondFloor]])\n node.status({fill:'yellow',shape:'dot',text:'Kallen waiting for school bus'})\n} else {\n node.send([[basement,firstFloor,secondFloor]])\n node.status({fill:'green',shape:'dot',text:'All scripts sent'})\n}", - "outputs": 1, - "timeout": 0, - "noerr": 0, - "initialize": "", - "finalize": "", - "libs": [], - "x": 640, - "y": 520, - "wires": [ - [ - "9bd4665845af0545" - ] - ] - }, - { - "id": "de09ef54cbab864a", - "type": "link in", - "z": "5c4ac37140a54ac9", - "g": "f4057835848d0904", - "name": "Kallen Presence to Goodnight Flow", - "links": [ - "547753c8de135e69" - ], - "x": 105, - "y": 460, - "wires": [ - [ - "5c919106ebd7c9d4" - ] - ] - }, - { - "id": "5c919106ebd7c9d4", - "type": "function", - "z": "5c4ac37140a54ac9", - "g": "f4057835848d0904", - "name": "Filter", - "func": "const states = global.get('homeassistant.homeAssistant.states')\nconst schoolToday = states['input_boolean.kallen_school_today'].state\nconst kallen = states['person.kallen_stork'].state\nconst morning = states['binary_sensor.morning'].state\nconst masterBedroomSleeping = states['input_boolean.master_bedroom_sleeping'].state\nconst payload = msg.payload\n\nlet presence = {}\n\nif (payload === 'home') {\n presence = 'on'\n} else if (payload != 'unavailable' && payload != 'unknown') {\n presence = 'off'\n}\n\nif (schoolToday === 'on' && kallen != 'home' && morning === 'on') {\n if (presence === 'off' && masterBedroomSleeping === 'on') {\n node.send(msg)\n node.status({fill:'green',shape:'dot',text:'Kallen left, first floor lights off'})\n } else {\n return null\n }\n} else {\n return null\n}", - "outputs": 1, - "timeout": 0, - "noerr": 0, - "initialize": "", - "finalize": "", - "libs": [], - "x": 175, - "y": 460, - "wires": [ - [ - "75072695f27adae7" - ] - ], - "l": false - }, - { - "id": "75072695f27adae7", - "type": "api-call-service", - "z": "5c4ac37140a54ac9", - "g": "f4057835848d0904", - "name": "First Floor Lights Off", - "server": "9e87348d.9c1c48", - "version": 7, - "debugenabled": false, - "action": "script.goodnight_on_first_floor", - "floorId": [], - "areaId": [], - "deviceId": [], - "entityId": [], - "labelId": [], - "data": "", - "dataType": "jsonata", - "mergeContext": "", - "mustacheAltTags": false, - "outputProperties": [], - "queue": "none", - "blockInputOverrides": false, - "domain": "script", - "service": "goodnight_on_first_floor", - "x": 320, - "y": 460, - "wires": [ - [] - ] - }, { "id": "6a37c598ccfec0c7", "type": "google-home",