Update Lighting Automations
This commit is contained in:
@@ -129,13 +129,23 @@ scene:
|
|||||||
# Lighting Scripts
|
# Lighting Scripts
|
||||||
script:
|
script:
|
||||||
|
|
||||||
|
# Set Dimmer "Off" Brightness
|
||||||
|
set_dimmer_off_brightness:
|
||||||
|
description: Set the Dimmer Brightness While Keeping Light Off
|
||||||
|
fields:
|
||||||
|
entity_id:
|
||||||
|
description: Light
|
||||||
|
selector:
|
||||||
|
entity:
|
||||||
|
domain: light
|
||||||
|
|
||||||
# Update Home Theater Lighting State
|
# Update Home Theater Lighting State
|
||||||
ht_player_lighting_update:
|
ht_player_lighting_update:
|
||||||
alias: Home Theater Lighting State Update
|
alias: Home Theater Lighting State Update
|
||||||
mode: restart
|
mode: restart
|
||||||
sequence:
|
sequence:
|
||||||
- alias: Only run during Twilight/Night
|
- alias: Only run during Twilight/Night
|
||||||
condition: "{{ state_attr('sun.sun', 'elevation') < 0 }}"
|
condition: "{{ state_attr('sun.sun', 'elevation') < 6.0 }}"
|
||||||
|
|
||||||
# Select Home Theater Player State
|
# Select Home Theater Player State
|
||||||
- choose:
|
- choose:
|
||||||
@@ -204,7 +214,7 @@ automation:
|
|||||||
- platform: numeric_state
|
- platform: numeric_state
|
||||||
entity_id: sun.sun
|
entity_id: sun.sun
|
||||||
attribute: elevation
|
attribute: elevation
|
||||||
below: 0
|
below: 6.0
|
||||||
action:
|
action:
|
||||||
- service: script.ht_player_lighting_update
|
- service: script.ht_player_lighting_update
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user