From ccdfa6c3140b65169c906f913664dda088f726c2 Mon Sep 17 00:00:00 2001 From: "J.P. Krauss" Date: Mon, 16 May 2022 19:27:27 -0700 Subject: [PATCH] Update Lighting Automations --- packages/lighting/lighting.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/lighting/lighting.yaml b/packages/lighting/lighting.yaml index d9d5162..3d967fb 100644 --- a/packages/lighting/lighting.yaml +++ b/packages/lighting/lighting.yaml @@ -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