1
0

Update ac automations

precool home
fix script for turning on AC
This commit is contained in:
Przemek Grondek 2023-09-13 23:32:52 +02:00
parent fcbe56f443
commit 005a8c2aef
2 changed files with 40 additions and 6 deletions

View File

@ -7,7 +7,7 @@
entity_id: sensor.office_sensor_temperature entity_id: sensor.office_sensor_temperature
above: '26' above: '26'
for: for:
minutes: 1 minutes: 5
condition: condition:
- condition: state - condition: state
entity_id: input_select.home_mode entity_id: input_select.home_mode
@ -38,6 +38,37 @@
data_template: data_template:
temperature: "{{ state_attr('climate.ac', 'temperature') -1 }} " temperature: "{{ state_attr('climate.ac', 'temperature') -1 }} "
- id: ac_precool
alias: '[AC] Pre cool office'
trigger:
- platform: state
entity_id: input_select.home_mode
to: 'Day'
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'
- condition: template
value_template: "{{ state_attr('weather.home', 'forecast')[0].temperature > 24 }}"
- service: script.ac_on
- service: climate.set_temperature
target:
entity_id: climate.ac
data:
temperature: 24
- id: ac_enable - id: ac_enable
alias: '[AC] Enable back AC when windows are closed' alias: '[AC] Enable back AC when windows are closed'
trigger: trigger:
@ -73,7 +104,8 @@
entity_id: binary_sensor.office_window_open_close entity_id: binary_sensor.office_window_open_close
state: 'off' state: 'off'
action: action:
- service: script.ac_on - service: switch.turn_on
entity_id: switch.ac_power_outlet
- id: ac_turn_off - id: ac_turn_off
alias: '[AC] Turn off when windows are open' alias: '[AC] Turn off when windows are open'

View File

@ -26,12 +26,14 @@ ac_on:
- service: switch.turn_on - service: switch.turn_on
entity_id: switch.ac_power_outlet entity_id: switch.ac_power_outlet
- repeat: - repeat:
until:
- condition: state
entity_id: climate.ac
state: unavailable
sequence: sequence:
- delay: '0:00:30' - delay: '0:00:30'
until:
- condition: not
conditions:
- condition: state
entity_id: climate.ac
state: unavailable
- service: climate.turn_on - service: climate.turn_on
target: target:
entity_id: climate.ac entity_id: climate.ac