mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +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
|
entity_id: sensor.motion_sensor
|
||||||
to: 'on'
|
to: 'on'
|
||||||
action:
|
action:
|
||||||
service: homeassistant.turn_on
|
service: light.turn_on
|
||||||
entity_id: light.kitchen_light
|
entity_id: light.kitchen_light
|
||||||
|
|
||||||
- alias: Turn off kitchen light 10 minutes after last movement
|
- alias: Turn off kitchen light 10 minutes after last movement
|
||||||
@ -27,7 +27,7 @@ automation:
|
|||||||
for:
|
for:
|
||||||
minutes: 10
|
minutes: 10
|
||||||
action:
|
action:
|
||||||
service: homeassistant.turn_off
|
service: light.turn_off
|
||||||
entity_id: light.kitchen_light
|
entity_id: light.kitchen_light
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ automation:
|
|||||||
entity_id: sensor.motion_sensor, binary_sensor.front_door, binary_sensor.doorbell
|
entity_id: sensor.motion_sensor, binary_sensor.front_door, binary_sensor.doorbell
|
||||||
to: 'on'
|
to: 'on'
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.hallway_0
|
- light.hallway_0
|
||||||
@ -57,7 +57,7 @@ automation:
|
|||||||
event_data:
|
event_data:
|
||||||
entity_id: timer.hallway
|
entity_id: timer.hallway
|
||||||
action:
|
action:
|
||||||
service: homeassistant.turn_off
|
service: light.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.hallway_0
|
- 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
|
entity_id: group.office_lights
|
||||||
data:
|
data:
|
||||||
transition: 160
|
transition: 160
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user