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
|
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'
|
||||||
|
@ -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:
|
||||||
|
sequence:
|
||||||
|
- delay: '0:00:30'
|
||||||
until:
|
until:
|
||||||
|
- condition: not
|
||||||
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: climate.ac
|
entity_id: climate.ac
|
||||||
state: unavailable
|
state: unavailable
|
||||||
sequence:
|
|
||||||
- delay: '0:00:30'
|
|
||||||
- service: climate.turn_on
|
- service: climate.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: climate.ac
|
entity_id: climate.ac
|
||||||
|
Loading…
Reference in New Issue
Block a user