Add automation for Freddy Fazbear Mask to turn on at sunrise and off at scheduled times
This commit is contained in:
@@ -935,3 +935,53 @@
|
|||||||
entity_id: d794e094113a14e6de0db3e5d3f65e88
|
entity_id: d794e094113a14e6de0db3e5d3f65e88
|
||||||
domain: light
|
domain: light
|
||||||
mode: single
|
mode: single
|
||||||
|
|
||||||
|
- id: freddy_fazbear_mask_schedule
|
||||||
|
alias: Freddy Fazbear Mask - Sunrise on, bedtime off
|
||||||
|
description: Turn the Freddy Fazbear Mask on at sunrise; off at 10:00 PM Sun-Thu and 11:59 PM Fri-Sat.
|
||||||
|
mode: single
|
||||||
|
triggers:
|
||||||
|
- trigger: sun
|
||||||
|
event: sunrise
|
||||||
|
id: mask_on
|
||||||
|
- trigger: time
|
||||||
|
at: '22:00:00'
|
||||||
|
id: mask_off_school_night
|
||||||
|
- trigger: time
|
||||||
|
at: '23:59:00'
|
||||||
|
id: mask_off_weekend
|
||||||
|
conditions: []
|
||||||
|
actions:
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id: mask_on
|
||||||
|
sequence:
|
||||||
|
- action: homeassistant.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: switch.freddy_fazbear_mask
|
||||||
|
- conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id: mask_off_school_night
|
||||||
|
- condition: time
|
||||||
|
weekday:
|
||||||
|
- sun
|
||||||
|
- mon
|
||||||
|
- tue
|
||||||
|
- wed
|
||||||
|
- thu
|
||||||
|
sequence:
|
||||||
|
- action: homeassistant.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: switch.freddy_fazbear_mask
|
||||||
|
- conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id: mask_off_weekend
|
||||||
|
- condition: time
|
||||||
|
weekday:
|
||||||
|
- fri
|
||||||
|
- sat
|
||||||
|
sequence:
|
||||||
|
- action: homeassistant.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: switch.freddy_fazbear_mask
|
||||||
|
|||||||
Reference in New Issue
Block a user