1
0

Fix AC automations

This commit is contained in:
Przemek Grondek 2023-08-27 21:02:16 +02:00
parent 525298be75
commit db800d1f78
2 changed files with 39 additions and 2 deletions

View File

@ -35,9 +35,46 @@
- service: climate.set_temperature
target:
entity_id: climate.ac
data:
data_template:
temperature: "{{ state_attr('climate.ac', 'temperature') -1 }} "
- id: ac_enable
alias: '[AC] Enable back AC when windows are closed'
trigger:
- platform: state
entity_id: binary_sensor.dining_window_1_open_close
to: 'off'
for:
minutes: 1
- platform: state
entity_id: binary_sensor.dining_window_2_open_close
to: 'off'
for:
minutes: 1
- platform: state
entity_id: binary_sensor.office_window_open_close
to: 'off'
for:
minutes: 1
condition:
- condition: state
entity_id: input_select.home_mode
state: Day
- condition: state
entity_id: input_boolean.vacation_mode
state: 'off'
- condition: state
entity_id: binary_sensor.dining_window_1_open_close
state: 'off'
- condition: state
entity_id: binary_sensor.dining_window_2_open_close
state: 'off'
- condition: state
entity_id: binary_sensor.office_window_open_close
state: 'off'
action:
- service: script.ac_on
- id: ac_turn_off
alias: '[AC] Turn off when windows are open'
mode: single

View File

@ -27,7 +27,7 @@
- service: climate.set_temperature
target:
entity_id: climate.ac
data:
data_template:
temperature: "{{ state_attr('climate.ac', 'temperature') -1 }} "
- id: bedroom_ac_turn_off