1
0
ansible-home-assistant/configuration/automations/ac.yaml

58 lines
1.4 KiB
YAML
Raw Normal View History

2021-07-05 08:56:14 +00:00
- id: ac-turn-on
2021-06-15 07:32:51 +00:00
alias: '[AC] Computer cave too hot'
description: ''
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.ble_temperature_computer_cave_sensor
2021-07-05 08:56:14 +00:00
above: '27'
2021-06-24 18:37:07 +00:00
for:
minutes: 1
2021-06-15 07:32:51 +00:00
condition:
- condition: state
2021-06-24 18:37:07 +00:00
entity_id: input_select.home_mode
state: Day
2021-07-05 08:56:14 +00:00
- condition: state
entity_id: binary_sensor.computer_cave_window_1_open_close
state: 'off'
- condition: state
entity_id: binary_sensor.computer_cave_window_2_open_close
state: 'off'
- condition: state
entity_id: binary_sensor.living_room_window_open_close
state: 'off'
2021-06-15 07:32:51 +00:00
action:
- service: climate.turn_on
target:
entity_id: climate.ac
- service: climate.set_temperature
data:
2021-08-11 21:51:12 +00:00
temperature: 25
2021-06-15 07:32:51 +00:00
hvac_mode: cool
target:
entity_id: climate.ac
2021-07-05 08:56:14 +00:00
- id: ac-turn-off
2021-08-11 21:51:12 +00:00
alias: '[AC] Turn off when windows are open'
2021-07-05 08:56:14 +00:00
mode: single
trigger:
- platform: state
entity_id: binary_sensor.computer_cave_window_1_open_close
to: 'on'
for:
minutes: 1
- platform: state
entity_id: binary_sensor.computer_cave_window_2_open_close
to: 'on'
for:
minutes: 1
- platform: state
entity_id: binary_sensor.living_room_window_open_close
to: 'on'
for:
minutes: 1
action:
- service: climate.turn_off
target:
entity_id: climate.ac