Update Lighting Automations

This commit is contained in:
2022-05-16 19:27:27 -07:00
parent 43cf2d8c3d
commit ccdfa6c314

View File

@@ -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