From 230f6f441a097d02a45ddb930f5216332d70f815 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Fri, 16 Sep 2022 15:59:11 -0400 Subject: [PATCH] Moved nursery cooling to proper file, added condition "installed" #39 --- automations.yaml | 16 ---------------- packages/climate.yaml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/automations.yaml b/automations.yaml index 11f4c6c..6220b9f 100644 --- a/automations.yaml +++ b/automations.yaml @@ -330,22 +330,6 @@ data: title: Low Batteries in House message: 'Low battery alert for: {{sensors}}' -- id: '1655415573165' - alias: Nursery Cooling - description: For keeping the baby’s room at a safe temperature - trigger: - - platform: time - at: input_datetime.nursery_cooling - condition: - - condition: numeric_state - entity_id: sensor.tonights_low_temp - above: 57 - action: - - service: fan.turn_on - data: {} - target: - entity_id: fan.nursery_air_conditioner - mode: queued - id: '1655493590791' alias: NWS Announce Weather Alert for Tornado (CLEAR) description: '' diff --git a/packages/climate.yaml b/packages/climate.yaml index 8ad53aa..f891760 100644 --- a/packages/climate.yaml +++ b/packages/climate.yaml @@ -89,3 +89,23 @@ input_number: step: 1 unit_of_measurement: °F icon: mdi:thermometer + +automation: + - id: '1655415573165' + alias: Nursery Cooling + description: For keeping the baby’s room at a safe temperature + trigger: + - platform: time + at: input_datetime.nursery_cooling + condition: + - condition: state + entity_id: input_boolean.nursery_aircon_installed + state: 'on' + - condition: numeric_state + entity_id: sensor.tonights_low_temp + above: 57 + action: + - service: fan.turn_on + target: + entity_id: fan.nursery_air_conditioner + mode: restart \ No newline at end of file