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