diff --git a/automations.yaml b/automations.yaml index e0e9d0c..befba36 100644 --- a/automations.yaml +++ b/automations.yaml @@ -610,3 +610,92 @@ entity_id: switch.adaptive_lighting_basement_studio default: [] mode: single +- id: '1644531090692' + alias: Master Bedroom Scenes + description: '' + trigger: + - platform: state + entity_id: input_select.master_bedroom_scenes + condition: [] + action: + - choose: + - conditions: + - condition: state + entity_id: input_select.master_bedroom_scenes + state: Bright + sequence: + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_sleep_mode_master_bedroom + - service: scene.turn_on + data: {} + target: + entity_id: scene.master_bedroom_bright + - conditions: + - condition: state + entity_id: input_select.master_bedroom_scenes + state: Dimmed + sequence: + - service: scene.turn_on + data: {} + target: + entity_id: scene.master_bedroom_dimmed + - conditions: + - condition: state + entity_id: input_select.master_bedroom_scenes + state: Nightlight + sequence: + - service: switch.turn_on + data: {} + target: + entity_id: switch.adaptive_lighting_sleep_mode_master_bedroom + - service: scene.turn_on + data: {} + target: + entity_id: scene.master_bedroom_nightlight + - conditions: + - condition: state + entity_id: input_select.master_bedroom_scenes + state: Front Nightlight + sequence: + - service: switch.turn_on + data: {} + target: + entity_id: switch.adaptive_lighting_sleep_mode_master_bedroom + - service: scene.turn_on + data: {} + target: + entity_id: scene.master_bedroom_front_nightlight + - conditions: + - condition: state + entity_id: input_select.master_bedroom_scenes + state: Side Nightlight + sequence: + - service: switch.turn_on + data: {} + target: + entity_id: switch.adaptive_lighting_sleep_mode_master_bedroom + - service: scene.turn_on + data: {} + target: + entity_id: scene.master_bedroom_side_nightlight + - conditions: + - condition: state + entity_id: input_select.master_bedroom_scenes + state: Adaptive + sequence: + - service: light.turn_on + data: {} + target: + entity_id: + - light.master_bedroom_front + - light.master_bedroom_side + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_sleep_mode_master_bedroom + - service: adaptive_lighting.apply + data: {} + default: [] + mode: single diff --git a/input_select.yaml b/input_select.yaml index 9ee97bd..08e9aa3 100644 --- a/input_select.yaml +++ b/input_select.yaml @@ -65,3 +65,14 @@ basement_studio_scenes: - Pink initial: Adaptive icon: mdi:twitch +master_bedroom_scenes: + name: Master Bedroom Scenes + options: + - Adaptive + - Bright + - Dimmed + - Nightlight + - Front Nightlight + - Side Nightlight + initial: Adaptive + icon: mdi:bed