From 14dd85a61c2f106af242fe776377afe7ec3d3bf0 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Tue, 25 Apr 2023 21:14:36 -0400 Subject: [PATCH] Adjustments to living room switch --- automations.yaml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/automations.yaml b/automations.yaml index 9c94677..3ae7b2a 100644 --- a/automations.yaml +++ b/automations.yaml @@ -903,15 +903,21 @@ brightness_up_short_action: [] brightness_down_short_action: [] off_short_action: - - service: input_boolean.turn_on - data: {} - target: - entity_id: input_boolean.living_room_dynamic_scenes - - service: input_select.select_option - data: - option: Tokyo - target: - entity_id: input_select.living_room_scenes + - if: + - condition: state + entity_id: binary_sensor.early_night_mode + state: 'on' + then: + - service: script.evening_on_first_floor + data: {} + else: + - service: light.turn_off + data: {} + target: + entity_id: + - light.living_room_lights + - light.dining_room_lamp + - light.tina_desk_lights brightness_up_long_action: [] brightness_down_long_action: [] off_long_action: