You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Home-AssistantConfig/script/monthly_front_house_scene.yaml

23 lines
890 B

######################################################################################################
###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_[01-12]_colors (month_front_06_colors)
######################################################################################################
monthly_front_house_scene:
sequence:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
- service: logbook.log
data_template:
name: "Launching Scene:"
message: "scene.month_front_{{ states('sensor.date').split('-')[1] }}_colors"
- service: scene.turn_on
data_template:
entity_id: "scene.month_front_{{ states('sensor.date').split('-')[1] }}_colors"

Powered by TurnKey Linux.