Add automation to turn off lamp at night
This commit is contained in:
parent
e85be673c9
commit
2c500b43a3
@ -76,3 +76,20 @@
|
|||||||
- light.bedroom_lights
|
- light.bedroom_lights
|
||||||
- light.bed_lightstrip
|
- light.bed_lightstrip
|
||||||
- light.bed_lamps
|
- light.bed_lamps
|
||||||
|
|
||||||
|
- id: bedroom_lamp_off_at_night
|
||||||
|
description: '[Bedroom] Turn off lamps at night'
|
||||||
|
mode: single
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id:
|
||||||
|
- media_player.bedroom_tv
|
||||||
|
to: "off"
|
||||||
|
for:
|
||||||
|
hours: 0
|
||||||
|
minutes: 5
|
||||||
|
seconds: 0
|
||||||
|
action:
|
||||||
|
- service: light.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: light.bed_lamps
|
||||||
|
Loading…
Reference in New Issue
Block a user