Update turn_on_light_for_10_minutes_when_motion_detected.markd… (#10957)

Changed to the proper light service for controlling lights
This commit is contained in:
a-r-j-a-n 2019-10-23 20:12:19 +02:00 committed by Franck Nijhof
parent 316f39c0c2
commit 6353fe3b7f

View File

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