###################################################################### # @CCOSTAN - Follow Me on X # For more info visit https://www.vcloudinfo.com/click-here # Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig # ------------------------------------------------------------------- # Monthly Color Scene - Exterior seasonal lighting scene dispatcher. # Related Issue: 1774 # Turns on the scene exposed by sensor.holiday_lighting_scene after dark. # ------------------------------------------------------------------- # Notes: https://www.vcloudinfo.com/2018/10/easy-smart-home-gadgets-i-use-for-my.html # Notes: https://www.vcloudinfo.com/2017/08/diy-outdoor-smart-home-led-strips.html # Notes: https://www.vcloudinfo.com/2019/02/breaking-down-the-flag-sensor-in-home-assistant.html # Notes: Script to turn on scene for the appropriate month for the front of the house but only when the sun is down # Notes: - service: script.monthly_color_scene # Notes: scenes should be named month_[01-12]_colors (month_06_colors) # Notes: Color help - http://www.esbnyc.com/explore/tower-lights/calendar # Notes: Active mode is inspectable at sensor.holiday_lighting_mode. ###################################################################### monthly_color_scene: sequence: - condition: state entity_id: sun.sun state: 'below_horizon' - service: scene.turn_on data: entity_id: >- {%- set scene = states('sensor.holiday_lighting_scene') | trim -%} {{ scene if scene[:12] == 'scene.month_' else 'scene.month_standard_colors' }}