From 2bbe7d5f57932fe6c2fc774a34eb6b19cac19412 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sat, 29 Apr 2023 14:42:30 -0400 Subject: [PATCH] Gave wife's desk the Hue treatment --- automations.yaml | 188 ++++++++++++++++++++++++++ packages/lighting_and_scenes.yaml | 2 +- scenes.yaml | 216 ------------------------------ 3 files changed, 189 insertions(+), 217 deletions(-) diff --git a/automations.yaml b/automations.yaml index 3ae7b2a..acab4d4 100644 --- a/automations.yaml +++ b/automations.yaml @@ -957,3 +957,191 @@ data: {} target: entity_id: switch.adaptive_lighting_adapt_brightness_living_room +- id: '1682550106529' + alias: Master Bedroom Switch Handler + description: '' + use_blueprint: + path: codycodes/hue-remote-dimmer-december-2021.yaml + input: + dimmer_device: 47cce1f5af5137fcb398dec76adbd23e + on_long_action: + - service: input_select.select_option + data: + option: Adaptive + target: + entity_id: input_select.master_bedroom_scenes + brightness_up_short_action: + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_master_bedroom + brightness_up_long_action: + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_master_bedroom + brightness_down_short_action: + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_master_bedroom + brightness_down_long_action: + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_master_bedroom + off_long_action: + - service: input_select.select_option + data: + option: Side Nightlight + target: + entity_id: input_select.master_bedroom_scenes +- id: '1682550357188' + alias: Emma Bedroom Switch Handler + description: '' + use_blueprint: + path: codycodes/hue-remote-dimmer-december-2021.yaml + input: + dimmer_device: 18dc2f03d3a1c0c5e8c93e365e94de21 + on_long_action: + - service: input_select.select_option + data: + option: Adaptive + target: + entity_id: input_select.emma_bedroom_scenes + brightness_up_short_action: + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_emma_bedroom + brightness_up_long_action: + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_emma_bedroom + brightness_down_short_action: + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_emma_bedroom + brightness_down_long_action: + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_emma_bedroom + off_long_action: + - service: input_boolean.toggle + data: {} + target: + entity_id: input_boolean.emma_sleeping + off_short_action: + - service: script.turn_on + data: {} + target: + entity_id: script.evening_on_second_floor +- id: '1682561310614' + alias: Kallen Bedroom Switch Handler + description: '' + use_blueprint: + path: codycodes/hue-remote-dimmer-december-2021.yaml + input: + dimmer_device: ca3ff98b83eff1b55a79955ba02df333 + on_long_action: + - service: input_select.select_option + data: + option: Adaptive + target: + entity_id: input_select.kallen_bedroom_scenes + brightness_up_short_action: + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_kallen_bedroom + brightness_up_long_action: + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_kallen_bedroom + brightness_down_short_action: + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_kallen_bedroom + brightness_down_long_action: + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_kallen_bedroom + off_long_action: + - service: input_boolean.toggle + data: {} + target: + entity_id: input_boolean.kallen_sleeping + off_short_action: + - choose: + - conditions: + - condition: state + entity_id: light.kallen_bedroom_overhead + state: 'off' + sequence: + - service: input_select.select_option + data: + option: Overhead Nightlight + target: + entity_id: input_select.kallen_bedroom_scenes + - conditions: + - condition: state + entity_id: light.kallen_bedroom_overhead + state: 'on' + sequence: + - service: light.turn_off + data: {} + target: + entity_id: light.kallen_bedroom_overhead + - delay: + hours: 0 + minutes: 0 + seconds: 2 + milliseconds: 0 + - service: input_text.set_value + data: + value: Adaptive + target: + entity_id: input_text.kallen_bedroom_selected_scene + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_sleep_mode_kallen_bedroom + - service: switch.turn_on + data: {} + target: + entity_id: switch.adaptive_lighting_kallen_bedroom +- id: '1682793072646' + alias: Tina Desk Switch Handler + description: '' + use_blueprint: + path: codycodes/hue-remote-dimmer-december-2021.yaml + input: + dimmer_device: 40c14ccfe958d21d75888a968bbbf908 + on_short_action: + - service: light.toggle + data: {} + target: + entity_id: light.dining_room_lamp + on_long_action: + - service: input_select.select_option + data: + option: Adaptive + target: + entity_id: input_select.dining_room_lamp_scenes + off_short_action: + - service: input_boolean.toggle + data: {} + target: + entity_id: input_boolean.tina_desk_lights + off_long_action: + - service: input_select.select_option + data: + option: Reset + target: + entity_id: input_select.tina_desk_scenes diff --git a/packages/lighting_and_scenes.yaml b/packages/lighting_and_scenes.yaml index eb39598..f84c781 100644 --- a/packages/lighting_and_scenes.yaml +++ b/packages/lighting_and_scenes.yaml @@ -1735,7 +1735,7 @@ scene: - 127 - 0 - 255 - brightness: 51 + brightness: 128 light.tina_desk_strip: state: "on" rgb_color: diff --git a/scenes.yaml b/scenes.yaml index facf194..23c45f6 100644 --- a/scenes.yaml +++ b/scenes.yaml @@ -899,222 +899,6 @@ friendly_name: Basement Tall Lamp state: 'off' icon: mdi:palette -- id: '1653789912821' - name: Tina Lamp Bright - entities: - light.tina_lamp_side: - min_mireds: 154 - max_mireds: 554 - effect_list: - - sun match - supported_color_modes: - - color_temp - - hs - attribution: Data provided by Wyze - state: 'on' - available: true - device_model: WLPA19C - mac: 7C78B28F30A8 - IP: 192.168.1.159 - RSSI: '-40' - SSID: deltaforce-2G - Sun Match: false - local_control: true - mode: White - friendly_name: Tina Lamp - Side - supported_features: 23 - color_mode: hs - brightness: 255 - hs_color: - - 29.072 - - 76.078 - rgb_color: - - 255 - - 155 - - 61 - xy_color: - - 0.557 - - 0.389 - color_temp: 416 - light.tina_lamp_top: - min_mireds: 154 - max_mireds: 554 - effect_list: - - sun match - supported_color_modes: - - color_temp - - hs - attribution: Data provided by Wyze - state: 'on' - available: true - device_model: WLPA19C - mac: 7C78B28F21E7 - IP: 192.168.1.160 - RSSI: '-32' - SSID: deltaforce-2G - Sun Match: false - local_control: true - mode: White - friendly_name: Tina Lamp - Top - supported_features: 23 - color_mode: hs - brightness: 255 - hs_color: - - 29.072 - - 76.078 - rgb_color: - - 255 - - 155 - - 61 - xy_color: - - 0.557 - - 0.389 - color_temp: 416 - icon: mdi:palette -- id: '1653790005871' - name: Tina Lamp Energize - entities: - light.tina_lamp_top: - min_mireds: 154 - max_mireds: 554 - effect_list: - - sun match - supported_color_modes: - - color_temp - - hs - attribution: Data provided by Wyze - state: 'on' - available: true - device_model: WLPA19C - mac: 7C78B28F21E7 - IP: 192.168.1.160 - RSSI: '-32' - SSID: deltaforce-2G - Sun Match: false - local_control: true - mode: White - friendly_name: Tina Lamp - Top - supported_features: 23 - color_mode: hs - brightness: 255 - hs_color: - - 31.765 - - 6.667 - rgb_color: - - 255 - - 246 - - 237 - xy_color: - - 0.339 - - 0.338 - color_temp: 166 - light.tina_lamp_side: - min_mireds: 154 - max_mireds: 554 - effect_list: - - sun match - supported_color_modes: - - color_temp - - hs - attribution: Data provided by Wyze - state: 'on' - available: true - device_model: WLPA19C - mac: 7C78B28F30A8 - IP: 192.168.1.159 - RSSI: '-40' - SSID: deltaforce-2G - Sun Match: false - local_control: true - mode: White - friendly_name: Tina Lamp - Side - supported_features: 23 - color_mode: hs - brightness: 255 - hs_color: - - 31.765 - - 6.667 - rgb_color: - - 255 - - 246 - - 237 - xy_color: - - 0.339 - - 0.338 - color_temp: 166 - icon: mdi:palette -- id: '1653790126251' - name: Tina Lamp Nightlight - entities: - light.tina_lamp_top: - min_mireds: 154 - max_mireds: 554 - effect_list: - - sun match - supported_color_modes: - - color_temp - - hs - attribution: Data provided by Wyze - state: 'on' - available: true - device_model: WLPA19C - mac: 7C78B28F21E7 - IP: 192.168.1.160 - RSSI: '-32' - SSID: deltaforce-2G - Sun Match: false - local_control: true - mode: White - friendly_name: Tina Lamp - Top - supported_features: 23 - color_mode: hs - brightness: 2.5 - hs_color: - - 29.072 - - 76.078 - rgb_color: - - 255 - - 155 - - 61 - xy_color: - - 0.557 - - 0.389 - color_temp: 500 - light.tina_lamp_side: - min_mireds: 154 - max_mireds: 554 - effect_list: - - sun match - supported_color_modes: - - color_temp - - hs - attribution: Data provided by Wyze - state: 'on' - available: true - device_model: WLPA19C - mac: 7C78B28F30A8 - IP: 192.168.1.159 - RSSI: '-40' - SSID: deltaforce-2G - Sun Match: false - local_control: true - mode: White - friendly_name: Tina Lamp - Side - supported_features: 23 - color_mode: hs - brightness: 2.5 - hs_color: - - 29.072 - - 76.078 - rgb_color: - - 255 - - 155 - - 61 - xy_color: - - 0.557 - - 0.389 - color_temp: 500 - icon: mdi:palette - id: '1656026801409' name: Master Bedroom Bright entities: