Update Lighting Automations
This commit is contained in:
@@ -129,13 +129,23 @@ scene:
|
||||
# Lighting Scripts
|
||||
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
|
||||
ht_player_lighting_update:
|
||||
alias: Home Theater Lighting State Update
|
||||
mode: restart
|
||||
sequence:
|
||||
- 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
|
||||
- choose:
|
||||
@@ -204,7 +214,7 @@ automation:
|
||||
- platform: numeric_state
|
||||
entity_id: sun.sun
|
||||
attribute: elevation
|
||||
below: 0
|
||||
below: 6.0
|
||||
action:
|
||||
- service: script.ht_player_lighting_update
|
||||
|
||||
|
||||
Reference in New Issue
Block a user