Add automation to control climate mode switching
This commit is contained in:
@@ -6621,3 +6621,75 @@
|
||||
entity_id: climate.basement_studio_vtherm
|
||||
data: {}
|
||||
mode: restart
|
||||
- id: '1775731411839'
|
||||
alias: Emma Bedroom Mode Switch
|
||||
description: For switching modes when the temperature goes from one extreme at night
|
||||
to the other during the day
|
||||
triggers:
|
||||
- trigger: time
|
||||
at: input_datetime.emma_bedroom_mode_switch
|
||||
id: switch-time
|
||||
alias: Switch Time
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.emma_bedroom_mode_switch
|
||||
state:
|
||||
- 'on'
|
||||
actions:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.emma_bedroom_mode_switch
|
||||
state:
|
||||
- To Aircon
|
||||
alias: To Aircon
|
||||
sequence:
|
||||
- action: input_boolean.turn_on
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: input_boolean.emma_bedroom_aircon_installed
|
||||
data: {}
|
||||
alias: Enable aircon, disable heater
|
||||
- action: input_number.set_value
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: input_number.emma_bedroom_bedtime_temp
|
||||
data:
|
||||
value: 68
|
||||
alias: Set bedtime temp
|
||||
- action: input_select.select_option
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: input_select.scheduled_climate_mode_emma_bedroom
|
||||
data:
|
||||
option: AC
|
||||
alias: Set scheduled mode to AC
|
||||
- action: switch.turn_on
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: switch.emma_bedroom_climate_watchdog
|
||||
data: {}
|
||||
alias: Turn on climate watchdog
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 5
|
||||
milliseconds: 0
|
||||
- action: button.press
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: button.emma_bedroom_bedtime_mode
|
||||
data: {}
|
||||
alias: Activate bedtime mode to apply new settings
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 1
|
||||
seconds: 0
|
||||
milliseconds: 0
|
||||
- action: input_boolean.turn_off
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: input_boolean.white_noise_emma_bedroom
|
||||
data: {}
|
||||
alias: Turn off white noise
|
||||
mode: restart
|
||||
|
||||
@@ -243,6 +243,10 @@ input_boolean:
|
||||
name: Emma Bedroom Heater Installed
|
||||
icon: mdi:heating-coil
|
||||
|
||||
emma_bedroom_mode_switch:
|
||||
name: Emma Bedroom Mode Switch
|
||||
icon: mdi:swap-horizontal
|
||||
|
||||
input_select:
|
||||
scheduled_climate_mode_master_bedroom_aircon:
|
||||
name: Scheduled Climate Mode - Master Bedroom Aircon
|
||||
@@ -273,6 +277,13 @@ input_select:
|
||||
- White Noise
|
||||
- N/A
|
||||
icon: mdi:home-thermometer
|
||||
emma_bedroom_mode_switch:
|
||||
name: Emma Bedroom Mode Switch
|
||||
options:
|
||||
- To Aircon
|
||||
- To Heater
|
||||
initial: To Aircon
|
||||
icon: mdi:swap-horizontal
|
||||
|
||||
input_number:
|
||||
master_bedroom_daytime_temp:
|
||||
@@ -401,6 +412,13 @@ input_number:
|
||||
step: 1
|
||||
unit_of_measurement: °F
|
||||
icon: mdi:thermometer
|
||||
emma_bedroom_auto_mode_threshold:
|
||||
name: Emma Bedroom Auto Mode Threshold
|
||||
min: 40
|
||||
max: 80
|
||||
step: 1
|
||||
unit_of_measurement: °F
|
||||
icon: mdi:thermometer
|
||||
kallen_fan_threshold:
|
||||
name: Kallen Fan Threshold
|
||||
min: 40
|
||||
@@ -612,6 +630,13 @@ input_number:
|
||||
unit_of_measurement: °F
|
||||
icon: mdi:window-closed
|
||||
|
||||
input_datetime:
|
||||
emma_bedroom_mode_switch:
|
||||
name: Emma Bedroom Mode Switch
|
||||
has_date: false
|
||||
has_time: true
|
||||
icon: mdi:swap-horizontal
|
||||
|
||||
climate:
|
||||
- platform: generic_thermostat
|
||||
unique_id: c2979677-045e-4393-a1cb-e6618978394f
|
||||
|
||||
Reference in New Issue
Block a user