From 4a4e80c256edc5716a18e76c1794b1f9f8c5f52e Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 8 May 2023 17:16:44 -0400 Subject: [PATCH] Let Node-RED handle sleep switch climate stuff --- node-red/projects/NerdFlows | 2 +- packages/master_bedroom.yaml | 15 ++++----------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/node-red/projects/NerdFlows b/node-red/projects/NerdFlows index 41f60d8..daa39a8 160000 --- a/node-red/projects/NerdFlows +++ b/node-red/projects/NerdFlows @@ -1 +1 @@ -Subproject commit 41f60d83b3f6a9a20490420a959effb3f0617645 +Subproject commit daa39a815904bce28c623cd574d225f46968568f diff --git a/packages/master_bedroom.yaml b/packages/master_bedroom.yaml index 6bbcfd1..6903cd2 100644 --- a/packages/master_bedroom.yaml +++ b/packages/master_bedroom.yaml @@ -152,19 +152,12 @@ script: alias: 'Master Bedroom Sleep' mode: restart sequence: - - if: - - condition: state - entity_id: climate.master_bedroom_aircon - state: 'cool' - then: - - service: climate.set_preset_mode - target: - entity_id: climate.master_bedroom_aircon - data: - preset_mode: 'none' + - service: button.press + target: + entity_id: button.master_bedroom_night_mode - wait_template: "{{ is_state('light.master_bedroom_lights','off') }}" timeout: - minutes: 30 + minutes: 60 continue_on_timeout: true - service: switch.turn_on target: