forked from brianjking/ha-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scripts.yaml
88 lines (75 loc) · 2.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
camera_thomas_bed:
sequence:
- service: shell_command.thomas_camera_bed
camera_thomas_floor:
sequence:
- service: shell_command.thomas_camera_floor
camera_thomas_door:
sequence:
- service: shell_command.thomas_camera_door
camera_thomas_reboot:
sequence:
- service: shell_command.thomas_camera_reboot
hall_camera_enable_detection:
sequence:
- service: shell_command.hall_camera_enable_detection
hall_camera_disable_detection:
sequence:
- service: shell_command.hall_camera_disable_detection
landing_camera_enable_detection:
sequence:
- service: shell_command.landing_camera_enable_detection
landing_camera_disable_detection:
sequence:
- service: shell_command.landing_camera_disable_detection
notify_of_low_temp:
sequence:
- service: notify.ios_gregs_iphone_8
data_template:
title: 'Temperature Warning'
message: 'Outside temperature is below 0c ({{ states.sensor.dark_sky_apparent_temperature.state }}{{ states.sensor.dark_sky_apparent_temperature.attributes.unit_of_measurement }})'
- service: notify.ios_lynette_iphone
data_template:
title: 'Temperature Warning'
message: 'Outside temperature is below 0c ({{ states.sensor.dark_sky_apparent_temperature.state }}{{ states.sensor.dark_sky_apparent_temperature.attributes.unit_of_measurement }})'
enable_camera_detection:
sequence:
- service: script.hall_camera_enable_detection
- service: script.landing_camera_enable_detection
disable_camera_detection:
sequence:
- service: script.hall_camera_disable_detection
- service: script.landing_camera_disable_detection
bedroom_remote_control:
sequence:
bedroom_tv_volume_up:
sequence:
- service: mqtt.publish
data_template:
payload: '{"volume":"up"}'
topic: 'home/bedroom/tv'
bedroom_tv_volume_down:
sequence:
- service: mqtt.publish
data_template:
payload: '{"volume":"down"}'
topic: 'home/bedroom/tv'
bedroom_tv_power:
sequence:
- service: mqtt.publish
data_template:
payload: '{"power":"on"}'
topic: 'home/bedroom/tv'
bedroom_tv_playpause:
sequence:
- service: media_player.media_play_pause
data:
entity_id: media_player.bedroom
living_room_remote_control:
sequence:
living_room_tv_volume_up:
sequence:
living_room_tv_volume_down:
sequence:
living_room_tv_power:
sequence: