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