Update AC automation
This commit is contained in:
parent
f2bd686eaf
commit
0fec779f8b
@ -1,17 +1,26 @@
|
|||||||
- id: ac_computer_cave
|
- id: ac-turn-on
|
||||||
alias: '[AC] Computer cave too hot'
|
alias: '[AC] Computer cave too hot'
|
||||||
description: ''
|
description: ''
|
||||||
mode: single
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- platform: numeric_state
|
- platform: numeric_state
|
||||||
entity_id: sensor.ble_temperature_computer_cave_sensor
|
entity_id: sensor.ble_temperature_computer_cave_sensor
|
||||||
above: '26.5'
|
above: '27'
|
||||||
for:
|
for:
|
||||||
minutes: 1
|
minutes: 1
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.home_mode
|
entity_id: input_select.home_mode
|
||||||
state: Day
|
state: Day
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.computer_cave_window_1_open_close
|
||||||
|
state: 'off'
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.computer_cave_window_2_open_close
|
||||||
|
state: 'off'
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.living_room_window_open_close
|
||||||
|
state: 'off'
|
||||||
action:
|
action:
|
||||||
- service: climate.turn_on
|
- service: climate.turn_on
|
||||||
target:
|
target:
|
||||||
@ -22,3 +31,27 @@
|
|||||||
hvac_mode: cool
|
hvac_mode: cool
|
||||||
target:
|
target:
|
||||||
entity_id: climate.ac
|
entity_id: climate.ac
|
||||||
|
|
||||||
|
- id: ac-turn-off
|
||||||
|
alias: '[AC] Turo off when windows are open'
|
||||||
|
mode: single
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.computer_cave_window_1_open_close
|
||||||
|
to: 'on'
|
||||||
|
for:
|
||||||
|
minutes: 1
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.computer_cave_window_2_open_close
|
||||||
|
to: 'on'
|
||||||
|
for:
|
||||||
|
minutes: 1
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.living_room_window_open_close
|
||||||
|
to: 'on'
|
||||||
|
for:
|
||||||
|
minutes: 1
|
||||||
|
action:
|
||||||
|
- service: climate.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: climate.ac
|
||||||
|
Loading…
Reference in New Issue
Block a user