-
Notifications
You must be signed in to change notification settings - Fork 0
/
light-limiter.yaml
34 lines (33 loc) · 1.05 KB
/
light-limiter.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
blueprint:
name: Light Limiter
description: Introducing the Light Limiter - the clever automation that keeps your lights in check by limiting their on-time to a reasonable duration. With Light Limiter, you'll never have to worry about leaving your lights on for too long and wasting energy. It's like having a personal timekeeper for your lights!
domain: automation
input:
garage_lights:
name: Garage Lights
description: The entity ID of the garage lights to control
selector:
entity:
domain: light
timer_duration:
name: Timer Duration
description: The duration in minutes for the timer to run
default: 15
selector:
number:
min: 1
max: 60
step: 1
mode: slider
source_url: https://www.example.com/blueprints/garage_lights_timer.yaml
mode: single
trigger:
platform: state
entity_id: !input garage_lights
to: "on"
condition: []
action:
- delay:
minutes: !input timer_duration
- service: light.turn_off
entity_id: !input garage_lights