Initial changes for climate scheduling and operation, prep for #52
This commit is contained in:
@ -85,6 +85,14 @@ input_select:
|
|||||||
name: Scheduled Climate Mode - Nursery Aircon
|
name: Scheduled Climate Mode - Nursery Aircon
|
||||||
options:
|
options:
|
||||||
- AC
|
- AC
|
||||||
|
- White Noise
|
||||||
|
- None
|
||||||
|
icon: mdi:home-thermometer
|
||||||
|
scheduled_climate_mode_kallen_fan:
|
||||||
|
name: Scheduled Climate Mode - Kallen Fan
|
||||||
|
options:
|
||||||
|
- Fan
|
||||||
|
- White Noise
|
||||||
- None
|
- None
|
||||||
icon: mdi:home-thermometer
|
icon: mdi:home-thermometer
|
||||||
|
|
||||||
@ -110,6 +118,48 @@ input_number:
|
|||||||
step: 1
|
step: 1
|
||||||
unit_of_measurement: °F
|
unit_of_measurement: °F
|
||||||
icon: mdi:thermometer
|
icon: mdi:thermometer
|
||||||
|
master_bedroom_aircon_run_threshold:
|
||||||
|
name: Master Bedroom Aircon Run Threshold
|
||||||
|
min: 40
|
||||||
|
max: 70
|
||||||
|
step: 1
|
||||||
|
unit_of_measurement: °F
|
||||||
|
icon: mdi:thermometer
|
||||||
|
master_bedroom_aircon_mode_threshold:
|
||||||
|
name: Master Bedroom Aircon Mode Threshold
|
||||||
|
min: 40
|
||||||
|
max: 70
|
||||||
|
step: 1
|
||||||
|
unit_of_measurement: °F
|
||||||
|
icon: mdi:thermometer
|
||||||
|
master_bedroom_fan_threshold:
|
||||||
|
name: Master Bedroom Fan Threshold
|
||||||
|
min: 40
|
||||||
|
max: 70
|
||||||
|
step: 1
|
||||||
|
unit_of_measurement: °F
|
||||||
|
icon: mdi:thermometer
|
||||||
|
master_bedroom_daytime_threshold:
|
||||||
|
name: Master Bedroom Daytime Threshold
|
||||||
|
min: 60
|
||||||
|
max: 90
|
||||||
|
step: 1
|
||||||
|
unit_of_measurement: °F
|
||||||
|
icon: mdi:thermometer
|
||||||
|
nursery_aircon_threshold:
|
||||||
|
name: Nursery Aircon Threshold
|
||||||
|
min: 40
|
||||||
|
max: 70
|
||||||
|
step: 1
|
||||||
|
unit_of_measurement: °F
|
||||||
|
icon: mdi:thermometer
|
||||||
|
kallen_fan_threshold:
|
||||||
|
name: Kallen Fan Threshold
|
||||||
|
min: 40
|
||||||
|
max: 70
|
||||||
|
step: 1
|
||||||
|
unit_of_measurement: °F
|
||||||
|
icon: mdi:thermometer
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- id: '1655415573165'
|
- id: '1655415573165'
|
||||||
@ -122,9 +172,13 @@ automation:
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.nursery_aircon_installed
|
entity_id: input_boolean.nursery_aircon_installed
|
||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: numeric_state
|
- condition: template
|
||||||
entity_id: sensor.tonights_low_temp
|
value_template: >
|
||||||
above: 55
|
{% if states('sensor.tonights_low_temp') >= states('input_number.nursery_aircon_threshold') %}
|
||||||
|
true
|
||||||
|
{% else %}
|
||||||
|
false
|
||||||
|
{% endif %}
|
||||||
action:
|
action:
|
||||||
- service: fan.turn_on
|
- service: fan.turn_on
|
||||||
target:
|
target:
|
||||||
@ -135,3 +189,57 @@ automation:
|
|||||||
title: "Nursery Climate Schedule"
|
title: "Nursery Climate Schedule"
|
||||||
message: "The air conditioner in the nursery has been activated."
|
message: "The air conditioner in the nursery has been activated."
|
||||||
mode: restart
|
mode: restart
|
||||||
|
|
||||||
|
script:
|
||||||
|
master_bedroom_climate_scheduling:
|
||||||
|
sequence:
|
||||||
|
- service: input_select.select_option
|
||||||
|
target:
|
||||||
|
entity_id: input_select.scheduled_climate_mode_master_bedroom_aircon
|
||||||
|
data:
|
||||||
|
option: >
|
||||||
|
{% if states('sensor.tonights_low_temp') >= states('input_number.master_bedroom_aircon_run_threshold') %}
|
||||||
|
{% if states('sensor.tonights_low_temp') >= states('input_number.master_bedroom_aircon_mode_threshold') %}
|
||||||
|
AC
|
||||||
|
{% else %}
|
||||||
|
Fan
|
||||||
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
None
|
||||||
|
{% endif %}
|
||||||
|
- service: input_select.select_option
|
||||||
|
target:
|
||||||
|
entity_id: input_select.scheduled_climate_mode_master_bedroom_fan
|
||||||
|
data:
|
||||||
|
option: >
|
||||||
|
{% if states('sensor.tonights_low_temp') >= states('input_number.master_bedroom_fan_threshold') %}
|
||||||
|
Fan
|
||||||
|
{% else %}
|
||||||
|
None
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
nursery_climate_scheduling:
|
||||||
|
sequence:
|
||||||
|
- service: input_select.select_option
|
||||||
|
target:
|
||||||
|
entity_id: input_select.scheduled_climate_mode_nursery_aircon
|
||||||
|
data:
|
||||||
|
option: >
|
||||||
|
{% if states('sensor.tonights_low_temp') >= states('input_number.nursery_aircon_threshold') %}
|
||||||
|
AC
|
||||||
|
{% else %}
|
||||||
|
White Noise
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
kallen_fan_scheduling:
|
||||||
|
sequence:
|
||||||
|
- service: input_select.select_option
|
||||||
|
target:
|
||||||
|
entity_id: input_select.scheduled_climate_mode_kallen_fan
|
||||||
|
data:
|
||||||
|
option: >
|
||||||
|
{% if states('sensor.tonights_low_temp') >= states('input_number.kallen_fan_threshold') %}
|
||||||
|
Fan
|
||||||
|
{% else %}
|
||||||
|
White Noise
|
||||||
|
{% endif %}
|
@ -211,6 +211,7 @@ script:
|
|||||||
{% else %}
|
{% else %}
|
||||||
21:40
|
21:40
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
- service: script.kallen_fan_scheduling
|
||||||
|
|
||||||
house_scheduling_morning:
|
house_scheduling_morning:
|
||||||
sequence:
|
sequence:
|
||||||
@ -351,6 +352,7 @@ script:
|
|||||||
{% else %}
|
{% else %}
|
||||||
00:00
|
00:00
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
- service: script.master_bedroom_climate_scheduling
|
||||||
|
|
||||||
nursery_scheduling:
|
nursery_scheduling:
|
||||||
sequence:
|
sequence:
|
||||||
@ -367,3 +369,4 @@ script:
|
|||||||
{% else %}
|
{% else %}
|
||||||
22:30
|
22:30
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
- service: script.nursery_climate_scheduling
|
Reference in New Issue
Block a user