nursery to girls room... finally

This commit is contained in:
CeeWeasel
2025-12-03 23:21:30 -05:00
parent 921c3df342
commit 78cd67a560
129 changed files with 2715 additions and 2677 deletions
@@ -1,5 +1,5 @@
alias: Nursery Lights to On
id: automation_nursery_lights_to_on
alias: Girls Room Lights to On
id: automation_girls_room_lights_to_on
mode: single
# Hide warnings when triggered while in delay.
max_exceeded: silent
@@ -8,20 +8,20 @@ trigger:
- platform: state
id: mode_change
entity_id:
- input_select.nursery_mode
- input_select.girls_room_mode
- input_select.automatic_light_profile
- platform: state
id: light_level
entity_id: binary_sensor.nursery_naturally_lit
entity_id: binary_sensor.girls_room_naturally_lit
from: "on"
to: "off"
- platform: state
id: occupied
entity_id:
- input_boolean.nursery_occupied
- binary_sensor.nursery_occupied
- input_boolean.girls_room_occupied
- binary_sensor.girls_room_occupied
to: "on"
condition:
@@ -30,9 +30,9 @@ condition:
entity_id: input_boolean.home_occupied
state: "on"
- alias: "Nursery light cycle not on"
- alias: "Girls Room light cycle not on"
condition: state
entity_id: input_boolean.nursery_light_cycle
entity_id: input_boolean.girls_room_light_cycle
state: "off"
- alias: "Check if light should turn on"
@@ -48,7 +48,7 @@ condition:
conditions:
- alias: "Light level below trigger amount"
condition: state
entity_id: binary_sensor.nursery_naturally_lit
entity_id: binary_sensor.girls_room_naturally_lit
state: "off"
- alias: "Motion or occupancy were detected"
@@ -66,13 +66,13 @@ condition:
- condition: trigger
id: "mode_change"
- condition: state
entity_id: input_boolean.nursery_occupied
entity_id: input_boolean.girls_room_occupied
state: "on"
variables:
switch_name: light.nursery_dimmer_light
light_name: nursery_hue
mode_name: input_select.nursery_mode
switch_name: girls_room_fan_light_switch_light
light_name: girls_room_hue
mode_name: input_select.girls_room_mode
automatic_profile: input_select.automatic_light_profile
action:
- alias: "Make sure Z-Wave switch is turned on"
@@ -84,22 +84,22 @@ action:
conditions:
- alias: "Room set to manual"
condition: state
entity_id: input_select.nursery_mode
entity_id: input_select.girls_room_mode
state: Manual
sequence:
- action: light.turn_on
target:
entity_id: light.nursery_hue
entity_id: light.girls_room_hue
- alias: "If the room is set to auto, the lights are on, and the automatic profile is set to Nightlight, change to the Automatic Light Profile scene with a short transition"
conditions:
- alias: "Room set to auto"
condition: state
entity_id: input_select.nursery_mode
entity_id: input_select.girls_room_mode
state: Auto
- alias: "Lights are on"
condition: state
entity_id: light.nursery_hue
entity_id: light.girls_room_hue
state: "on"
- alias: "Automatic light profile set to Nightlight"
condition: state
@@ -116,11 +116,11 @@ action:
conditions:
- alias: "Room set to auto"
condition: state
entity_id: input_select.nursery_mode
entity_id: input_select.girls_room_mode
state: Auto
- alias: "Lights are on"
condition: state
entity_id: light.nursery_hue
entity_id: light.girls_room_hue
state: "on"
sequence:
- action: scene.turn_on
@@ -133,26 +133,26 @@ action:
conditions:
- alias: "Room set to auto"
condition: state
entity_id: input_select.nursery_mode
entity_id: input_select.girls_room_mode
state: Auto
- alias: "Lights are off"
condition: state
entity_id: light.nursery_hue
entity_id: light.girls_room_hue
state: "off"
sequence:
- action: scene.turn_on
target:
entity_id: "scene.{{light_name}}_{{states(automatic_profile).lower().replace(' ','_')}}"
- alias: "If the room is not set to auto, the lights are on, and the room is set to Nightlight change to the Nursery Mode scene with a short transition"
- alias: "If the room is not set to auto, the lights are on, and the room is set to Nightlight change to the Girls Room Mode scene with a short transition"
conditions:
- alias: "Room not manual or auto and lights are on"
condition: state
entity_id: light.nursery_hue
entity_id: light.girls_room_hue
state: "on"
- alias: "Room set to Nightlight"
condition: state
entity_id: input_select.nursery_mode
entity_id: input_select.girls_room_mode
state: Nightlight
sequence:
- action: scene.turn_on
@@ -161,11 +161,11 @@ action:
target:
entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
- alias: "If the room is not set to auto and the lights are on, change to the Nursery Mode scene with a transition"
- alias: "If the room is not set to auto and the lights are on, change to the Girls Room Mode scene with a transition"
conditions:
- alias: "Room not manual or auto and lights are on"
condition: state
entity_id: light.nursery_hue
entity_id: light.girls_room_hue
state: "on"
sequence:
- action: scene.turn_on
@@ -174,11 +174,11 @@ action:
target:
entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
- alias: "If the room is not set to auto and the lights are on, change to the Nursery Mode scene without a transition"
- alias: "If the room is not set to auto and the lights are on, change to the Girls Room Mode scene without a transition"
conditions:
- alias: "Room not manual or auto and lights are off"
condition: state
entity_id: light.nursery_hue
entity_id: light.girls_room_hue
state: "off"
sequence:
- action: scene.turn_on