From 1e554cc0dfddcbc5826910abaf766b46e86d3d10 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Tue, 25 May 2021 16:56:30 +0200 Subject: [PATCH] Fix light automations change light.toggle to light.turn_on --- configuration/automations/bathroom-lights.yaml | 3 +-- configuration/automations/bathroom-mirror-button.yaml | 2 +- configuration/automations/bathroom-shower-motion.yaml | 2 +- configuration/automations/bedroom-motion.yaml | 2 +- configuration/automations/computer-button.yaml | 4 ++-- configuration/automations/hallway-motion.yaml | 2 +- configuration/automations/kitchen-button.yaml | 6 +++--- configuration/automations/kitchen-motion.yaml | 2 +- 8 files changed, 11 insertions(+), 12 deletions(-) diff --git a/configuration/automations/bathroom-lights.yaml b/configuration/automations/bathroom-lights.yaml index adad32a..9ef5e18 100644 --- a/configuration/automations/bathroom-lights.yaml +++ b/configuration/automations/bathroom-lights.yaml @@ -3,7 +3,6 @@ trigger: - platform: state entity_id: binary_sensor.bathroom_motion_occupancy - from: 'off' to: 'on' - platform: state entity_id: binary_sensor.bathroom_door_open_close @@ -31,7 +30,7 @@ entity_id: input_boolean.sleep_mode state: 'off' sequence: - - service: light.toggle + - service: light.turn_on entity_id: light.bathroom_lights data: brightness_pct: 100 diff --git a/configuration/automations/bathroom-mirror-button.yaml b/configuration/automations/bathroom-mirror-button.yaml index 5238763..6bb6d16 100644 --- a/configuration/automations/bathroom-mirror-button.yaml +++ b/configuration/automations/bathroom-mirror-button.yaml @@ -23,7 +23,7 @@ entity_id: input_boolean.sleep_mode state: 'off' sequence: - - service: light.toggle + - service: light.turn_on entity_id: light.bathroom_mirror_lights data: brightness_pct: 100 diff --git a/configuration/automations/bathroom-shower-motion.yaml b/configuration/automations/bathroom-shower-motion.yaml index 17a238f..f724849 100644 --- a/configuration/automations/bathroom-shower-motion.yaml +++ b/configuration/automations/bathroom-shower-motion.yaml @@ -23,7 +23,7 @@ entity_id: input_boolean.sleep_mode state: 'off' sequence: - - service: light.toggle + - service: light.turn_on entity_id: light.shower_lights data: brightness_pct: 100 diff --git a/configuration/automations/bedroom-motion.yaml b/configuration/automations/bedroom-motion.yaml index 6d4206e..ae2820d 100644 --- a/configuration/automations/bedroom-motion.yaml +++ b/configuration/automations/bedroom-motion.yaml @@ -30,7 +30,7 @@ entity_id: input_boolean.sleep_mode state: 'off' sequence: - - service: light.toggle + - service: light.turn_on entity_id: light.bedroom_lights data: brightness_pct: 60 diff --git a/configuration/automations/computer-button.yaml b/configuration/automations/computer-button.yaml index 2cdb425..af35614 100644 --- a/configuration/automations/computer-button.yaml +++ b/configuration/automations/computer-button.yaml @@ -23,7 +23,7 @@ entity_id: input_boolean.sleep_mode state: 'off' sequence: - - service: light.toggle + - service: light.turn_on entity_id: light.desk_lightbar data: brightness_pct: 100 @@ -69,7 +69,7 @@ entity_id: input_boolean.sleep_mode state: 'off' sequence: - - service: light.toggle + - service: light.turn_on entity_id: light.tv_lights data: brightness_pct: 100 diff --git a/configuration/automations/hallway-motion.yaml b/configuration/automations/hallway-motion.yaml index e02e3a2..6bbfbce 100644 --- a/configuration/automations/hallway-motion.yaml +++ b/configuration/automations/hallway-motion.yaml @@ -29,7 +29,7 @@ entity_id: input_boolean.sleep_mode state: 'off' sequence: - - service: light.toggle + - service: light.turn_on entity_id: light.hallway_lightstrip data: brightness_pct: 100 diff --git a/configuration/automations/kitchen-button.yaml b/configuration/automations/kitchen-button.yaml index 62ac1a2..3595db6 100644 --- a/configuration/automations/kitchen-button.yaml +++ b/configuration/automations/kitchen-button.yaml @@ -32,7 +32,7 @@ entity_id: input_boolean.sleep_mode state: 'off' sequence: - - service: light.toggle + - service: light.turn_on entity_id: light.kitchen_lights data: brightness_pct: 100 @@ -156,7 +156,7 @@ entity_id: input_boolean.sleep_mode state: 'off' sequence: - - service: light.toggle + - service: light.turn_on entity_id: light.kitchen_sink_lighstrip data: brightness_pct: 100 @@ -208,7 +208,7 @@ entity_id: input_boolean.sleep_mode state: 'off' sequence: - - service: light.toggle + - service: light.turn_on entity_id: light.kitchen_lights data: brightness_pct: 100 diff --git a/configuration/automations/kitchen-motion.yaml b/configuration/automations/kitchen-motion.yaml index cb9c273..b7fc072 100644 --- a/configuration/automations/kitchen-motion.yaml +++ b/configuration/automations/kitchen-motion.yaml @@ -32,7 +32,7 @@ entity_id: input_boolean.sleep_mode state: 'off' sequence: - - service: light.toggle + - service: light.turn_on entity_id: light.kitchen_lights data: brightness_pct: 100