Fix AC automations
This commit is contained in:
parent
525298be75
commit
db800d1f78
@ -35,9 +35,46 @@
|
|||||||
- service: climate.set_temperature
|
- service: climate.set_temperature
|
||||||
target:
|
target:
|
||||||
entity_id: climate.ac
|
entity_id: climate.ac
|
||||||
data:
|
data_template:
|
||||||
temperature: "{{ state_attr('climate.ac', 'temperature') -1 }} "
|
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
|
- id: ac_turn_off
|
||||||
alias: '[AC] Turn off when windows are open'
|
alias: '[AC] Turn off when windows are open'
|
||||||
mode: single
|
mode: single
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
- service: climate.set_temperature
|
- service: climate.set_temperature
|
||||||
target:
|
target:
|
||||||
entity_id: climate.ac
|
entity_id: climate.ac
|
||||||
data:
|
data_template:
|
||||||
temperature: "{{ state_attr('climate.ac', 'temperature') -1 }} "
|
temperature: "{{ state_attr('climate.ac', 'temperature') -1 }} "
|
||||||
|
|
||||||
- id: bedroom_ac_turn_off
|
- id: bedroom_ac_turn_off
|
||||||
|
Loading…
Reference in New Issue
Block a user