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
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: >
{% set hour=states("sensor.time").split(':')[0] | int %}
{% 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.garage_doors', 'closed') }}"
- 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:
kelvin: 2700
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
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# TV Time at sunset or 8pm. Whichever is later.
# config/automation/tv_time_on_and_off.yaml
# TV Time: soften house lights when living room media starts after 8pm/sunset.
# https://github.com/CCOSTAN/Home-AssistantConfig
######################################################################
- alias: TV Time
id: 6e59d312-661f-40da-bb08-416f2e86b566
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
entity_id: media_player.living_room_ultra
to: 'playing'
- platform: time
at: '20:00:00'
condition:
condition: and
conditions:
@@ -40,8 +29,6 @@
state: 'playing'
action:
- service: input_boolean.turn_off
entity_id: input_boolean.tv_time
- service: light.turn_off
entity_id: