Update ac automations
precool home fix script for turning on AC
This commit is contained in:
parent
fcbe56f443
commit
005a8c2aef
@ -7,7 +7,7 @@
|
||||
entity_id: sensor.office_sensor_temperature
|
||||
above: '26'
|
||||
for:
|
||||
minutes: 1
|
||||
minutes: 5
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_select.home_mode
|
||||
@ -38,6 +38,37 @@
|
||||
data_template:
|
||||
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
|
||||
alias: '[AC] Enable back AC when windows are closed'
|
||||
trigger:
|
||||
@ -73,7 +104,8 @@
|
||||
entity_id: binary_sensor.office_window_open_close
|
||||
state: 'off'
|
||||
action:
|
||||
- service: script.ac_on
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.ac_power_outlet
|
||||
|
||||
- id: ac_turn_off
|
||||
alias: '[AC] Turn off when windows are open'
|
||||
|
@ -26,12 +26,14 @@ ac_on:
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.ac_power_outlet
|
||||
- repeat:
|
||||
sequence:
|
||||
- delay: '0:00:30'
|
||||
until:
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: climate.ac
|
||||
state: unavailable
|
||||
sequence:
|
||||
- delay: '0:00:30'
|
||||
- service: climate.turn_on
|
||||
target:
|
||||
entity_id: climate.ac
|
||||
|
Loading…
Reference in New Issue
Block a user