forked from matt8707/hass-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scripts.yaml
77 lines (77 loc) · 1.8 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
toggle_vacuum:
alias: Toggle Vacuum on or off
sequence:
- if:
- alias: If Vacuum is docked
condition: state
entity_id: vacuum.vacuum
state: docked
then:
- alias: Then start cleaning!
service: vacuum.start
data: {}
target:
entity_id: vacuum.vacuum
else:
- alias: Else return to dock
service: vacuum.return_to_base
data: {}
target:
entity_id: vacuum.vacuum
- service: counter.increment
data: {}
target:
entity_id: counter.vacuum_counter
mode: single
icon: mdi:robot-vacuum
turn_on_office_ac:
alias: Turn on Office AC
sequence:
- service: remote.send_command
data:
device: office_ac
command: 'on'
target:
entity_id: remote.office_remote
mode: single
icon: mdi:air-filter
turn_off_office_ac:
alias: Turn off Office AC
sequence:
- service: remote.send_command
data:
device: office_ac
command: 'off'
target:
entity_id: remote.office_remote
mode: single
icon: mdi:air-filter
tts_google_speakers:
alias: TTS Google Speakers
sequence:
- service: tts.cloud_say
data:
entity_id: media_player.living_room_speaker
message: '{{ message }}'
- service: tts.cloud_say
data:
entity_id: media_player.office_speaker
message: '{{ message }}'
mode: single
icon: mdi:speaker-message
turn_off_electronics:
alias: Turn off electronics
sequence:
- device_id: 52155b80fed6c9e296e5d2a8118c0499
domain: climate
entity_id: climate.dining_room_ac
type: set_hvac_mode
hvac_mode: 'off'
alias: Turn off dining room AC
- device_id: 9830e6e77967529a266e9f3e8171c05e
domain: climate
entity_id: climate.living_room_ac
type: set_hvac_mode
hvac_mode: 'off'
alias: Turn off living room AC
mode: single