From 83323fe24d7cf29b473037ada8b67fd8a48ab7db Mon Sep 17 00:00:00 2001 From: James Walker Date: Sat, 25 Sep 2021 22:08:41 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20split=20automations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .HA_VERSION | 2 +- automations.yaml | 30 +------------------------ automations/main_floor/light_rack.yaml | 26 +++++++++++++++++++++ automations/office/air_conditioner.yaml | 28 +++++++++++++++++++++++ configuration.yaml | 1 + 5 files changed, 57 insertions(+), 30 deletions(-) create mode 100644 automations/main_floor/light_rack.yaml create mode 100644 automations/office/air_conditioner.yaml diff --git a/.HA_VERSION b/.HA_VERSION index ddfcf48..9a113df 100644 --- a/.HA_VERSION +++ b/.HA_VERSION @@ -1 +1 @@ -2021.7.4 \ No newline at end of file +2021.9.7 \ No newline at end of file diff --git a/automations.yaml b/automations.yaml index eeb7d6a..0637a08 100644 --- a/automations.yaml +++ b/automations.yaml @@ -1,29 +1 @@ ---- -- id: '1625281735631' - alias: Keep office cool - description: '' - trigger: - - platform: numeric_state - entity_id: sensor.home_office_temperature - above: '24' - condition: [] - action: - - type: turn_on - device_id: 0739a7e7036ad9758825b93a524e1f00 - entity_id: switch.air_conditioner - domain: switch - mode: single -- id: '1625503795025' - alias: Turn off office AC - description: '' - trigger: - - platform: numeric_state - entity_id: sensor.home_office_temperature - below: '22' - condition: [] - action: - - type: turn_off - device_id: 0739a7e7036ad9758825b93a524e1f00 - entity_id: switch.air_conditioner - domain: switch - mode: single +[] \ No newline at end of file diff --git a/automations/main_floor/light_rack.yaml b/automations/main_floor/light_rack.yaml new file mode 100644 index 0000000..8ec6583 --- /dev/null +++ b/automations/main_floor/light_rack.yaml @@ -0,0 +1,26 @@ +- id: '1631582483969' + alias: Turn on light rack + description: '' + trigger: + - platform: time + at: 08:00:00 + condition: [] + action: + - type: turn_on + device_id: bb22c5ed5d647c0713ace2e742f92bd1 + entity_id: switch.light_rack + domain: switch + mode: single +- id: '1631583563463' + alias: Turn off light rack + description: '' + trigger: + - platform: time + at: '22:00:00' + condition: [] + action: + - type: turn_off + device_id: bb22c5ed5d647c0713ace2e742f92bd1 + entity_id: switch.light_rack + domain: switch + mode: single diff --git a/automations/office/air_conditioner.yaml b/automations/office/air_conditioner.yaml new file mode 100644 index 0000000..373ffbd --- /dev/null +++ b/automations/office/air_conditioner.yaml @@ -0,0 +1,28 @@ +- id: '1625281735631' + alias: Keep office cool + description: '' + trigger: + - platform: numeric_state + entity_id: sensor.home_office_temperature + above: '24' + condition: [] + action: + - type: turn_on + device_id: 0739a7e7036ad9758825b93a524e1f00 + entity_id: switch.air_conditioner + domain: switch + mode: single +- id: '1625503795025' + alias: Turn off office AC + description: '' + trigger: + - platform: numeric_state + entity_id: sensor.home_office_temperature + below: '22' + condition: [] + action: + - type: turn_off + device_id: 0739a7e7036ad9758825b93a524e1f00 + entity_id: switch.air_conditioner + domain: switch + mode: single \ No newline at end of file diff --git a/configuration.yaml b/configuration.yaml index 9c010cb..b99bdf6 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -10,5 +10,6 @@ homeassistant: group: !include groups.yaml automation: !include automations.yaml +automation manual: !include_dir_list ./automations script: !include scripts.yaml scene: !include scenes.yaml