mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-12-03 03:21:47 +00:00
Enhance living room color defaults configuration with improved documentation and additional light control. Added notes for clarity, including service calls for accent lights during on/off states.
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
######################################################################
|
######################################################################
|
||||||
# Living room color defaults: cool white by day, amber by evening.
|
# @CCOSTAN - Follow Me on X
|
||||||
|
# For more info visit https://www.vcloudinfo.com/click-here
|
||||||
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||||
|
# -------------------------------------------------------------------
|
||||||
|
# Living Room Color Defaults - cool white by day, amber by evening
|
||||||
# Restores after entry/garage secure and when lights are turned on.
|
# Restores after entry/garage secure and when lights are turned on.
|
||||||
|
# -------------------------------------------------------------------
|
||||||
|
# Notes: Returns to defaults after entry points close; keeps prior off states.
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
- alias: 'Living Room Defaults on Turn-On'
|
- alias: 'Living Room Defaults on Turn-On'
|
||||||
@@ -70,6 +76,12 @@
|
|||||||
data:
|
data:
|
||||||
kelvin: 5500
|
kelvin: 5500
|
||||||
brightness: 255
|
brightness: 255
|
||||||
|
- service: light.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: light.living_room_accents
|
||||||
|
data:
|
||||||
|
kelvin: 5500
|
||||||
|
brightness: 200
|
||||||
default:
|
default:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
target:
|
target:
|
||||||
@@ -77,12 +89,19 @@
|
|||||||
data:
|
data:
|
||||||
kelvin: 2700
|
kelvin: 2700
|
||||||
brightness: 200
|
brightness: 200
|
||||||
|
- service: light.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: light.living_room_accents
|
||||||
|
data:
|
||||||
|
kelvin: 2700
|
||||||
|
brightness: 170
|
||||||
|
|
||||||
- alias: 'Living Room Red on Entry/Garage Open'
|
- alias: 'Living Room Red on Entry/Garage Open'
|
||||||
id: living_room_red_on_entry_open
|
id: living_room_red_on_entry_open
|
||||||
mode: restart
|
mode: restart
|
||||||
variables:
|
variables:
|
||||||
was_off: "{{ is_state('light.living_room_lights', 'off') }}"
|
was_off: "{{ is_state('light.living_room_lights', 'off') }}"
|
||||||
|
accents_were_off: "{{ is_state('light.living_room_accents', 'off') }}"
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: group.entry_points
|
entity_id: group.entry_points
|
||||||
@@ -109,3 +128,9 @@
|
|||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: light.living_room_lights
|
entity_id: light.living_room_lights
|
||||||
|
- choose:
|
||||||
|
- conditions: "{{ accents_were_off }}"
|
||||||
|
sequence:
|
||||||
|
- service: light.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: light.living_room_accents
|
||||||
|
|||||||
Reference in New Issue
Block a user