Updated the Living Room Remote action stuff - IOS - The new way of doing things.. much easier.
This commit is contained in:
parent
5c020091a8
commit
148da39636
|
@ -1,7 +1,7 @@
|
||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
# @CCOSTAN
|
# @CCOSTAN
|
||||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||||
# NRoku Related Functions - https://amzn.to/2Ctp8cr
|
# Roku Related Functions - https://amzn.to/2Ctp8cr
|
||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
|
|
||||||
input_boolean:
|
input_boolean:
|
||||||
|
@ -10,24 +10,6 @@ input_boolean:
|
||||||
initial: off
|
initial: off
|
||||||
icon: mdi:remote
|
icon: mdi:remote
|
||||||
|
|
||||||
ios:
|
|
||||||
push:
|
|
||||||
categories:
|
|
||||||
- name: RemoteLR
|
|
||||||
identifier: 'REMOTELR'
|
|
||||||
actions:
|
|
||||||
- identifier: 'LR_REMOTE_FOUND'
|
|
||||||
title: 'Remote Found'
|
|
||||||
activationMode: 'background'
|
|
||||||
authenticationRequired: no
|
|
||||||
destructive: no
|
|
||||||
|
|
||||||
- identifier: 'LR_REMOTE_NOT_FOUND'
|
|
||||||
title: 'Not Yet'
|
|
||||||
activationMode: 'background'
|
|
||||||
authenticationRequired: no
|
|
||||||
destructive: no
|
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
### Automations
|
### Automations
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
@ -41,9 +23,9 @@ automation:
|
||||||
to: 'on'
|
to: 'on'
|
||||||
|
|
||||||
- platform: event
|
- platform: event
|
||||||
event_type: ios.notification_action_fired
|
event_type: mobile_app_notification_action
|
||||||
event_data:
|
event_data:
|
||||||
actionName: LR_REMOTE_NOT_FOUND
|
action: LR_REMOTE_NOT_FOUND
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: remote.send_command
|
- service: remote.send_command
|
||||||
|
@ -51,13 +33,23 @@ automation:
|
||||||
data:
|
data:
|
||||||
command: find_remote
|
command: find_remote
|
||||||
|
|
||||||
- service: script.notify_engine
|
- service: notify.mobile_ios_family
|
||||||
data:
|
data:
|
||||||
title: 'Living Room Remote'
|
title: Living Room Remote Finder
|
||||||
value1: 'Find Remote'
|
message: Have you found the Remote?
|
||||||
ios_category: "REMOTELR"
|
data:
|
||||||
who: "family"
|
actions:
|
||||||
apns_id: 'RemoteLR'
|
- 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
|
- service: input_boolean.turn_off
|
||||||
entity_id: input_boolean.living_room_remote_finder
|
entity_id: input_boolean.living_room_remote_finder
|
||||||
|
@ -66,9 +58,9 @@ automation:
|
||||||
id: 1f295bb8-ROKU-4b22-8f75-9fe079b295a8
|
id: 1f295bb8-ROKU-4b22-8f75-9fe079b295a8
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: ios.notification_action_fired
|
event_type: mobile_app_notification_action
|
||||||
event_data:
|
event_data:
|
||||||
actionName: LR_REMOTE_FOUND
|
action: LR_REMOTE_FOUND
|
||||||
action:
|
action:
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
entity_id: input_boolean.living_room_remote_finder
|
entity_id: input_boolean.living_room_remote_finder
|
||||||
|
|
Loading…
Reference in New Issue