-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch out Master Bathroom automations to use Blue Series switch and …
…adaptive brightness
- Loading branch information
1 parent
e8ecf5d
commit ccb7fee
Showing
2 changed files
with
57 additions
and
6 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
blueprints/automation/rohankapoorcom/adaptive-lighting-sleep-mode.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
blueprint: | ||
domain: automation | ||
name: Adaptive Lighting Sleep Mode | ||
description: | | ||
Enable Adaptive Lighting Sleep Mode at specific times for lights | ||
that are triggered by motion detectors. | ||
input: | ||
adaptive_lighting_switch: | ||
name: Adaptive Lighting Switch | ||
description: List of available Adaptive Lighting Switches | ||
selector: | ||
entity: | ||
integration: adaptive_lighting | ||
domain: | ||
- switch | ||
bedtime: | ||
name: Bedtime | ||
description: The time to reduce the default brightness. | ||
selector: | ||
time: | ||
wakeup_time: | ||
name: Wake-up time | ||
description: The time to increase the default brightness. | ||
selector: | ||
time: | ||
source_url: https://github.com/rohankapoorcom/homeassistant-config/blob/master/blueprints/automation/rohankapoorcom/adaptive-lighting-sleep-mode.yaml | ||
mode: single | ||
max_exceeded: silent | ||
trigger: | ||
- platform: homeassistant | ||
event: start | ||
- platform: event | ||
event_type: automation_reloaded | ||
- platform: time | ||
at: !input bedtime | ||
- platform: time | ||
at: !input wakeup_time | ||
action: | ||
- choose: | ||
- alias: If it's bedtime, set the lights to dim. | ||
conditions: | ||
- condition: time | ||
after: !input bedtime | ||
before: !input wakeup_time | ||
sequence: | ||
- service: switch.turn_on | ||
target: | ||
entity_id: !input adaptive_lighting_switch | ||
default: | ||
- service: switch.turn_off | ||
target: | ||
entity_id: !input adaptive_lighting_switch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters