Fix Holiday Automations

This commit is contained in:
2022-11-26 16:45:31 -08:00
parent 3e71db7665
commit 003fe98ecf

View File

@@ -19,9 +19,10 @@ automation:
trigger: trigger:
- platform: sun - platform: sun
event: sunset event: sunset
# TODO: Add Conditions condition:
- "{{ is_state('binary_sensor.is_christmas_season', 'on') }}"
action: action:
- service: light.turn_on - service: switch.turn_on
target: target:
entity_id: switch.christmas_lights_front entity_id: switch.christmas_lights_front
@@ -29,9 +30,10 @@ automation:
trigger: trigger:
- platform: time - platform: time
at: '04:30:00' at: '04:30:00'
# TODO: Add Conditions condition:
- "{{ is_state('binary_sensor.is_christmas_season', 'on') }}"
action: action:
- service: light.turn_on - service: switch.turn_on
target: target:
entity_id: switch.christmas_lights_front entity_id: switch.christmas_lights_front
@@ -39,9 +41,8 @@ automation:
trigger: trigger:
- platform: time - platform: time
at: '00:00:00' at: '00:00:00'
# TODO: Add Conditions
action: action:
- service: light.turn_off - service: switch.turn_off
target: target:
entity_id: switch.christmas_lights_front entity_id: switch.christmas_lights_front
@@ -50,8 +51,7 @@ automation:
- platform: sun - platform: sun
event: sunrise event: sunrise
offset: '-00:30:00' offset: '-00:30:00'
# TODO: Add Conditions
action: action:
- service: light.turn_off - service: switch.turn_off
target: target:
entity_id: switch.christmas_lights_front entity_id: switch.christmas_lights_front