mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-08-21 05:03:39 +00:00
Working on splitting out scripts into domain related configs
This commit is contained in:
30
scripts/lights.yaml
Normal file
30
scripts/lights.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
#########################################
|
||||
#
|
||||
# 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
|
Reference in New Issue
Block a user