30 lines
861 B
YAML
30 lines
861 B
YAML
#########################################
|
|
#
|
|
# Light Based Scripts
|
|
#
|
|
#########################################
|
|
|
|
|
|
##########################
|
|
# Dim Living Room lights slowly - Sengled Bulbs - No Built in Transistion.
|
|
# Script can take a delay, if no delay is passed delay is set to 5
|
|
# delay should be in seconds
|
|
# Script takes the following
|
|
# entity_id = The light you want to fade in
|
|
# transition: = # Seconds to go from current to end brightness
|
|
# brightness_pct: = # Brightness to end at as a percentage
|
|
lr_sengled_transistion_on:
|
|
sequence:
|
|
- service: python_script.light_transistion
|
|
data:
|
|
entity_id: light.tower_lamp_2
|
|
brightness_pct: 100
|
|
transition: 60
|
|
|
|
lr_sengled_transistion_off:
|
|
sequence:
|
|
- service: python_script.light_transistion
|
|
data:
|
|
entity_id: light.tower_lamp_2
|
|
brightness_pct: 0
|
|
transition: 60 |