From 1f9cf20d9d1c95205497b0d79fa29397b2eab6c3 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 12 Dec 2021 23:45:21 +0100 Subject: [PATCH] Update automations to two bedroom lamps --- configuration/automations/alarm-clock.yaml | 2 +- scripts/10.modes.yaml | 4 ++-- scripts/91.lights-bedroom.yaml | 18 +++++++++--------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/configuration/automations/alarm-clock.yaml b/configuration/automations/alarm-clock.yaml index f4525d3..8177e22 100644 --- a/configuration/automations/alarm-clock.yaml +++ b/configuration/automations/alarm-clock.yaml @@ -25,7 +25,7 @@ kelvin: 5300 transition: 1800 brightness: 255 - entity_id: light.bed_lamp + entity_id: light.bed_lamps - service: light.turn_on data: kelvin: 5300 diff --git a/scripts/10.modes.yaml b/scripts/10.modes.yaml index b29e007..c4fa36d 100644 --- a/scripts/10.modes.yaml +++ b/scripts/10.modes.yaml @@ -22,7 +22,7 @@ good_night: - light.bathroom_minor_lights - light.bedroom_lights - light.bed_lightstrip - - light.bed_lamp + - light.bed_lamps - light.hallway_light - light.hallway_lightstrip - light.computer_computer_cave_background @@ -100,7 +100,7 @@ leave_home: - light.bathroom_minor_lights - light.bedroom_lights - light.bed_lightstrip - - light.bed_lamp + - light.bed_lamps - light.hallway_light - light.hallway_lightstrip - light.computer_computer_cave_background diff --git a/scripts/91.lights-bedroom.yaml b/scripts/91.lights-bedroom.yaml index 00d3f7e..5e2b421 100644 --- a/scripts/91.lights-bedroom.yaml +++ b/scripts/91.lights-bedroom.yaml @@ -54,27 +54,27 @@ bedroom_all_lights_off: - service: light.turn_off entity_id: light.bed_lightstrip - service: light.turn_off - entity_id: light.bed_lamp + entity_id: light.bed_lamps bedroom_bed_lamp_toggle: - alias: '[Bedroom] Bed lamp toggle' + alias: '[Bedroom] Bed lamps toggle' sequence: - choose: - conditions: - condition: state - entity_id: light.bed_lamp + entity_id: light.bed_lamps state: 'on' sequence: - service: script.bedroom_bed_lamp_off - conditions: - condition: state - entity_id: light.bed_lamp + entity_id: light.bed_lamps state: 'off' sequence: - service: script.bedroom_bed_lamp_on bedroom_bed_lamp_on: - alias: '[Bedroom] Bed lamp on' + alias: '[Bedroom] Bed lamps on' sequence: - choose: - conditions: @@ -83,19 +83,19 @@ bedroom_bed_lamp_on: state: Night sequence: - service: light.turn_on - entity_id: light.bed_lamp + entity_id: light.bed_lamps data: brightness_pct: 10 kelvin: 2000 default: - service: light.turn_on - entity_id: light.bed_lamp + entity_id: light.bed_lamps data: brightness_pct: 30 kelvin: 3200 bedroom_bed_lamp_off: - alias: '[Bedroom] Bed lamp off' + alias: '[Bedroom] Bed lamps off' sequence: - service: light.turn_off - entity_id: light.bed_lamp + entity_id: light.bed_lamps