From 2cccf785e1fee617ceabec8421d33709dc6857ae Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 9 Aug 2023 12:46:34 -0400 Subject: [PATCH] Modified living room switch handling --- automations.yaml | 58 +++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 53 insertions(+), 5 deletions(-) diff --git a/automations.yaml b/automations.yaml index 1ee073f..36cdc6a 100644 --- a/automations.yaml +++ b/automations.yaml @@ -859,15 +859,41 @@ path: codycodes/hue-remote-dimmer-december-2021.yaml input: dimmer_device: ccc672e3d924e72a952d801736ea59d3 - on_short_action: [] + on_short_action: + - service: light.toggle + data: {} + target: + entity_id: light.living_room_lights on_long_action: - service: input_select.select_option data: option: Adaptive target: entity_id: input_select.living_room_scenes - brightness_up_short_action: [] - brightness_down_short_action: [] + brightness_up_short_action: + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_living_room + alias: Adaptive Off + - service: light.turn_on + data: + brightness_step_pct: 12 + target: + entity_id: light.living_room_lights + alias: Brightness Up Small + brightness_down_short_action: + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_living_room + alias: Adaptive Off + - service: light.turn_on + data: + brightness_step_pct: 22 + target: + entity_id: light.living_room_lights + alias: Brightness Down Small off_short_action: - if: - condition: state @@ -884,8 +910,30 @@ - light.living_room_lights - light.dining_room_lamp - light.tina_desk_lights - brightness_up_long_action: [] - brightness_down_long_action: [] + brightness_up_long_action: + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_living_room + alias: Adaptive Off + - service: light.turn_on + data: + brightness_step_pct: -12 + target: + entity_id: light.living_room_lights + alias: Brightness Up Large + brightness_down_long_action: + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_living_room + alias: Adaptive Off + - service: light.turn_on + data: + brightness_step_pct: -22 + target: + entity_id: light.living_room_lights + alias: Brightness Down Large off_long_action: - service: light.turn_on data: {}