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 +```