2023-06-12 21:56:22 +00:00
|
|
|
- id: bedroom_ac_turn_on
|
2022-08-12 19:07:06 +00:00
|
|
|
alias: '[AC][Bedroom] Turn on AC when it is hot in bedroom'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
|
|
|
entity_id: sensor.ble_temperature_bedroom_sensor_ble
|
|
|
|
above: '26'
|
|
|
|
for:
|
|
|
|
minutes: 15
|
|
|
|
- platform: numeric_state
|
|
|
|
entity_id: sensor.bedroom_air_purifier_temperature
|
|
|
|
above: '26'
|
|
|
|
for:
|
|
|
|
minutes: 15
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Night
|
|
|
|
action:
|
2022-08-29 22:45:41 +00:00
|
|
|
- service: script.ac_on
|
2022-08-12 19:07:06 +00:00
|
|
|
- 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 }} "
|
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: bedroom_ac_turn_off
|
2022-08-12 19:07:06 +00:00
|
|
|
alias: '[AC][Bedroom] Turn off AC when it is cold in bedroom'
|
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
|
|
|
entity_id: sensor.ble_temperature_bedroom_sensor_ble
|
|
|
|
below: '23'
|
|
|
|
for:
|
|
|
|
minutes: 15
|
|
|
|
- platform: numeric_state
|
|
|
|
entity_id: sensor.bedroom_air_purifier_temperature
|
|
|
|
below: '26'
|
|
|
|
for:
|
|
|
|
minutes: 15
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Night
|
|
|
|
action:
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: climate.ac
|
|
|
|
attribute: temperature
|
|
|
|
state: '25'
|
|
|
|
sequence:
|
2022-08-29 22:45:41 +00:00
|
|
|
- service: script.ac_off
|
2022-08-12 19:07:06 +00:00
|
|
|
default:
|
|
|
|
- service: climate.set_temperature
|
|
|
|
target:
|
|
|
|
entity_id: climate.ac
|
|
|
|
data:
|
|
|
|
temperature: "{{ state_attr('climate.ac', 'temperature') + 1 }} "
|