parent
c534e47489
commit
a002e342d5
@ -1,17 +1,18 @@
|
||||
######################################################################################################
|
||||
###Script to turn on scene for the appropriate month for the front of the house but only when the sun is down.
|
||||
# action:
|
||||
# - service: script.monthly_front_house_scene
|
||||
#
|
||||
# scenes should be named month_front_[1-12]_colors (month_front_6_colors)
|
||||
######################################################################################################
|
||||
|
||||
monthly_front_house_scene:
|
||||
sequence:
|
||||
- condition: sun
|
||||
before: 'sunrise'
|
||||
|
||||
- service: scene.turn_on
|
||||
data_template:
|
||||
entity_id: "scene.month_front_{{ states('sensor.date').split('-')[1] }}_colors"
|
||||
######################################################################################################
|
||||
###Script to turn on scene for the appropriate month for the front of the house but only when the sun is down.
|
||||
# action:
|
||||
# - service: script.monthly_front_house_scene
|
||||
#
|
||||
# scenes should be named month_front_[1-12]_colors (month_front_6_colors)
|
||||
######################################################################################################
|
||||
|
||||
monthly_front_house_scene:
|
||||
sequence:
|
||||
- condition: state
|
||||
entity_id: sun.sun
|
||||
state: 'below.horizon'
|
||||
|
||||
- service: scene.turn_on
|
||||
data_template:
|
||||
entity_id: "scene.month_front_{{ states('sensor.date').split('-')[1] }}_colors"
|
||||
|
||||
Loading…
Reference in new issue