forked from Yonsm/.homeassistant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripts.yaml
More file actions
47 lines (45 loc) · 1.23 KB
/
scripts.yaml
File metadata and controls
47 lines (45 loc) · 1.23 KB
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
#
turn_on_projector:
alias: 打开投影仪
sequence:
- service: switch.turn_on
entity_id: switch.benq
- service: switch.turn_on
entity_id: switch.himedia
- service: cover.close_cover
entity_id: cover.study_cover
- service: fan.turn_on
entity_id: fan.purifier
- service: fan.set_speed
data:
entity_id: fan.purifier
speed: auto
- service: switch.turn_on
entity_id: switch.speaker
- service: light.turn_off
entity_id: light.ceiling_light
- service: light.turn_off
entity_id: light.study_light
- condition: numeric_state
entity_id: sensor.study_temperature
above: 28
- service: switch.turn_on
entity_id: switch.mitsubishi
#
turn_off_projector:
alias: 关闭投影仪
sequence:
- service: switch.turn_off
entity_id: switch.benq
- service: switch.turn_off
entity_id: switch.himedia
- service: cover.open_cover
entity_id: cover.study_cover
- service: switch.turn_off
entity_id: switch.benq
- service: switch.turn_off
entity_id: switch.speaker
- service_template: "{% if is_state('sun.sun', 'below_horizon') %}light.turn_on{% else %}light.turn_off{% endif %}"
entity_id: light.study_light
- service: switch.turn_off
entity_id: switch.mitsubishi