Refactor code structure for improved readability and maintainability

This commit is contained in:
CeeWeasel
2026-01-19 14:47:59 -05:00
parent 6550521520
commit 97a0e678c0
84 changed files with 1614 additions and 1177 deletions
@@ -89,7 +89,7 @@ action:
sequence:
- action: light.turn_on
target:
entity_id: light.girls_room_fan_light_switch_light
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:
@@ -99,7 +99,7 @@ action:
state: Auto
- alias: "Lights are on"
condition: state
entity_id: light.girls_room_fan_light_switch_light
entity_id: light.girls_room_hue
state: "on"
- alias: "Automatic light profile set to Nightlight"
condition: state
@@ -120,7 +120,7 @@ action:
state: Auto
- alias: "Lights are on"
condition: state
entity_id: light.girls_room_fan_light_switch_light
entity_id: light.girls_room_hue
state: "on"
sequence:
- action: scene.turn_on
@@ -137,7 +137,7 @@ action:
state: Auto
- alias: "Lights are off"
condition: state
entity_id: light.girls_room_fan_light_switch_light
entity_id: light.girls_room_hue
state: "off"
sequence:
- action: scene.turn_on
@@ -148,7 +148,7 @@ action:
conditions:
- alias: "Room not manual or auto and lights are on"
condition: state
entity_id: light.girls_room_fan_light_switch_light
entity_id: light.girls_room_hue
state: "on"
- alias: "Room set to Nightlight"
condition: state
@@ -165,7 +165,7 @@ action:
conditions:
- alias: "Room not manual or auto and lights are on"
condition: state
entity_id: light.girls_room_fan_light_switch_light
entity_id: light.girls_room_hue
state: "on"
sequence:
- action: scene.turn_on
@@ -178,7 +178,7 @@ action:
conditions:
- alias: "Room not manual or auto and lights are off"
condition: state
entity_id: light.girls_room_fan_light_switch_light
entity_id: light.girls_room_hue
state: "off"
sequence:
- action: scene.turn_on