-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
140 lines (131 loc) · 4.48 KB
/
template.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
- select:
- name: "Pixel 8 Pro Ringer Mode Control"
unique_id: pixel_ringer_mode
icon: >
{% set state = states('sensor.pixel8pro_ringer_mode') %}
{% if state == 'normal' %} mdi:volume-high
{% elif state == 'vibrate' %} mdi:volume-vibrate
{% else %} mdi:volume-off
{% endif %}
state: "{{ states('sensor.pixel8pro_ringer_mode') }}"
select_option:
- action: notify.mobile_app_pixel8pro
data:
message: command_ringer_mode
data:
command: "{{ option }}"
options: "{{ ['normal','vibrate','silent'] }}"
availability: "{{ has_value('sensor.pixel8pro_ringer_mode') }}"
- button:
- name: "Pixel 8 Pro Update Sensors"
unique_id: pixel_update_sensors
icon: mdi:cellphone-arrow-down-variant
press:
- action: notify.mobile_app_pixel8pro
data:
message: command_update_sensors
- name: "Pixel 8 Pro Update Location"
unique_id: pixel_update_location
icon: mdi:map-marker-down
press:
- action: notify.mobile_app_pixel8pro
data:
message: request_location_update
- name: "Pixel 8 Pro Open Mobile App"
unique_id: pixel_open_mobile_app
icon: mdi:home-assistant
press:
- action: notify.mobile_app_pixel8pro
data:
message: command_webview
- number:
- name: "Pixel 8 Pro Alarm Volume Control"
unique_id: pixel_alarm_volume
icon: mdi:alarm
state: "{{ states('sensor.pixel8pro_volume_level_alarm')|int(0) }}"
step: 1
min: 0
max: 7
set_value:
- action: notify.mobile_app_pixel8pro
data:
message: command_volume_level
data:
media_stream: alarm_stream
command: "{{ value|int }}"
availability: "{{ has_value('sensor.pixel8pro_volume_level_alarm') }}"
- name: "Pixel 8 Pro Call Volume Control"
unique_id: pixel_call_volume
icon: mdi:phone
state: "{{ states('sensor.pixel8pro_volume_level_call')|int(0) }}"
step: 1
min: 0
max: 15
set_value:
- action: notify.mobile_app_pixel8pro
data:
message: command_volume_level
data:
media_stream: call_stream
command: "{{ value|int }}"
availability: "{{ has_value('sensor.pixel8pro_volume_level_call') }}"
- name: "Pixel 8 Pro Media Volume Control"
unique_id: pixel_media_volume
icon: mdi:music-note
state: "{{ states('sensor.pixel8pro_volume_level_music')|int(0) }}"
step: 1
min: 0
max: 25
set_value:
- action: notify.mobile_app_pixel8pro
data:
message: command_volume_level
data:
media_stream: music_stream
command: "{{ value|int }}"
availability: "{{ has_value('sensor.pixel8pro_volume_level_music') }}"
- name: "Pixel 8 Pro Notification Volume Control"
unique_id: pixel_notification_volume
icon: mdi:bell
state: "{{ states('sensor.pixel8pro_volume_level_notification')|int(0) }}"
step: 1
min: 0
max: 7
set_value:
- action: notify.mobile_app_pixel8pro
data:
message: command_volume_level
data:
media_stream: notification_stream
command: "{{ value|int }}"
availability: "{{ has_value('sensor.pixel8pro_volume_level_notification') }}"
- name: "Pixel 8 Pro Ringer Volume Control"
unique_id: pixel_ringer_volume
icon: mdi:phone-ring
state: "{{ states('sensor.pixel8pro_volume_level_ringer')|int(0) }}"
step: 1
min: 0
max: 7
set_value:
- action: notify.mobile_app_pixel8pro
data:
message: command_volume_level
data:
media_stream: ring_stream
command: "{{ value|int }}"
availability: "{{ has_value('sensor.pixel8pro_volume_level_ringer') }}"
- name: "Pixel 8 Pro System Volume Control"
unique_id: pixel_system_volume
icon: mdi:volume-medium
state: "{{ states('sensor.pixel8pro_volume_level_system')|int(0) }}"
step: 1
min: 0
max: 7
set_value:
- action: notify.mobile_app_pixel8pro
data:
message: command_volume_level
data:
media_stream: system_stream
command: "{{ value|int }}"
availability: "{{ has_value('sensor.pixel8pro_volume_level_system') }}"