Add AC Automations

This commit is contained in:
2020-05-17 18:42:01 +03:00
parent f19d77b992
commit 608b6364f1
2 changed files with 113 additions and 0 deletions
@@ -196,6 +196,11 @@ cards:
name: Climate name: Climate
tap_action: none tap_action: none
entities: entities:
- automation.climate_ac_turn_on_if_hot
- automation.climate_ac_turn_off_if_window_opened
- automation.climate_ac_turn_off_if_cold
- automation.climate_ac_turn_off_if_working_at_night
- type: divider
- automation.purifier_on_start_sync_and_update_state - automation.purifier_on_start_sync_and_update_state
- automation.purifier_change_speed - automation.purifier_change_speed
- automation.purifier_sync_speed - automation.purifier_sync_speed
@@ -25,3 +25,111 @@ climate:
- "auto" - "auto"
supported_swing_list: supported_swing_list:
- "off" - "off"
automation:
- alias: Climate · AC · Turn on if hot
trigger:
- platform: numeric_state
entity_id: sensor.trisensor_temperature
above: 24
- platform: state
entity_id: binary_sensor.living_room_right_window_on_off_wrapper
from: "on"
to: "off"
condition:
condition: and
conditions:
- condition: numeric_state
entity_id: sensor.trisensor_temperature
above: 24
- condition: state
entity_id: input_boolean.georgi_home
state: "on"
- condition: state
entity_id: binary_sensor.living_room_right_window_on_off_wrapper
state: "off"
- condition: state
entity_id: binary_sensor.bedroom_right_window_on_off_wrapper
state: "off"
- condition: state
entity_id: climate.toshiba_ac
state: "off"
action:
- service: climate.turn_on
entity_id: climate.toshiba_ac
- delay: "00:00:01"
- service: climate.set_hvac_mode
entity_id: climate.toshiba_ac
data:
hvac_mode: "cool"
- service: climate.set_fan_mode
entity_id: climate.toshiba_ac
data:
fan_mode: "auto"
- delay: "00:00:01"
- service: climate.set_temperature
entity_id: climate.toshiba_ac
data:
temperature: 19
- service: logbook.log
data:
name: "💨 Climate Module · "
message: "AC · Switching on · Above 24 degrees, windows closed"
domain: climate
- alias: Climate · AC · Turn off if window opened
trigger:
platform: state
entity_id: binary_sensor.living_room_right_window_on_off_wrapper
from: "off"
to: "on"
condition:
condition: and
conditions:
- condition: template
value_template: "{{ not is_state('climate.toshiba_ac', 'off') }}"
action:
- service: climate.turn_off
entity_id: climate.toshiba_ac
- service: logbook.log
data:
name: "💨 Climate Module · "
message: "AC · Switching off · Window opene"
domain: climate
- alias: Climate · AC · Turn off if cold
trigger:
platform: numeric_state
entity_id: sensor.trisensor_temperature
below: 20
condition:
condition: and
conditions:
- condition: template
value_template: "{{ not is_state('climate.toshiba_ac', 'off') }}"
action:
- service: climate.turn_off
entity_id: climate.toshiba_ac
- service: logbook.log
data:
name: "💨 Climate Module · "
message: "AC · Switching off · Below 20 degrees"
domain: climate
- alias: Climate · AC · Turn off if working at night
trigger:
platform: time
at: "05:00:00"
condition:
condition: and
conditions:
- condition: template
value_template: "{{ not is_state('climate.toshiba_ac', 'off') }}"
action:
- service: climate.turn_off
entity_id: climate.toshiba_ac
- service: logbook.log
data:
name: "💨 Climate Module · "
message: "AC · Switching off · It's 5 AM"
domain: climate