From 792cdd0f2664d423f4366b426401b0b67a2ab90b Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Tue, 1 Feb 2022 20:09:42 -0500 Subject: [PATCH] Updated various scripts to handle new dining room lamp --- scripts.yaml | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/scripts.yaml b/scripts.yaml index 7ce14d7..88fe1a3 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -4,6 +4,9 @@ start_netflix: - service: switch.turn_on target: entity_id: switch.adaptive_lighting_sleep_mode_living_room + - service: switch.turn_off + target: + entity_id: switch.dining_room_lamp - service: media_player.select_source target: entity_id: media_player.living_room_firetv @@ -27,6 +30,9 @@ stop_netflix: give_me_darkness: alias: Give Me Darkness sequence: + - service: switch.turn_off + target: + entity_id: switch.dining_room_lamp - service: switch.turn_on target: entity_id: @@ -48,6 +54,9 @@ start_youtube: - service: switch.turn_on target: entity_id: switch.adaptive_lighting_sleep_mode_living_room + - service: switch.turn_off + target: + entity_id: switch.dining_room_lamp - service: media_player.select_source target: entity_id: media_player.living_room_firetv @@ -74,6 +83,9 @@ start_twitch: - service: switch.turn_on target: entity_id: switch.adaptive_lighting_sleep_mode_living_room + - service: switch.turn_off + target: + entity_id: switch.dining_room_lamp - service: media_player.select_source target: entity_id: media_player.living_room_firetv @@ -121,7 +133,6 @@ goodnight: target: entity_id: - scene.upstairs_hallway_nightlight - - scene.mud_room_nightlight - service: light.turn_off target: device_id: @@ -136,7 +147,9 @@ goodnight: - nursery - service: switch.turn_off target: - area_id: basement_studio + area_id: + - basement_studio + entity_id: switch.dining_room_lamp - service: switch.turn_on target: entity_id: @@ -173,6 +186,9 @@ family_is_away: - mud_room - nursery - upstairs_hallway + - service: switch.turn_off + target: + entity_id: switch.dining_room_lamp - service: alarm_control_panel.alarm_arm_away target: entity_id: alarm_control_panel.alexa_guard_9ee3b @@ -195,12 +211,6 @@ family_is_home: - condition: sun after: sunset after_offset: -00:30 - - service: light.turn_on - data: {} - target: - entity_id: - - light.living_room_lights - - light.mud_room_overhead - service: light.turn_off target: area_id: @@ -210,6 +220,15 @@ family_is_home: - master_bedroom - upstairs_hallway - basement_studio + - service: switch.turn_on + target: + entity_id: switch.dining_room_lamp + - service: light.turn_on + data: {} + target: + entity_id: + - light.living_room_lights + - light.mud_room_overhead mode: single icon: mdi:home-account reading_timer_cancel: