Files

102 lines
2.8 KiB
YAML

################################################
############## OUTSIDE AUTOMATIONS #############
################################################
- id: '1769311377293'
alias: Front Porch outlets turn off at 10P
description: ''
triggers:
- trigger: time
at: '22:00:00'
conditions: []
actions:
- type: turn_off
device_id: e04306aa947ba9901108c363d8109ca0
entity_id: 12662d2294935b2a21500e3f6d69ba15
domain: switch
# Lamppost shutoff moved to Porch Decorations Schedule below.
# - type: turn_off
# device_id: c0de273e40c6f4f1cafe4db27e5a6782
# entity_id: e6f4af2d9bc05634f994af34bad9a477
# domain: switch
- type: turn_off
device_id: e2343a74462cc1434c4acfa2e32d1364
entity_id: ea84e174f0fa3316b9923c4254454a37
domain: switch
mode: single
- id: porch_decorations_schedule
alias: Porch Decorations Schedule
description: >-
Turn on Porch Decorations 1, Porch Decor 1, Porch Decor 2, Porch Decor 3,
and Porch Decor 1 Smart Plug one hour before sunset. Turn them off at
22:30 Sunday through Thursday and at 23:45 Friday and Saturday, along
with the Outside Lamppost.
mode: single
triggers:
- trigger: sun
event: sunset
offset: "-01:00:00"
id: decorations_on
- trigger: time
at: "22:30:00"
id: decorations_off_weeknight
- trigger: time
at: "23:45:00"
id: decorations_off_weekend
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id: decorations_on
sequence:
- action: switch.turn_on
continue_on_error: true
target:
entity_id:
- switch.washing_machine_socket_1
- switch.porch_fan_socket_1
- switch.big_family_room_lamp
- switch.studio_plug_1_2
- switch.porch_decorations_3
- conditions:
- condition: trigger
id: decorations_off_weeknight
- condition: time
weekday:
- sun
- mon
- tue
- wed
- thu
sequence:
- action: switch.turn_off
continue_on_error: true
target:
entity_id:
- switch.washing_machine_socket_1
- switch.porch_fan_socket_1
- switch.big_family_room_lamp
- switch.studio_plug_1_2
- switch.porch_decorations_3
- switch.outside_lamppost
- conditions:
- condition: trigger
id: decorations_off_weekend
- condition: time
weekday:
- fri
- sat
sequence:
- action: switch.turn_off
continue_on_error: true
target:
entity_id:
- switch.washing_machine_socket_1
- switch.porch_fan_socket_1
- switch.big_family_room_lamp
- switch.studio_plug_1_2
- switch.porch_decorations_3
- switch.outside_lamppost