blob: e5538b7f687a287bdde29547532999444be278b2 (
plain)
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
|
blueprint:
name: turn_off_lights
description: Turns off a group of lights
domain: script
input:
lights:
name: Affected class of lights
description: "Which class of lights to turn off: all, bedroom, living, hall"
default: "all"
variables:
name: !input lights
std: "switch.lights_{{ name }}"
manual: "switch.lights_{{ name }}_manual"
mode: single
sequence:
- service: switch.turn_off
target:
entity_id: "{{ std, manual }}"
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: switch.turn_on
target:
entity_id: "{{ [ manual ] }}"
|