1
0

Add automation to turn off lamp at night

This commit is contained in:
Przemek Grondek 2024-01-07 02:17:40 +01:00
parent e85be673c9
commit 2c500b43a3

View File

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