-
Notifications
You must be signed in to change notification settings - Fork 1
/
scripts.yaml
141 lines (126 loc) · 4.34 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
#################################################################
## Scripts
#################################################################
restart_cable_modem:
alias: "Restart Cable Modem"
sequence:
- service: homeassistant.turn_off
data:
entity_id: switch.cable_modem
- service: persistent_notification.create
data:
title: "Cable Modem Notification"
message: "The cable modem has been restarted at {{ as_timestamp(now()) | timestamp_custom('%-I:%M %p') }}."
- delay: "00:01:00"
- service: homeassistant.turn_on
data:
entity_id: switch.cable_modem
play_nintendo_sound:
alias: "Plays Nintendo Sound"
sequence:
- service: media_player.play_media
data:
entity_id: media_player.basement_display
# Selects a random sound
media_content_id: >-
{{ ['http://192.168.1.31:8123/local/media/nintendo/nintendo_coin.mp3',
'http://192.168.1.31:8123/local/media/nintendo/super_mario_bros_1up.mp3',
'http://192.168.1.31:8123/local/media/nintendo/luigi_here_we_go.mp3',
'http://192.168.1.31:8123/local/media/nintendo/duck_hunt.mp3'] | random }}
media_content_type: "music"
play_playstation_sound:
alias: "Plays PlayStation Sound"
sequence:
- service: media_player.play_media
data:
entity_id: media_player.basement_display
# Selects a random sound
media_content_id: >-
{{ ['http://192.168.1.31:8123/local/media/playstation/playstation_chime.mp3',
'http://192.168.1.31:8123/local/media/playstation/playstation_2.mp3',
'http://192.168.1.31:8123/local/media/playstation/playstation_3_startup_sound.mp3',
'http://192.168.1.31:8123/local/media/playstation/playstation_jingle.mp3',
'http://192.168.1.31:8123/local/media/playstation/chocobo.mp3'] | random }}
media_content_type: "music"
# launch_basement_chromecast_activity:
# alias: "Launch Basement Chromecast Activity"
# sequence:
# - service: remote.turn_on
# entity_id: remote.basement
# data:
# activity: "Google Chromecast"
# launch_basement_shield_google_cast:
# alias: "Launch Basement Shield Google Cast via Basement Display"
# sequence:
# - service: remote.turn_on
# entity_id: remote.basement
# data:
# activity: 'Shield TV'
turn_on_lg_webos_tv:
alias: "Turns on LG webOS TV"
sequence:
- service: wake_on_lane.send_magic_packet
data:
mac: 64:cb:e9:6d:b4:98
turn_off_basement_tv:
alias: "Turns off Basement TV"
sequence:
- service: remote.turn_off
entity_id: remote.basement
turn_off_basement_ambient_lights:
alias: "Turn off Basement Ambient Lights"
sequence:
- service: homeassistant.turn_off
entity_id:
- light.basement_tv_stand
- light.basement_table_lamp
- light.basement_floor_lamps
- light.basement_cabinet
# run_speedtest:
# alias: Run Speedtest
# sequence:
# - service: speedtestdotnet.speedtest
# basement_chromecast_activity_notification:
# alias: "Basement Chromecast Activity Notification"
# sequence:
# - service: tts.google_translate_say
# entity_id: media_player.basement_display
# data:
# message: "Please select the 'Google Chromecast' activity on the remote control."
activate_house_alarm:
sequence:
- service: media_player.play_media
data:
entity_id: media_player.google_nest_speakers
media_content_id: http://192.168.1.31:8123/local/media/alarm_house.mp3
media_content_type: "music"
# - service: scene.turn_on
# entity_id: scene.alarm
deactivate_house_alarm:
sequence:
- service: media_player.turn_off
data:
entity_id: media_player.google_nest_speakers
# - service: scene.turn_on
# entity_id: scene.stop
master_bedroom_ceiling_fan_low:
sequence:
- service: fan.set_percentage
target:
entity_id: fan.master_bedroom_ceiling_fan
data:
percentage: 33
master_bedroom_ceiling_fan_medium:
sequence:
- service: fan.set_percentage
target:
entity_id: fan.master_bedroom_ceiling_fan
data:
percentage: 66
master_bedroom_ceiling_fan_high:
sequence:
- service: fan.set_percentage
target:
entity_id: fan.master_bedroom_ceiling_fan
data:
percentage: 100