Refactor automation configurations and enhance living room lighting scenes

- Removed redundant conditions from late night outside helper automation.
- Added a new automation for living room lighting that triggers a red scene when entry points are activated or garage doors are opened.
- Updated TV time automation to streamline triggers and removed the associated input boolean.
- Adjusted living room scene settings to ensure lights are on with specified RGB colors and brightness levels.
- Cleaned up trigger booleans by removing the now unnecessary TV time boolean.
This commit is contained in:
Carlo Costanzo
2025-11-29 12:19:32 -05:00
parent 896541e551
commit bbcc77673d
6 changed files with 42 additions and 49 deletions

View File

@@ -24,17 +24,6 @@
- service: scene.turn_on - service: scene.turn_on
entity_id: scene.front_full_brightness entity_id: scene.front_full_brightness
- choose:
- conditions: >
{{ states.group.entry_points.state == 'on' or
states.group.garage_doors.state != 'closed' }}
sequence:
- service: scene.turn_on
entity_id: scene.Red_living_Room
default:
- service: scene.turn_on
entity_id: scene.tv_time
- service: > - service: >
{% set hour=states("sensor.time").split(':')[0] | int %} {% set hour=states("sensor.time").split(':')[0] | int %}
{% if hour >= 5 and hour <= 9 and states.group.bed.state == 'on'%} {% if hour >= 5 and hour <= 9 and states.group.bed.state == 'on'%}
@@ -50,14 +39,3 @@
- wait_template: "{{ is_state('group.entry_points', 'off') }}" - wait_template: "{{ is_state('group.entry_points', 'off') }}"
- wait_template: "{{ is_state('group.garage_doors', 'closed') }}" - wait_template: "{{ is_state('group.garage_doors', 'closed') }}"
- service: script.monthly_color_scene - service: script.monthly_color_scene
- choose:
- conditions: >
{{ states.group.entry_points.state == 'on' or
states.group.garage_doors.state != 'closed' }}
sequence:
- service: scene.turn_on
entity_id: scene.Red_living_Room
default:
- service: scene.turn_on
entity_id: scene.tv_time

View File

@@ -77,3 +77,35 @@
data: data:
kelvin: 2700 kelvin: 2700
brightness: 200 brightness: 200
- alias: 'Living Room Red on Entry/Garage Open'
id: living_room_red_on_entry_open
mode: restart
variables:
was_off: "{{ is_state('light.living_room_lights', 'off') }}"
trigger:
- platform: state
entity_id: group.entry_points
to: 'on'
- platform: state
entity_id: group.garage_doors
from: 'closed'
to: 'open'
action:
- service: scene.turn_on
target:
entity_id: scene.red_living_room
- wait_for_trigger:
- platform: state
entity_id: group.entry_points
to: 'off'
- platform: state
entity_id: group.garage_doors
to: 'closed'
timeout: "01:00:00"
- choose:
- conditions: "{{ was_off }}"
sequence:
- service: light.turn_off
target:
entity_id: light.living_room_lights

View File

@@ -1,26 +1,15 @@
###################################################################### ######################################################################
# @CCOSTAN # config/automation/tv_time_on_and_off.yaml
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig # TV Time: soften house lights when living room media starts after 8pm/sunset.
# TV Time at sunset or 8pm. Whichever is later. # https://github.com/CCOSTAN/Home-AssistantConfig
###################################################################### ######################################################################
- alias: TV Time - alias: TV Time
id: 6e59d312-661f-40da-bb08-416f2e86b566 id: 6e59d312-661f-40da-bb08-416f2e86b566
trigger: trigger:
- platform: state
entity_id: input_boolean.TV_time
to: 'on'
from: 'off'
- platform: state
entity_id: sun.sun
to: 'below_horizon'
from: 'above_horizon'
- platform: state - platform: state
entity_id: media_player.living_room_ultra entity_id: media_player.living_room_ultra
to: 'playing' to: 'playing'
- platform: time
at: '20:00:00'
condition: condition:
condition: and condition: and
conditions: conditions:
@@ -40,8 +29,6 @@
state: 'playing' state: 'playing'
action: action:
- service: input_boolean.turn_off
entity_id: input_boolean.tv_time
- service: light.turn_off - service: light.turn_off
entity_id: entity_id:

View File

@@ -6,10 +6,6 @@ meal_time:
name: Meal Time name: Meal Time
initial: off initial: off
tv_time:
name: TV Time
initial: off
work: work:
name: Work name: Work
initial: off initial: off

View File

@@ -352,10 +352,6 @@ automation:
entity_id: group.family entity_id: group.family
to: not_home to: not_home
for: 00:05:00 for: 00:05:00
- platform: state
entity_id: input_boolean.tv_time
to: 'on'
from: 'off'
condition: condition:
condition: or condition: or

View File

@@ -1,14 +1,18 @@
- name: TV Time - name: TV Time
entities: entities:
light.m1_front_left: light.m1_front_left:
state: off state: on
rgb_color: &gold [255,223,0]
brightness: 100
light.m1_front_right: light.m1_front_right:
state: off state: on
rgb_color: *gold
brightness: 100
light.main_slider: light.main_slider:
state: off state: off
light.m1_back_right: light.m1_back_right:
state: on state: on
rgb_color: &gold [255,223,0] rgb_color: *gold
brightness: 50 brightness: 50
light.m1_back_left: light.m1_back_left:
state: on state: on