-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmobile_app_android_dnd.yaml
39 lines (36 loc) · 1.17 KB
/
mobile_app_android_dnd.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
blueprint:
name: Mobile App Android Notification Command Do Not Disturb
description: >-
Android Mobile App supports several notification command option
these blueprints provide any easy way to use these features without complex setup.
domain: script
source_url: https://github.com/stboch/homeassistant-blueprints/blob/main/mobile_app_android_dnd.yaml
input:
notify_device:
name: Device to notify
description: Device needs to run the official Home Assistant app to receive notifications.
selector:
device:
integration: mobile_app
command_choice:
name: Command Choice
description: Choose which Do Not Disturb Method to use
selector:
select:
options:
- alarms_only
- priority_only
- total_silence
- "off"
mode: restart
variables:
## These are used to quickly change a blueprint to support every different notification commands
title: !input command_choice
message: "command_dnd"
sequence:
- alias: "Send notification"
domain: mobile_app
type: notify
device_id: !input notify_device
title: '{{ title }}'
message: '{{ message }}'