From 148da39636ea541ea3fcc0f21d19554c698c5bc0 Mon Sep 17 00:00:00 2001 From: ccostan Date: Thu, 20 Jul 2023 00:05:48 -0400 Subject: [PATCH] Updated the Living Room Remote action stuff - IOS - The new way of doing things.. much easier. --- config/packages/roku.yaml | 50 ++++++++++++++++----------------------- 1 file changed, 21 insertions(+), 29 deletions(-) diff --git a/config/packages/roku.yaml b/config/packages/roku.yaml index 9cfe6d26..7f319fd8 100755 --- a/config/packages/roku.yaml +++ b/config/packages/roku.yaml @@ -1,7 +1,7 @@ #------------------------------------------- # @CCOSTAN # Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig -# NRoku Related Functions - https://amzn.to/2Ctp8cr +# Roku Related Functions - https://amzn.to/2Ctp8cr #------------------------------------------- input_boolean: @@ -10,24 +10,6 @@ input_boolean: initial: off 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 ############################################################################## @@ -41,9 +23,9 @@ automation: to: 'on' - platform: event - event_type: ios.notification_action_fired + event_type: mobile_app_notification_action event_data: - actionName: LR_REMOTE_NOT_FOUND + action: LR_REMOTE_NOT_FOUND action: - service: remote.send_command @@ -51,13 +33,23 @@ automation: data: command: find_remote - - service: script.notify_engine + - service: notify.mobile_ios_family data: - title: 'Living Room Remote' - value1: 'Find Remote' - ios_category: "REMOTELR" - who: "family" - apns_id: 'RemoteLR' + 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 @@ -66,9 +58,9 @@ automation: id: 1f295bb8-ROKU-4b22-8f75-9fe079b295a8 trigger: platform: event - event_type: ios.notification_action_fired + event_type: mobile_app_notification_action event_data: - actionName: LR_REMOTE_FOUND + action: LR_REMOTE_FOUND action: - service: input_boolean.turn_off entity_id: input_boolean.living_room_remote_finder