From 6353fe3b7fe857ecae498ce4d02e52419b3ce8c7 Mon Sep 17 00:00:00 2001 From: a-r-j-a-n Date: Wed, 23 Oct 2019 20:12:19 +0200 Subject: [PATCH] =?UTF-8?q?Update=20turn=5Fon=5Flight=5Ffor=5F10=5Fminutes?= =?UTF-8?q?=5Fwhen=5Fmotion=5Fdetected.markd=E2=80=A6=20(#10957)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed to the proper light service for controlling lights --- ..._light_for_10_minutes_when_motion_detected.markdown | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/_cookbook/turn_on_light_for_10_minutes_when_motion_detected.markdown b/source/_cookbook/turn_on_light_for_10_minutes_when_motion_detected.markdown index 97a5c2b9bcb..4afb1e49785 100644 --- a/source/_cookbook/turn_on_light_for_10_minutes_when_motion_detected.markdown +++ b/source/_cookbook/turn_on_light_for_10_minutes_when_motion_detected.markdown @@ -16,7 +16,7 @@ automation: entity_id: sensor.motion_sensor to: 'on' action: - service: homeassistant.turn_on + service: light.turn_on entity_id: light.kitchen_light - alias: Turn off kitchen light 10 minutes after last movement @@ -27,7 +27,7 @@ automation: for: minutes: 10 action: - service: homeassistant.turn_off + service: light.turn_off entity_id: light.kitchen_light ``` @@ -41,7 +41,7 @@ automation: entity_id: sensor.motion_sensor, binary_sensor.front_door, binary_sensor.doorbell to: 'on' action: - - service: homeassistant.turn_on + - service: light.turn_on data: entity_id: - light.hallway_0 @@ -57,7 +57,7 @@ automation: event_data: entity_id: timer.hallway action: - service: homeassistant.turn_off + service: light.turn_off data: entity_id: - light.hallway_0 @@ -99,4 +99,4 @@ You can also restrict lights from turning on based on time of day and implement entity_id: group.office_lights data: transition: 160 -``` \ No newline at end of file +```