Renaming nursery, partial relation to #53

This commit is contained in:
2022-11-21 20:21:50 -05:00
parent 3fb7348b18
commit 4b09f6343b
9 changed files with 51 additions and 56 deletions

View File

@ -71,7 +71,6 @@
- living_room - living_room
- master_bedroom - master_bedroom
- mud_room - mud_room
- nursery
- upstairs_hallway - upstairs_hallway
- service: switch.turn_off - service: switch.turn_off
target: target:
@ -81,7 +80,6 @@
- switch.adaptive_lighting_living_room - switch.adaptive_lighting_living_room
- switch.adaptive_lighting_master_bedroom - switch.adaptive_lighting_master_bedroom
- switch.adaptive_lighting_mud_room - switch.adaptive_lighting_mud_room
- switch.adaptive_lighting_nursery
- switch.adaptive_lighting_upstairs_hallway - switch.adaptive_lighting_upstairs_hallway
- service: notify.alexa_media - service: notify.alexa_media
data: data:
@ -105,7 +103,6 @@
- light.master_bedroom_front - light.master_bedroom_front
- light.master_bedroom_side - light.master_bedroom_side
- light.mud_room_overhead - light.mud_room_overhead
- light.nursery_light
data: data:
flash: long flash: long
- delay: - delay:
@ -122,7 +119,6 @@
- living_room - living_room
- master_bedroom - master_bedroom
- mud_room - mud_room
- nursery
- upstairs_hallway - upstairs_hallway
- delay: - delay:
hours: 0 hours: 0
@ -137,7 +133,6 @@
- switch.adaptive_lighting_living_room - switch.adaptive_lighting_living_room
- switch.adaptive_lighting_master_bedroom - switch.adaptive_lighting_master_bedroom
- switch.adaptive_lighting_mud_room - switch.adaptive_lighting_mud_room
- switch.adaptive_lighting_nursery
- switch.adaptive_lighting_upstairs_hallway - switch.adaptive_lighting_upstairs_hallway
- delay: - delay:
hours: 0 hours: 0

View File

@ -8,7 +8,7 @@ Presence Simulation:
- light.living_room_lights - light.living_room_lights
- light.master_bedroom_lights - light.master_bedroom_lights
- light.mud_room_overhead - light.mud_room_overhead
- light.nursery_light - light.emma_bedroom_light
- light.dining_room_lamp - light.dining_room_lamp
- light.upstairs_bathroom_lights - light.upstairs_bathroom_lights
- light.downstairs_bathroom_lights - light.downstairs_bathroom_lights

Submodule node-red/projects/NerdFlows updated: 7243bb11f2...f6e7363493

View File

@ -59,9 +59,9 @@ input_boolean:
master_bedroom_aircon_installed: master_bedroom_aircon_installed:
name: Master Bedroom Aircon Installed name: Master Bedroom Aircon Installed
icon: mdi:tools icon: mdi:tools
# Same thing, but for the nursery air conditioner # Same thing, but for Emma's bedroom air conditioner
nursery_aircon_installed: emma_bedroom_aircon_installed:
name: Nursery Aircon Installed name: Emma Bedroom Aircon Installed
icon: mdi:tools icon: mdi:tools
# Used internally for automations to know if cooling time has passed or not # Used internally for automations to know if cooling time has passed or not
master_bedroom_cooling_on: master_bedroom_cooling_on:
@ -85,8 +85,8 @@ input_select:
- Fan - Fan
- N/A - N/A
icon: mdi:home-thermometer icon: mdi:home-thermometer
scheduled_climate_mode_nursery_aircon: scheduled_climate_mode_emma_aircon:
name: Scheduled Climate Mode - Nursery Aircon name: Scheduled Climate Mode - Emma Aircon
options: options:
- AC - AC
- White Noise - White Noise
@ -150,8 +150,8 @@ input_number:
step: 1 step: 1
unit_of_measurement: °F unit_of_measurement: °F
icon: mdi:thermometer icon: mdi:thermometer
nursery_aircon_threshold: emma_aircon_threshold:
name: Nursery Aircon Threshold name: Emma Aircon Threshold
min: 40 min: 40
max: 70 max: 70
step: 1 step: 1
@ -173,28 +173,28 @@ input_number:
automation: automation:
- id: '1655415573165' - id: '1655415573165'
alias: Nursery Cooling alias: Emma Bedroom Cooling
description: For keeping the babys room at a safe temperature description: For keeping the babys room at a safe temperature
trigger: trigger:
- platform: time - platform: time
at: input_datetime.nursery_cooling at: input_datetime.emma_bedtime
action: action:
- if: - if:
- condition: state - condition: state
entity_id: input_select.scheduled_climate_mode_nursery_aircon entity_id: input_select.scheduled_climate_mode_emma_aircon
state: 'AC' state: 'AC'
then: then:
- service: fan.turn_on - service: fan.turn_on
target: target:
entity_id: fan.nursery_air_conditioner entity_id: fan.emma_air_conditioner
- service: script.text_notify - service: script.text_notify
data: data:
who: "parents" who: "parents"
title: "Nursery Climate Schedule" title: "Emma Climate Schedule"
message: "The air conditioner in the nursery has been activated." message: "The air conditioner in Emma's Bedroom has been activated."
- if: - if:
- condition: state - condition: state
entity_id: input_select.scheduled_climate_mode_nursery_aircon entity_id: input_select.scheduled_climate_mode_emma_aircon
state: 'White Noise' state: 'White Noise'
then: then:
- service: input_boolean.turn_on - service: input_boolean.turn_on
@ -203,6 +203,6 @@ automation:
- service: script.text_notify - service: script.text_notify
data: data:
who: "parents" who: "parents"
title: "Nursery Climate Schedule" title: "Emma Climate Schedule"
message: "White noise has been activated in the nursery." message: "White noise has been activated in Emma's Bedroom."
mode: restart mode: restart

View File

@ -94,8 +94,8 @@ input_select:
- Wall Nightlight - Wall Nightlight
initial: Select initial: Select
icon: mdi:bunk-bed icon: mdi:bunk-bed
nursery_scenes: emma_bedroom_scenes:
name: Nursery Scenes name: Emma Bedroom Scenes
options: options:
- Select - Select
- Adaptive - Adaptive
@ -191,8 +191,8 @@ input_text:
name: Upstairs Hallway Selected Scene name: Upstairs Hallway Selected Scene
kallen_bedroom_selected_scene: kallen_bedroom_selected_scene:
name: Kallen Bedroom Selected Scene name: Kallen Bedroom Selected Scene
nursery_selected_scene: emma_bedroom_selected_scene:
name: Nursery Selected Scene name: Emma Bedroom Selected Scene
basement_studio_selected_scene: basement_studio_selected_scene:
name: Basement Studio Selected Scene name: Basement Studio Selected Scene
master_bedroom_selected_scene: master_bedroom_selected_scene:

View File

@ -270,7 +270,7 @@ script:
- living_room - living_room
- master_bedroom - master_bedroom
- mud_room - mud_room
- nursery - emma_bedroom
- upstairs_hallway - upstairs_hallway
- dining_room - dining_room
- downstairs_bathroom - downstairs_bathroom
@ -281,7 +281,7 @@ script:
- basement_studio - basement_studio
- kallen_bedroom - kallen_bedroom
- master_bedroom - master_bedroom
- nursery - emma_bedroom
- delay: - delay:
seconds: 5 seconds: 5
- service: switch.turn_on - service: switch.turn_on
@ -297,7 +297,7 @@ script:
- switch.adaptive_lighting_upstairs_bathroom - switch.adaptive_lighting_upstairs_bathroom
- switch.adaptive_lighting_master_bedroom - switch.adaptive_lighting_master_bedroom
- switch.adaptive_lighting_kallen_bedroom - switch.adaptive_lighting_kallen_bedroom
- switch.adaptive_lighting_nursery - switch.adaptive_lighting_emma_bedroom
- service: input_text.set_value - service: input_text.set_value
target: target:
entity_id: entity_id:
@ -310,7 +310,7 @@ script:
- input_text.upstairs_bathroom_selected_scene - input_text.upstairs_bathroom_selected_scene
- input_text.master_bedroom_selected_scene - input_text.master_bedroom_selected_scene
- input_text.kallen_bedroom_selected_scene - input_text.kallen_bedroom_selected_scene
- input_text.nursery_selected_scene - input_text.emma_bedroom_selected_scene
data: data:
value: Adaptive value: Adaptive
- service: input_text.set_value - service: input_text.set_value
@ -376,7 +376,7 @@ script:
area_id: area_id:
- furnace_room - furnace_room
- kallen_bedroom - kallen_bedroom
- nursery - emma_bedroom
- master_bedroom - master_bedroom
- upstairs_hallway - upstairs_hallway
- basement_studio - basement_studio
@ -427,7 +427,7 @@ script:
area_id: area_id:
- furnace_room - furnace_room
- kallen_bedroom - kallen_bedroom
- nursery - emma_bedroom
- master_bedroom - master_bedroom
- upstairs_hallway - upstairs_hallway
- basement_studio - basement_studio

View File

@ -34,13 +34,13 @@ input_datetime:
has_date: false has_date: false
has_time: true has_time: true
icon: mdi:fan-off icon: mdi:fan-off
nursery_cooling: emma_bedtime:
name: Nursery Cooling name: Emma Bedtime
has_date: false has_date: false
has_time: true has_time: true
icon: mdi:fan-auto icon: mdi:fan-auto
nursery_wakeup: emma_wakeup:
name: Nursery Wakeup name: Emma Wakeup
has_date: false has_date: false
has_time: true has_time: true
icon: mdi:fan-off icon: mdi:fan-off
@ -116,12 +116,12 @@ automation:
- service: script.master_bedroom_scheduling_evening - service: script.master_bedroom_scheduling_evening
- id: a69d3d36-09d6-4ef3-a245-c564c7cb577c - id: a69d3d36-09d6-4ef3-a245-c564c7cb577c
alias: Nursery Scheduling alias: Emma Bedroom Scheduling
trigger: trigger:
- platform: time - platform: time
at: '06:06:00' at: '06:06:00'
action: action:
- service: script.nursery_scheduling - service: script.emma_bedroom_scheduling
script: script:
kallen_scheduling_morning: kallen_scheduling_morning:
@ -419,10 +419,10 @@ script:
N/A N/A
{% endif %} {% endif %}
nursery_scheduling: emma_bedroom_scheduling:
sequence: sequence:
- service: input_datetime.set_datetime - service: input_datetime.set_datetime
entity_id: input_datetime.nursery_cooling entity_id: input_datetime.emma_bedtime
data_template: data_template:
time: > time: >
{% set high = state_attr('sensor.current_forecast','high_temp') | float %} {% set high = state_attr('sensor.current_forecast','high_temp') | float %}
@ -436,11 +436,11 @@ script:
{% endif %} {% endif %}
- service: input_select.select_option - service: input_select.select_option
target: target:
entity_id: input_select.scheduled_climate_mode_nursery_aircon entity_id: input_select.scheduled_climate_mode_emma_aircon
data: data:
option: > option: >
{% if is_state('input_boolean.nursery_aircon_installed','on') %} {% if is_state('input_boolean.emma_bedroom_aircon_installed','on') %}
{% if states('sensor.tonights_low_temp') >= states('input_number.nursery_aircon_threshold') %} {% if states('sensor.tonights_low_temp') >= states('input_number.emma_aircon_threshold') %}
AC AC
{% else %} {% else %}
White Noise White Noise

View File

@ -46,7 +46,7 @@ give_me_darkness:
- kallen_bedroom - kallen_bedroom
- master_bedroom - master_bedroom
- living_room - living_room
- nursery - emma_bedroom
- downstairs_bathroom - downstairs_bathroom
data: {} data: {}
- condition: template - condition: template
@ -172,7 +172,7 @@ max_brightness:
- switch.adaptive_lighting_living_room - switch.adaptive_lighting_living_room
- switch.adaptive_lighting_master_bedroom - switch.adaptive_lighting_master_bedroom
- switch.adaptive_lighting_mud_room - switch.adaptive_lighting_mud_room
- switch.adaptive_lighting_nursery - switch.adaptive_lighting_emma_bedroom
- switch.adaptive_lighting_upstairs_hallway - switch.adaptive_lighting_upstairs_hallway
- switch.adaptive_lighting_dining_room - switch.adaptive_lighting_dining_room
- switch.adaptive_lighting_upstairs_bathroom - switch.adaptive_lighting_upstairs_bathroom
@ -366,7 +366,7 @@ max_brightness_cleanup:
- switch.adaptive_lighting_living_room - switch.adaptive_lighting_living_room
- switch.adaptive_lighting_master_bedroom - switch.adaptive_lighting_master_bedroom
- switch.adaptive_lighting_mud_room - switch.adaptive_lighting_mud_room
- switch.adaptive_lighting_nursery - switch.adaptive_lighting_emma_bedroom
- switch.adaptive_lighting_upstairs_hallway - switch.adaptive_lighting_upstairs_hallway
- switch.adaptive_lighting_dining_room - switch.adaptive_lighting_dining_room
- switch.adaptive_lighting_upstairs_bathroom - switch.adaptive_lighting_upstairs_bathroom
@ -383,7 +383,7 @@ max_brightness_cleanup:
- input_text.living_room_selected_scene - input_text.living_room_selected_scene
- input_text.master_bedroom_selected_scene - input_text.master_bedroom_selected_scene
- input_text.mud_room_selected_scene - input_text.mud_room_selected_scene
- input_text.nursery_selected_scene - input_text.emma_bedroom_selected_scene
- input_text.tina_lamp_selected_scene - input_text.tina_lamp_selected_scene
- input_text.upstairs_hallway_selected_scene - input_text.upstairs_hallway_selected_scene
mode: single mode: single
@ -509,7 +509,7 @@ freeze_cleanup:
- switch.adaptive_lighting_master_bedroom - switch.adaptive_lighting_master_bedroom
- switch.adaptive_lighting_mud_room - switch.adaptive_lighting_mud_room
- switch.adaptive_lighting_tina_lamp - switch.adaptive_lighting_tina_lamp
- switch.adaptive_lighting_nursery - switch.adaptive_lighting_emma_bedroom
- switch.adaptive_lighting_upstairs_bathroom - switch.adaptive_lighting_upstairs_bathroom
- switch.adaptive_lighting_upstairs_hallway - switch.adaptive_lighting_upstairs_hallway
- service: input_text.set_value - service: input_text.set_value
@ -524,7 +524,7 @@ freeze_cleanup:
- input_text.living_room_selected_scene - input_text.living_room_selected_scene
- input_text.master_bedroom_selected_scene - input_text.master_bedroom_selected_scene
- input_text.mud_room_selected_scene - input_text.mud_room_selected_scene
- input_text.nursery_selected_scene - input_text.emma_bedroom_selected_scene
- input_text.tina_lamp_selected_scene - input_text.tina_lamp_selected_scene
- input_text.upstairs_bathroom_selected_scene - input_text.upstairs_bathroom_selected_scene
- input_text.upstairs_hallway_selected_scene - input_text.upstairs_hallway_selected_scene

View File

@ -306,15 +306,15 @@
{% else %} {% else %}
"Colins room will be left alone, as he is spending the night elsewhere tonight. " "Colins room will be left alone, as he is spending the night elsewhere tonight. "
{% endif %} {% endif %}
{% if is_state('fan.nursery_air_conditioner','on') %} {% if is_state('fan.emma_air_conditioner','on') %}
"Emma's air conditioner is already running. " "Emma's air conditioner is already running. "
{% elif is_state('input_boolean.white_noise_emma_bedroom','on') %} {% elif is_state('input_boolean.white_noise_emma_bedroom','on') %}
"Emma's white noise generator is already running. " "Emma's white noise generator is already running. "
{% elif is_state('input_select.scheduled_climate_mode_nursery_aircon','AC') %} {% elif is_state('input_select.scheduled_climate_mode_emma_aircon','AC') %}
"Emma's air conditioner will be activated at {{ (state_attr('input_datetime.nursery_cooling','timestamp') | int | timestamp_custom('%I:%M %p', False)) }}. " "Emma's air conditioner will be activated at {{ (state_attr('input_datetime.emma_bedtime','timestamp') | int | timestamp_custom('%I:%M %p', False)) }}. "
{% elif is_state('input_select.scheduled_climate_mode_nursery_aircon','White Noise') %} {% elif is_state('input_select.scheduled_climate_mode_emma_aircon','White Noise') %}
"Emma's white noise generator will activate at {{ (state_attr('input_datetime.nursery_cooling','timestamp') | int | timestamp_custom('%I:%M %p', False)) }}. " "Emma's white noise generator will activate at {{ (state_attr('input_datetime.emma_bedroom','timestamp') | int | timestamp_custom('%I:%M %p', False)) }}. "
{% elif is_state('input_select.scheduled_climate_mode_nursery_aircon','N/A') %} {% elif is_state('input_select.scheduled_climate_mode_emma_aircon','N/A') %}
"Emma's room will have no devices activated tonight. " "Emma's room will have no devices activated tonight. "
{% endif %} {% endif %}
</p> </p>