diff --git a/blueprints/automation/rohankapoorcom/adaptive-lighting-sleep-mode.yaml b/blueprints/automation/rohankapoorcom/adaptive-lighting-sleep-mode.yaml new file mode 100644 index 00000000..5759ea65 --- /dev/null +++ b/blueprints/automation/rohankapoorcom/adaptive-lighting-sleep-mode.yaml @@ -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 diff --git a/packages/master_bathroom.yaml b/packages/master_bathroom.yaml index 2e0003c5..22ae9463 100644 --- a/packages/master_bathroom.yaml +++ b/packages/master_bathroom.yaml @@ -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: @@ -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