Update Lighting Automations

This commit is contained in:
2022-05-16 20:00:58 -07:00
parent d9e1078fb0
commit 446dedeeb1

View File

@@ -129,47 +129,6 @@ 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: 10
- delay: 1
- service: light.turn_off
target:
entity_id: "{{ entity_id }}"
data:
transition: 0
default:
- 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:
alias: Home Theater Lighting State Update alias: Home Theater Lighting State Update
@@ -234,27 +193,6 @@ script:
# Lighting Automations # Lighting Automations
automation: automation:
# Automations for Morning Lighting
- alias: Set Dim Dining Room Light to Dim
mode: single
trigger:
- platform: time
at: "04:00:00"
condition:
- condition: time
after: "04:00:00"
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: script.set_dimmer_off_brightness
data:
entity_id: light.dining_room_light
brightness: 64
# Automations for Home Theater # Automations for Home Theater
- alias: Home Theater Lighting - alias: Home Theater Lighting
mode: queued mode: queued