mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
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:
parent
316f39c0c2
commit
6353fe3b7f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user