Working on splitting out scripts into domain related configs

This commit is contained in:
Jeffrey Stone
2019-07-24 14:10:33 -04:00
parent a1046d5d62
commit e9daa0eb35
2 changed files with 183 additions and 0 deletions

30
scripts/lights.yaml Normal file
View 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