-
-
Notifications
You must be signed in to change notification settings - Fork 500
Expand file tree
/
Copy pathroku.yaml
More file actions
executable file
·75 lines (67 loc) · 2.34 KB
/
roku.yaml
File metadata and controls
executable file
·75 lines (67 loc) · 2.34 KB
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
#-------------------------------------------
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# Roku - Presence detection and remote finder.
#-------------------------------------------
######################################################################
## Roku media sensors and utility helpers. https://amzn.to/2Ctp8cr
######################################################################
input_boolean:
living_room_remote_finder:
name: "Living Room Remote Finder"
initial: off
icon: mdi:remote
##############################################################################
### Automations
##############################################################################
automation:
- alias: 'Find Roku Remote'
id: 2346efcd-e8a8-ROKU-b5b6-43e54a72a95f
mode: queued
trigger:
- platform: state
entity_id: input_boolean.living_room_remote_finder
to: 'on'
- platform: event
event_type: mobile_app_notification_action
event_data:
action: LR_REMOTE_NOT_FOUND
action:
- service: remote.send_command
entity_id: remote.living_room_ultra
data:
command: find_remote
- service: notify.ios_family
data:
title: Living Room Remote Finder
message: Have you found the Remote?
data:
actions:
- action: LR_REMOTE_FOUND
title: Remote Found
activationMode: background
authenticationRequired: false
destructive: false
- action: LR_REMOTE_NOT_FOUND
title: Not Yet
activationMode: background
authenticationRequired: false
destructive: true
- service: input_boolean.turn_off
entity_id: input_boolean.living_room_remote_finder
- alias: "Living Room Remote Found"
id: 1f295bb8-ROKU-4b22-8f75-9fe079b295a8
trigger:
platform: event
event_type: mobile_app_notification_action
event_data:
action: LR_REMOTE_FOUND
action:
- service: input_boolean.turn_off
entity_id: input_boolean.living_room_remote_finder
- service: script.notify_engine
data:
title: 'Living Room Remote'
value1: 'Remote has been found.'
who: "family"
group: 'RemoteLR'