Skip to content

Commit

Permalink
Switch out Master Bathroom automations to use Blue Series switch and …
Browse files Browse the repository at this point in the history
…adaptive brightness
  • Loading branch information
rohankapoorcom committed Nov 5, 2023
1 parent e8ecf5d commit ccb7fee
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 6 deletions.
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
10 changes: 4 additions & 6 deletions packages/master_bathroom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ automation:
alias: Master Bathroom Light Switch Scene Controls
description: Utilizes a blueprint to handle Scene Controls in the Master Bathroom.
use_blueprint:
path: rohankapoorcom/inovelli-vzw31-sn-red-series-switch.yaml
path: rohankapoorcom/inovelli-vzm31-sn-blue-series-switch.yaml
input:
zwave_device: 572777ba88a55f72409d0e416dd4c66f
inovelli_switch: d80e98e0621de0822a33348e7e141e8b
button_a:
- service: light.turn_on
target:
Expand Down Expand Up @@ -142,10 +142,8 @@ automation:
alias: Adjust the Master Bathroom Brightness
description: Utilizes a blueprint to configure the default brightess on the Master Bathroom Lights.
use_blueprint:
path: rohankapoorcom/inovelli-red-series-night-mode.yaml
path: rohankapoorcom/adaptive-lighting-sleep-mode.yaml
input:
zwave_device: 572777ba88a55f72409d0e416dd4c66f
adaptive_lighting_switch: switch.adaptive_lighting_sleep_mode_master_bathroom
bedtime: '01:00:00'
bedtime_brightness: 10
wakeup_time: '08:00:00'
wakeup_time_brightness: 99

0 comments on commit ccb7fee

Please sign in to comment.