Update Lighting Automations

This commit is contained in:
2022-05-16 19:32:53 -07:00
parent 3d005ba1ff
commit a21718b318

View File

@@ -129,6 +129,44 @@ scene:
# Lighting Scripts # Lighting Scripts
script: script:
# Set Dimmer "Off" Brightness
set_dimmer_off_brightness:
description: Set the Dimmer Brightness While Keeping Light Off
mode: queued
fields:
entity_id:
description: Light
selector:
entity:
domain: light
brightness:
description: Off Brightness
selector:
number:
min: 0
max: 255
sequence:
- choose:
- conditions: "{{ is_state(entity_id, 'off') }}"
sequence:
- service: light.turn_on
target:
entity_id: "{{ entity_id }}"
data:
brightness: "{{ brightness }}"
transition: 30
- service: light.turn_off
target:
entity_id: "{{ entity_id }}"
default:
sequence:
- service: light.turn_on
target:
entity_id: "{{ entity_id }}"
data:
brightness: "{{ brightness }}"
transition: 0
# Update Home Theater Lighting State # Update Home Theater Lighting State
ht_player_lighting_update: ht_player_lighting_update: