From 7d7cbe8dddfaa65363e9a3376a57630e3a839efb Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Fri, 19 Aug 2022 20:29:03 +0200 Subject: [PATCH] Cooldown home after leaving work --- configuration/automations/ac.yaml | 1 - configuration/automations/work.yaml | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/configuration/automations/ac.yaml b/configuration/automations/ac.yaml index 1bc7b63..5294310 100644 --- a/configuration/automations/ac.yaml +++ b/configuration/automations/ac.yaml @@ -40,7 +40,6 @@ - service: climate.turn_on target: entity_id: climate.ac - data: {} - service: climate.set_temperature data: temperature: 25 diff --git a/configuration/automations/work.yaml b/configuration/automations/work.yaml index 48eebd2..97cc669 100644 --- a/configuration/automations/work.yaml +++ b/configuration/automations/work.yaml @@ -114,3 +114,27 @@ entity_id: light.office_light_up mode: single +- id: work-cool-down-home + alias: '[Work] Cool down home after leaving work' + mode: single + trigger: + - platform: zone + entity_id: person.przemek + zone: zone.work + event: leave + condition: + - condition: or + conditions: + - condition: numeric_state + entity_id: sensor.ble_temperature_computer_cave_sensor + above: "23" + action: + - service: climate.turn_on + target: + entity_id: climate.ac + - service: climate.set_temperature + data: + temperature: 25 + hvac_mode: cool + target: + entity_id: climate.ac