1
0

Add autolowering of temperature on ac

This commit is contained in:
Przemek Grondek 2022-08-05 00:30:08 +02:00
parent 6d7157cdac
commit d33ef15efc

View File

@ -5,7 +5,7 @@
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: '27' above: '26'
for: for:
minutes: 1 minutes: 1
condition: condition:
@ -25,9 +25,22 @@
entity_id: binary_sensor.office_window_open_close entity_id: binary_sensor.office_window_open_close
state: 'off' state: 'off'
action: action:
- choose:
- conditions:
- condition: state
entity_id: climate.ac
state: cool
sequence:
- service: climate.set_temperature
target:
entity_id: climate.ac
data:
temperature: "{{ state_attr('climate.ac', 'temperature') -1 }} "
default:
- service: climate.turn_on - service: climate.turn_on
target: target:
entity_id: climate.ac entity_id: climate.ac
data: {}
- service: climate.set_temperature - service: climate.set_temperature
data: data:
temperature: 25 temperature: 25
@ -35,6 +48,7 @@
target: target:
entity_id: climate.ac entity_id: climate.ac
- 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