2020-07-29 00:38:39 +00:00
|
|
|
#-------------------------------------------
|
|
|
|
# @CCOSTAN
|
|
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
2023-07-20 04:05:48 +00:00
|
|
|
# Roku Related Functions - https://amzn.to/2Ctp8cr
|
2020-07-29 00:38:39 +00:00
|
|
|
#-------------------------------------------
|
|
|
|
|
|
|
|
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
|
2023-07-20 04:05:48 +00:00
|
|
|
event_type: mobile_app_notification_action
|
2020-07-29 00:38:39 +00:00
|
|
|
event_data:
|
2023-07-20 04:05:48 +00:00
|
|
|
action: LR_REMOTE_NOT_FOUND
|
2020-07-29 00:38:39 +00:00
|
|
|
|
|
|
|
action:
|
|
|
|
- service: remote.send_command
|
|
|
|
entity_id: remote.living_room_ultra
|
|
|
|
data:
|
|
|
|
command: find_remote
|
|
|
|
|
2024-10-18 22:08:06 +00:00
|
|
|
- service: notify.ios_family
|
2020-09-26 14:52:45 +00:00
|
|
|
data:
|
2023-07-20 04:05:48 +00:00
|
|
|
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
|
2020-07-29 00:38:39 +00:00
|
|
|
|
|
|
|
- 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
|
2023-07-20 04:05:48 +00:00
|
|
|
event_type: mobile_app_notification_action
|
2020-07-29 00:38:39 +00:00
|
|
|
event_data:
|
2023-07-20 04:05:48 +00:00
|
|
|
action: LR_REMOTE_FOUND
|
2020-07-29 00:38:39 +00:00
|
|
|
action:
|
|
|
|
- service: input_boolean.turn_off
|
|
|
|
entity_id: input_boolean.living_room_remote_finder
|
|
|
|
|
|
|
|
- service: script.notify_engine
|
2020-09-26 14:52:45 +00:00
|
|
|
data:
|
2020-07-29 00:38:39 +00:00
|
|
|
title: 'Living Room Remote'
|
|
|
|
value1: 'Remote has been found.'
|
|
|
|
who: "family"
|
2023-11-17 22:16:41 +00:00
|
|
|
group: 'RemoteLR'
|