Renaming nursery, partial relation to #53
This commit is contained in:
@ -59,9 +59,9 @@ input_boolean:
|
||||
master_bedroom_aircon_installed:
|
||||
name: Master Bedroom Aircon Installed
|
||||
icon: mdi:tools
|
||||
# Same thing, but for the nursery air conditioner
|
||||
nursery_aircon_installed:
|
||||
name: Nursery Aircon Installed
|
||||
# Same thing, but for Emma's bedroom air conditioner
|
||||
emma_bedroom_aircon_installed:
|
||||
name: Emma Bedroom Aircon Installed
|
||||
icon: mdi:tools
|
||||
# Used internally for automations to know if cooling time has passed or not
|
||||
master_bedroom_cooling_on:
|
||||
@ -85,8 +85,8 @@ input_select:
|
||||
- Fan
|
||||
- N/A
|
||||
icon: mdi:home-thermometer
|
||||
scheduled_climate_mode_nursery_aircon:
|
||||
name: Scheduled Climate Mode - Nursery Aircon
|
||||
scheduled_climate_mode_emma_aircon:
|
||||
name: Scheduled Climate Mode - Emma Aircon
|
||||
options:
|
||||
- AC
|
||||
- White Noise
|
||||
@ -150,8 +150,8 @@ input_number:
|
||||
step: 1
|
||||
unit_of_measurement: °F
|
||||
icon: mdi:thermometer
|
||||
nursery_aircon_threshold:
|
||||
name: Nursery Aircon Threshold
|
||||
emma_aircon_threshold:
|
||||
name: Emma Aircon Threshold
|
||||
min: 40
|
||||
max: 70
|
||||
step: 1
|
||||
@ -173,28 +173,28 @@ input_number:
|
||||
|
||||
automation:
|
||||
- id: '1655415573165'
|
||||
alias: Nursery Cooling
|
||||
alias: Emma Bedroom Cooling
|
||||
description: For keeping the baby’s room at a safe temperature
|
||||
trigger:
|
||||
- platform: time
|
||||
at: input_datetime.nursery_cooling
|
||||
at: input_datetime.emma_bedtime
|
||||
action:
|
||||
- if:
|
||||
- condition: state
|
||||
entity_id: input_select.scheduled_climate_mode_nursery_aircon
|
||||
entity_id: input_select.scheduled_climate_mode_emma_aircon
|
||||
state: 'AC'
|
||||
then:
|
||||
- service: fan.turn_on
|
||||
target:
|
||||
entity_id: fan.nursery_air_conditioner
|
||||
entity_id: fan.emma_air_conditioner
|
||||
- service: script.text_notify
|
||||
data:
|
||||
who: "parents"
|
||||
title: "Nursery Climate Schedule"
|
||||
message: "The air conditioner in the nursery has been activated."
|
||||
title: "Emma Climate Schedule"
|
||||
message: "The air conditioner in Emma's Bedroom has been activated."
|
||||
- if:
|
||||
- condition: state
|
||||
entity_id: input_select.scheduled_climate_mode_nursery_aircon
|
||||
entity_id: input_select.scheduled_climate_mode_emma_aircon
|
||||
state: 'White Noise'
|
||||
then:
|
||||
- service: input_boolean.turn_on
|
||||
@ -203,6 +203,6 @@ automation:
|
||||
- service: script.text_notify
|
||||
data:
|
||||
who: "parents"
|
||||
title: "Nursery Climate Schedule"
|
||||
message: "White noise has been activated in the nursery."
|
||||
title: "Emma Climate Schedule"
|
||||
message: "White noise has been activated in Emma's Bedroom."
|
||||
mode: restart
|
||||
|
@ -94,8 +94,8 @@ input_select:
|
||||
- Wall Nightlight
|
||||
initial: Select
|
||||
icon: mdi:bunk-bed
|
||||
nursery_scenes:
|
||||
name: Nursery Scenes
|
||||
emma_bedroom_scenes:
|
||||
name: Emma Bedroom Scenes
|
||||
options:
|
||||
- Select
|
||||
- Adaptive
|
||||
@ -191,8 +191,8 @@ input_text:
|
||||
name: Upstairs Hallway Selected Scene
|
||||
kallen_bedroom_selected_scene:
|
||||
name: Kallen Bedroom Selected Scene
|
||||
nursery_selected_scene:
|
||||
name: Nursery Selected Scene
|
||||
emma_bedroom_selected_scene:
|
||||
name: Emma Bedroom Selected Scene
|
||||
basement_studio_selected_scene:
|
||||
name: Basement Studio Selected Scene
|
||||
master_bedroom_selected_scene:
|
||||
|
@ -270,7 +270,7 @@ script:
|
||||
- living_room
|
||||
- master_bedroom
|
||||
- mud_room
|
||||
- nursery
|
||||
- emma_bedroom
|
||||
- upstairs_hallway
|
||||
- dining_room
|
||||
- downstairs_bathroom
|
||||
@ -281,7 +281,7 @@ script:
|
||||
- basement_studio
|
||||
- kallen_bedroom
|
||||
- master_bedroom
|
||||
- nursery
|
||||
- emma_bedroom
|
||||
- delay:
|
||||
seconds: 5
|
||||
- service: switch.turn_on
|
||||
@ -297,7 +297,7 @@ script:
|
||||
- switch.adaptive_lighting_upstairs_bathroom
|
||||
- switch.adaptive_lighting_master_bedroom
|
||||
- switch.adaptive_lighting_kallen_bedroom
|
||||
- switch.adaptive_lighting_nursery
|
||||
- switch.adaptive_lighting_emma_bedroom
|
||||
- service: input_text.set_value
|
||||
target:
|
||||
entity_id:
|
||||
@ -310,7 +310,7 @@ script:
|
||||
- input_text.upstairs_bathroom_selected_scene
|
||||
- input_text.master_bedroom_selected_scene
|
||||
- input_text.kallen_bedroom_selected_scene
|
||||
- input_text.nursery_selected_scene
|
||||
- input_text.emma_bedroom_selected_scene
|
||||
data:
|
||||
value: Adaptive
|
||||
- service: input_text.set_value
|
||||
@ -376,7 +376,7 @@ script:
|
||||
area_id:
|
||||
- furnace_room
|
||||
- kallen_bedroom
|
||||
- nursery
|
||||
- emma_bedroom
|
||||
- master_bedroom
|
||||
- upstairs_hallway
|
||||
- basement_studio
|
||||
@ -427,7 +427,7 @@ script:
|
||||
area_id:
|
||||
- furnace_room
|
||||
- kallen_bedroom
|
||||
- nursery
|
||||
- emma_bedroom
|
||||
- master_bedroom
|
||||
- upstairs_hallway
|
||||
- basement_studio
|
||||
|
@ -34,13 +34,13 @@ input_datetime:
|
||||
has_date: false
|
||||
has_time: true
|
||||
icon: mdi:fan-off
|
||||
nursery_cooling:
|
||||
name: Nursery Cooling
|
||||
emma_bedtime:
|
||||
name: Emma Bedtime
|
||||
has_date: false
|
||||
has_time: true
|
||||
icon: mdi:fan-auto
|
||||
nursery_wakeup:
|
||||
name: Nursery Wakeup
|
||||
emma_wakeup:
|
||||
name: Emma Wakeup
|
||||
has_date: false
|
||||
has_time: true
|
||||
icon: mdi:fan-off
|
||||
@ -116,12 +116,12 @@ automation:
|
||||
- service: script.master_bedroom_scheduling_evening
|
||||
|
||||
- id: a69d3d36-09d6-4ef3-a245-c564c7cb577c
|
||||
alias: Nursery Scheduling
|
||||
alias: Emma Bedroom Scheduling
|
||||
trigger:
|
||||
- platform: time
|
||||
at: '06:06:00'
|
||||
action:
|
||||
- service: script.nursery_scheduling
|
||||
- service: script.emma_bedroom_scheduling
|
||||
|
||||
script:
|
||||
kallen_scheduling_morning:
|
||||
@ -419,10 +419,10 @@ script:
|
||||
N/A
|
||||
{% endif %}
|
||||
|
||||
nursery_scheduling:
|
||||
emma_bedroom_scheduling:
|
||||
sequence:
|
||||
- service: input_datetime.set_datetime
|
||||
entity_id: input_datetime.nursery_cooling
|
||||
entity_id: input_datetime.emma_bedtime
|
||||
data_template:
|
||||
time: >
|
||||
{% set high = state_attr('sensor.current_forecast','high_temp') | float %}
|
||||
@ -436,11 +436,11 @@ script:
|
||||
{% endif %}
|
||||
- service: input_select.select_option
|
||||
target:
|
||||
entity_id: input_select.scheduled_climate_mode_nursery_aircon
|
||||
entity_id: input_select.scheduled_climate_mode_emma_aircon
|
||||
data:
|
||||
option: >
|
||||
{% if is_state('input_boolean.nursery_aircon_installed','on') %}
|
||||
{% if states('sensor.tonights_low_temp') >= states('input_number.nursery_aircon_threshold') %}
|
||||
{% if is_state('input_boolean.emma_bedroom_aircon_installed','on') %}
|
||||
{% if states('sensor.tonights_low_temp') >= states('input_number.emma_aircon_threshold') %}
|
||||
AC
|
||||
{% else %}
|
||||
White Noise
|
||||
|
Reference in New Issue
Block a user