-
Notifications
You must be signed in to change notification settings - Fork 5
/
scripts.yaml
executable file
·79 lines (78 loc) · 1.94 KB
/
scripts.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
apagaluces:
alias: 'Apagar luces'
sequence:
- service: light.turn_off
data:
entity_id: group.all_lights
transition: 30
timed_lamp:
alias: 'Enciende la lampara del Salon y pone el temporizador'
sequence:
# Cancel ev. old timers
- service: script.turn_off
data:
entity_id: script.timer_off
- service: light.turn_on
data:
entity_id: light.mueble
brightness: 150
rgb_color: [254, 254, 254]
color_temp: 154
transition: 2
- service: light.turn_on
data:
entity_id: light.tiraled_2_0
brightness: 150
rgb_color: [254, 254, 254]
# Set new timer
- service: script.turn_on
data:
entity_id: script.timer_off
timer_off:
alias: 'Apaga la lampara del salon despues de 1 minuto'
sequence:
- delay:
minutes: 1
- service: light.turn_off
data:
entity_id: light.mueble
transition: 10
- service: light.turn_off
data:
entity_id: light.tiraled_2_0
buscagente:
alias: 'Buscando gente que entre/salga'
sequence:
- service: shell_command.busca_gente
- delay:
minutes: 1
- service: shell_command.busca_gente
- delay:
minutes: 3
- service: shell_command.busca_gente
- delay:
minutes: 5
- service: shell_command.busca_gente
- delay:
minutes: 5
- service: shell_command.busca_gente
# lampcuartotemporizada:
# alias: 'Luz cuarto temporizada'
# sequence:
# - service: script.turn_off
# data:
# entity_id: script.timercuarto_off
# - service: scene.turn_on
# data:
# entity_id: scene.SubeLucesCuarto
# - service: script.turn_on
# data:
# entity_id: script.timercuarto_off
# timercuarto_off:
# alias: 'Baja Luces del cuarto'
# sequence:
# - delay:
# minutes: 1
# - service: scene.turn_on
# data:
# entity_id: scene.BajaLucesCuarto