Android TV Remote - App Links/Deep Linking - Guide

Hello, thanks for this thread it’s really usefull.

I’m starting HA and i’m a bit lost as I feel I have the commands but can’t find where to actually put them. I was able to test them under dev tools but how to actually make a button on dashboard out of this?

Seems trivial to most of you guys, but for me as a noob it’s kind of the end of the world at the moment ^^’ (been going from outdated tutorial to outdated tutorial for hours now so any help is appreciated)

few different ways to do this but maybe start by looking at the inbuilt Button Card (Button card - Home Assistant) and the Tap or Hold Action options in there…if you have got it working in Developer Tools then you’ll not have much issue getting the Action into a pressable button…

1 Like

Thanks for you help (I ended up going through that in the meantime, i’ll play with it.

This works, but having looked at the AndroidManifest.xml for both apps and not finding any traces of these - how did you figure this out?

Thank you!

can someone help find the deeplink for the sooka app (malaysian app with sports etc)
here is the manifest xml link
https://justpaste.it/fgbud
i think its a bit like the nowtv situation maybe?i think it might be com.irdeto.launcher as that seems to do something, but i cant get it to launch channels or anything useful

A bit late, but I figured out DirecTV Stream.

See Directv Stream Android TV - #3 by kbrown01

I can load things up to Github if people want it. But the technique could be put into a prper REST sensor to have all deeplinks (and images) for all DirecTV channels.

Works perfect:

With that widget you can change channels inside the DirecTV App on the Firestick

Guys, I need your help, there’s this app that I use a lot but I couldn’t find the url, could you help me? Thanks!

site: O melhor dos esportes e do entretenimento - SKY+

app: br.com.skymais

I didn’t see this one on here, and it’s no wonder because it’s a unique schema: ESPN / ESPN+
sportscenter://x-callback-url/

Full example (note that it opens the app, but does NOT play the media ID):

alias: Launch ESPN
action: media_player.play_media
target:
  entity_id: media_player.android_remote
data:
  media_content_type: url
  media_content_id: >-
    sportscenter://x-callback-url/watch/player/_/id/882d26c2-fa8b-4120-a80d-bb89e1bde3fd
enabled: true

nl.streamgroup.vlaanderen

Hi there

Is there any solution for unifi protect?

unifi-protect://

is not working

For lampa it is: lampa://top.rootu.lampa

Hi!
I’m trying to get deep linking to work for RÚV Icelandic TV app (is.ruv.flutterspilari).
The relevant parts of the AndroidManifest.xml are here:

<application android:allowBackup="false" android:appComponentFactory="androidx.core.app.CoreComponentFactory" android:enableOnBackInvokedCallback="true" android:extractNativeLibs="false" android:fullBackupCon
tent="false" android:icon="@mipmap/ic_launcher" android:label="RÚV" android:theme="@style/NormalTheme" android:usesCleartextTraffic="true">
        <activity android:allowBackup="false" android:configChanges="locale|keyboard|keyboardHidden|orientation|screenLayout|screenSize|density|layoutDirection|fontScale" android:exported="true" android:hardwareA
ccelerated="true" android:launchMode="singleTop" android:name="is.ruv.flutter_spilari.MainActivity" android:supportsPictureInPicture="true" android:theme="@style/NormalTheme" android:windowSoftInputMode="adjustRe
size">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
            <intent-filter android:autoVerify="true">
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data android:host="www.ruv.is" android:pathPrefix="/sjonvarp" android:scheme="https"/>
                <data android:host="www.ruv.is" android:pathPrefix="/utvarp" android:scheme="https"/>
            </intent-filter>
        </activity>

If I try https://www.ruv.is/sjonvarp/1 or https://www.ruv.is/sjonvarp the TV will simply open the web browser. Should that not work? Is there something wrong with the XML specifications?

For Tidal for me works: com.aspiro.tidal

Hello, I have a question: does this integration have the ability to run the Orange TV application?

Seems this is not working anymore ?

  - target:
      entity_id: remote.65oled808_12
    data:
      activity: vrtnu://vrtnu
    action: remote.turn_on

It’s working for goplay, vtm, spotify,…

Today I got a tv box from Odido (NL).

I’m able to open apps like YouTube, Jellyfin, and F1TV.
However, I’m unable to open the default app that is used to watch linear tv.

In the media player attributes, I see:

app_id: com.tcuilauncher.tv.nl

So if I try:

action: media_player.play_media
target:
  entity_id: media_player.4k_tv_box_2
data:
  media:
    media_content_type: app
    media_content_id: com.tcuilauncher.tv.nl

I get item not found.

For the other mentioned apps, it works fine, eg:

action: media_player.play_media
target:
  entity_id: media_player.4k_tv_box_2
data:
  media:
    media_content_type: app
    media_content_id: com.google.android.youtube.tv

When set to linear tv, switching channels is working fine:

action: media_player.play_media
target:
  entity_id: media_player.4k_tv_box_2
data:
  media:
    media_content_type: channel
    media_content_id: 1

If anyone has an idea how to open the default app, that would be much appreciated!

this link will work too for VRT Max
https://www.vrt.be/vrtmax/kijk/

1 Like

I have all of my apps working except for 9Now, which is a catch-up TV service in Australia. If anyone has managed to get it working, please post the details.