2016-12-02 03:13:08 +00:00
|
|
|
######################################################################################################
|
2016-12-19 21:10:30 +00:00
|
|
|
###Script to turn on scene for the appropriate month for the front of the house but only when the sun is down. (Minus 3 Hours)
|
2016-12-02 03:13:08 +00:00
|
|
|
# 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:
|
2016-12-19 04:41:46 +00:00
|
|
|
- condition: sun
|
|
|
|
before: 'sunrise'
|
|
|
|
before_offset: '-03:00:00'
|
|
|
|
|
2016-12-02 03:13:08 +00:00
|
|
|
- service: scene.turn_on
|
|
|
|
data_template:
|
|
|
|
entity_id: "scene.month_front_{{ states('sensor.date').split('-')[1] }}_colors"
|
|
|
|
|