Skip to content

Instantly share code, notes, and snippets.

@thiagoalmeidasa
Forked from mcfrojd/Shield_Intents.MD
Created April 26, 2023 15:38
Show Gist options
  • Save thiagoalmeidasa/0ed1e508832d4b212bd2859de52d659b to your computer and use it in GitHub Desktop.
Save thiagoalmeidasa/0ed1e508832d4b212bd2859de52d659b to your computer and use it in GitHub Desktop.

Revisions

  1. @mcfrojd mcfrojd revised this gist Mar 6, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    **Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr @Finsterclown**
    ___
    ## Start apps on your android device (in the examples below, my Nvidia Shield TV) from Home Assistant
    ![alt text](https://img.mcurl.eu/images/2021/03/06/services.jpg "Insert code on service tab")
    ![alt text](https://img.mcurl.eu/images/2021/03/06/service.jpg "Insert code on service tab")

    **Starts Youtube App**
    ```
  2. @mcfrojd mcfrojd revised this gist Mar 6, 2021. No changes.
  3. @mcfrojd mcfrojd revised this gist Mar 6, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    ## Latest Update 2021-03-06 : New image showing the new "Services" in Home Assistant and got some tips from the comments below.
    **Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr @Finsterclown**
    ___
    ## Start apps on your android device (in my examples my Nvidia Shield TV) from Home Assistant
    ## Start apps on your android device (in the examples below, my Nvidia Shield TV) from Home Assistant
    ![alt text](https://img.mcurl.eu/images/2021/03/06/services.jpg "Insert code on service tab")

    **Starts Youtube App**
  4. @mcfrojd mcfrojd revised this gist Mar 6, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    ## Latest Update 2021-03-06 : New image showing the new "Services" in Home Assistant and got some tips from the comments below.
    **Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr @Finsterclown**
    ___
    ## Start apps on your Shield from Home Assistant
    ## Start apps on your android device (in my examples my Nvidia Shield TV) from Home Assistant
    ![alt text](https://img.mcurl.eu/images/2021/03/06/services.jpg "Insert code on service tab")

    **Starts Youtube App**
  5. @mcfrojd mcfrojd revised this gist Mar 6, 2021. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    ## Latest Update 2021-02-15 : Markdown cleanup and added some tips from the comments below.
    **Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr**
    ## Latest Update 2021-03-06 : New image showing the new "Services" in Home Assistant and got some tips from the comments below.
    **Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr @Finsterclown**
    ___
    ## Start apps on your Shield from Home Assistant
    ![alt text](https://img.mcurl.eu/images/2021/03/06/services.jpg "Insert code on service tab")
  6. @mcfrojd mcfrojd revised this gist Mar 6, 2021. 1 changed file with 78 additions and 31 deletions.
    109 changes: 78 additions & 31 deletions Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -14,93 +14,126 @@ command: >-
    **Starts Kodi**
    ```
    entity_id: media_player.shield
    command: am start -a android.intent.action.VIEW -n org.xbmc.kodi/.Splash
    command: >-
    am start -a android.intent.action.VIEW -n
    org.xbmc.kodi/.Splash
    ```
    **Starts Twitch**
    ```
    entity_id: media_player.shield
    command: am start -a android.intent.action.VIEW -n tv.twitch.android.app/tv.twitch.android.apps.TwitchActivity
    command: >-
    am start -a android.intent.action.VIEW -n
    tv.twitch.android.app/tv.twitch.android.apps.TwitchActivity
    ```
    **Starts Netflix (Shows profiles if its the first start.)**
    ```
    entity_id: media_player.shield
    command: am start -a android.intent.action.VIEW -n android.intent.action.VIEW -d -n com.netflix.ninja/.MainActivity
    command: >-
    am start -a android.intent.action.VIEW -n
    android.intent.action.VIEW -d -n com.netflix.ninja/.MainActivity
    ```
    **Starts TV4 Play (swedish streaming)**
    ```
    entity_id: media_player.shield
    command: am start -a android.intent.action.VIEW -n se.tv4.tv4playtab/se.tv4.tv4play.startup.SplashActivity
    command: >-
    am start -a android.intent.action.VIEW -n
    se.tv4.tv4playtab/se.tv4.tv4play.startup.SplashActivity
    ```
    **Starts SVT Play (swedish streaming)**
    ```
    entity_id: media_player.shield
    command: am start -a android.intent.action.VIEW -n se.svt.android.svtplay/se.svt.svtplay.tv.ui.StartupActivity
    command: >-
    am start -a android.intent.action.VIEW -n
    se.svt.android.svtplay/se.svt.svtplay.tv.ui.StartupActivity
    ```
    **Starts C More (swedish streaming)**
    ```
    entity_id: media_player.shield
    command: am start -a android.intent.action.VIEW -n se.cmore.bonnier/.androidtv.splash.TvConfigurationActivity
    command: >-
    am start -a android.intent.action.VIEW -n
    se.cmore.bonnier/.androidtv.splash.TvConfigurationActivity
    ```
    **Starts ViaPlay (swedish streaming)**
    ```
    entity_id: media_player.shield
    command: am start -a android.intent.action.VIEW -n com.viaplay.android/.features.home.HomeActivity
    command: >-
    am start -a android.intent.action.VIEW -n
    com.viaplay.android/.features.home.HomeActivity
    ```
    ___
    ## Starts specific Twitch stream (If stream is live)
    ```
    entity_id: media_player.shield
    command: 'am start -a android.intent.action.VIEW -d twitch://stream/frenck'
    command: >-
    am start -a android.intent.action.VIEW -d
    twitch://stream/frenck
    ```
    ```
    entity_id: media_player.shield
    command: 'am start -a android.intent.action.VIEW -d twitch://stream/drzzs'
    command: >-
    am start -a android.intent.action.VIEW -d
    twitch://stream/drzzs
    ```
    ___
    ## KILL apps on your Shield from Home Assistant

    **Kills YOUTUBE App**
    ```
    entity_id: media_player.shield
    command: am force-stop com.google.android.youtube.tv
    command: >-
    am force-stop
    com.google.android.youtube.tv
    ```
    **Kills KODI App**
    ```
    entity_id: media_player.shield
    command: am force-stop org.xbmc.kodi
    command: >-
    am force-stop
    org.xbmc.kodi
    ```
    **Kills TWITCH App**
    ```
    entity_id: media_player.shield
    command: am force-stop tv.twitch.android.app
    command: >-
    am force-stop
    tv.twitch.android.app
    ```
    **Kills NETFLIX App**
    ```
    entity_id: media_player.shield
    command: am force-stop com.netflix.ninja
    command: >-
    am force-stop
    com.netflix.ninja
    ```
    **Kills SVT PLAY App**
    ```
    entity_id: media_player.shield
    command: am force-stop se.svt.android.svtplay
    command: >-
    am force-stop
    se.svt.android.svtplay
    ```
    **Kills TV4 PLAY App**
    ```
    entity_id: media_player.shield
    command: am force-stop se.tv4.tv4playtab
    command: >-
    am force-stop
    se.tv4.tv4playtab
    ```
    **Kills C MORE App**
    ```
    entity_id: media_player.shield
    command: am force-stop se.cmore.bonnier
    command: >-
    am force-stop
    se.cmore.bonnier
    ```
    ___
    ## Install apps on your Android Device from Home Assistant
    Not tested my self, but tips from *https://gist.github.com/JeffLIrion*
    ```
    entity_id: media_player.fire_tv_living_room
    command: pm install -r /sdcard/Download/something.apk
    command: >-
    pm install -r /sdcard/Download/something.apk
    ```
    ___
    ## Shield navigation and controlling
    @@ -126,73 +159,85 @@ ___
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.hulu.livingroomplus/.MainActivity
    am start -a android.intent.action.VIEW -n
    com.hulu.livingroomplus/.MainActivity
    ```
    **Starts Live Channels App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.google.android.tv/com.android.tv.MainActivity
    am start -a android.intent.action.VIEW -n
    com.google.android.tv/com.android.tv.MainActivity
    ```
    **Starts Amazon App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.amazon.amazonvideo.livingroom/com.amazon.ignition.IgnitionActivity
    am start -a android.intent.action.VIEW -n
    com.amazon.amazonvideo.livingroom/com.amazon.ignition.IgnitionActivity
    ```
    **Starts SPMC App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.semperpax.spmc17/.Splash
    am start -a android.intent.action.VIEW -n
    com.semperpax.spmc17/.Splash
    ```
    **Starts Haystack App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.haystack.android/.tv.ui.LoadingActivity
    am start -a android.intent.action.VIEW -n
    com.haystack.android/.tv.ui.LoadingActivity
    ```
    **Starts PBS App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.pbs.video/.ui.main.activities.StartupActivity
    am start -a android.intent.action.VIEW -n
    com.pbs.video/.ui.main.activities.StartupActivity
    ```
    **Starts Pluto TV App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n tv.pluto.android/.leanback.controller.LeanbackSplashOnboardActivity
    am start -a android.intent.action.VIEW -n
    tv.pluto.android/.leanback.controller.LeanbackSplashOnboardActivity
    ```
    **Starts Spotify App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.spotify.tv.android/.SpotifyTVActivity
    am start -a android.intent.action.VIEW -n
    com.spotify.tv.android/.SpotifyTVActivity
    ```
    **Starts HBO Go App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n eu.hbogo.androidtv.production/eu.hbogo.androidtv.MainActivity
    am start -a android.intent.action.VIEW -n
    eu.hbogo.androidtv.production/eu.hbogo.androidtv.MainActivity
    ```
    **Starts Plex App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.plexapp.android/com.plexapp.plex.activities.SplashActivity
    am start -a android.intent.action.VIEW -n
    com.plexapp.android/com.plexapp.plex.activities.SplashActivity
    ```
    **Starts Perfect Player App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.niklabs.pp/com.niklabs.perfectplayer.MainActivity
    am start -a android.intent.action.VIEW -n
    com.niklabs.pp/com.niklabs.perfectplayer.MainActivity
    ```
    **Starts S0undTV (twtich) App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.s0und.s0undtv/com.s0und.s0undtv.activities.MainActivity
    am start -a android.intent.action.VIEW -n
    com.s0und.s0undtv/com.s0und.s0undtv.activities.MainActivity
    ```
    **Starts SmartYoutubeTV App**
    ```
    @@ -212,13 +257,15 @@ command: >-
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.ziggo.tv/com.lgi.horizongo.core.activity.splash.SplashActivity
    am start -a android.intent.action.VIEW -n
    com.ziggo.tv/com.lgi.horizongo.core.activity.splash.SplashActivity
    ```
    **Starts Tivimate/ImPlayer App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n ar.tvplayer.tv/.ui.MainActivity
    am start -a android.intent.action.VIEW -n
    ar.tvplayer.tv/.ui.MainActivity
    ```
    ___
    ## Show local video with KODI
  7. @mcfrojd mcfrojd revised this gist Mar 6, 2021. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -137,7 +137,8 @@ command: >-
    **Starts Amazon App**
    ```
    entity_id: media_player.shield
    command: am start -a android.intent.action.VIEW -n com.amazon.amazonvideo.livingroom/com.amazon.ignition.IgnitionActivity
    command: >-
    am start -a android.intent.action.VIEW -n com.amazon.amazonvideo.livingroom/com.amazon.ignition.IgnitionActivity
    ```
    **Starts SPMC App**
    ```
  8. @mcfrojd mcfrojd revised this gist Mar 6, 2021. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -137,8 +137,7 @@ command: >-
    **Starts Amazon App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.amazon.amazonvideo.livingroom/com.amazon.ignition.IgnitionActivity
    command: am start -a android.intent.action.VIEW -n com.amazon.amazonvideo.livingroom/com.amazon.ignition.IgnitionActivity
    ```
    **Starts SPMC App**
    ```
  9. @mcfrojd mcfrojd revised this gist Mar 6, 2021. 1 changed file with 6 additions and 13 deletions.
    19 changes: 6 additions & 13 deletions Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -14,14 +14,12 @@ command: >-
    **Starts Kodi**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n org.xbmc.kodi/.Splash
    command: am start -a android.intent.action.VIEW -n org.xbmc.kodi/.Splash
    ```
    **Starts Twitch**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n tv.twitch.android.app/tv.twitch.android.apps.TwitchActivity
    command: am start -a android.intent.action.VIEW -n tv.twitch.android.app/tv.twitch.android.apps.TwitchActivity
    ```
    **Starts Netflix (Shows profiles if its the first start.)**
    ```
    @@ -32,27 +30,22 @@ command: am start -a android.intent.action.VIEW -n android.intent.action.VIEW -d
    **Starts TV4 Play (swedish streaming)**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n se.tv4.tv4playtab/se.tv4.tv4play.startup.SplashActivity
    command: am start -a android.intent.action.VIEW -n se.tv4.tv4playtab/se.tv4.tv4play.startup.SplashActivity
    ```
    **Starts SVT Play (swedish streaming)**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n se.svt.android.svtplay/se.svt.svtplay.tv.ui.StartupActivity
    command: am start -a android.intent.action.VIEW -n se.svt.android.svtplay/se.svt.svtplay.tv.ui.StartupActivity
    ```
    **Starts C More (swedish streaming)**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n se.cmore.bonnier/.androidtv.splash.TvConfigurationActivity
    command: am start -a android.intent.action.VIEW -n se.cmore.bonnier/.androidtv.splash.TvConfigurationActivity
    ```
    **Starts ViaPlay (swedish streaming)**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.viaplay.android/.features.home.HomeActivity
    command: am start -a android.intent.action.VIEW -n com.viaplay.android/.features.home.HomeActivity
    ```
    ___
    ## Starts specific Twitch stream (If stream is live)
  10. @mcfrojd mcfrojd revised this gist Mar 6, 2021. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -27,8 +27,7 @@ command: >-
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n android.intent.action.VIEW -d -n com.netflix.ninja/.MainActivity
    command: am start -a android.intent.action.VIEW -n android.intent.action.VIEW -d -n com.netflix.ninja/.MainActivity
    ```
    **Starts TV4 Play (swedish streaming)**
    ```
  11. @mcfrojd mcfrojd revised this gist Mar 6, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -108,7 +108,7 @@ ___
    Not tested my self, but tips from *https://gist.github.com/JeffLIrion*
    ```
    entity_id: media_player.fire_tv_living_room
    command: "pm install -r /sdcard/Download/something.apk"
    command: pm install -r /sdcard/Download/something.apk
    ```
    ___
    ## Shield navigation and controlling
  12. @mcfrojd mcfrojd revised this gist Mar 6, 2021. 1 changed file with 4 additions and 17 deletions.
    21 changes: 4 additions & 17 deletions Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -141,105 +141,92 @@ command: >-
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.google.android.tv/com.android.tv.MainActivity
    ```
    **Starts Amazon App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.amazon.amazonvideo.livingroom/com.amazon.ignition.IgnitionActivity
    ```
    **Starts SPMC App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.semperpax.spmc17/.Splash
    ```
    **Starts Haystack App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.haystack.android/.tv.ui.LoadingActivity
    ```
    **Starts PBS App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.pbs.video/.ui.main.activities.StartupActivity
    ```
    **Starts Pluto TV App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n tv.pluto.android/.leanback.controller.LeanbackSplashOnboardActivity
    ```
    **Starts Spotify App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.spotify.tv.android/.SpotifyTVActivity
    ```
    **Starts HBO Go App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n eu.hbogo.androidtv.production/eu.hbogo.androidtv.MainActivity
    ```
    **Starts Plex App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.plexapp.android/com.plexapp.plex.activities.SplashActivity
    ```
    **Starts Perfect Player App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.niklabs.pp/com.niklabs.perfectplayer.MainActivity
    ```
    **Starts S0undTV (twtich) App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.s0und.s0undtv/com.s0und.s0undtv.activities.MainActivity
    ```
    **Starts SmartYoutubeTV App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.liskovsoft.videomanager/com.liskovsoft.smartyoutubetv.bootstrap.BootstrapActivity
    am start -a android.intent.action.VIEW -n
    com.liskovsoft.videomanager/com.liskovsoft.smartyoutubetv.bootstrap.BootstrapActivity
    ```
    **Starts Steam Link App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.valvesoftware.steamlink/com.valvesoftware.steamlink.SteamShellActivity
    am start -a android.intent.action.VIEW -n
    com.valvesoftware.steamlink/com.valvesoftware.steamlink.SteamShellActivity
    ```
    **Starts Ziggo TV App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.ziggo.tv/com.lgi.horizongo.core.activity.splash.SplashActivity
    ```
    **Starts Tivimate/ImPlayer App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n ar.tvplayer.tv/.ui.MainActivity
    ```
    ___
    ## Show local video with KODI
  13. @mcfrojd mcfrojd revised this gist Mar 6, 2021. 1 changed file with 119 additions and 19 deletions.
    138 changes: 119 additions & 19 deletions Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -130,33 +130,133 @@ ___
    ## Intents i'm not using, but someone could have interest in.
    (Not tested by me, but tested by people in the Home Assistant Forum.)

    **Starts Hulu App**
    ```
    Hulu {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.hulu.livingroomplus/.MainActivity"}
    Live Channels {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.google.android.tv/com.android.tv.MainActivity"}
    Amazon {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.amazon.amazonvideo.livingroom/com.amazon.ignition.IgnitionActivity"}
    SPMC {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.semperpax.spmc17/.Splash"}
    Haystack {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.haystack.android/.tv.ui.LoadingActivity"}
    PBS {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.pbs.video/.ui.main.activities.StartupActivity"}
    Pluto TV {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n tv.pluto.android/.leanback.controller.LeanbackSplashOnboardActivity"}
    Spotify {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.spotify.tv.android/.SpotifyTVActivity" }
    HBO Go {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n eu.hbogo.androidtv.production/eu.hbogo.androidtv.MainActivity" }
    Plex {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.plexapp.android/com.plexapp.plex.activities.SplashActivity" }
    Perfect Player {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.niklabs.pp/com.niklabs.perfectplayer.MainActivity" }
    S0undTV (twtich) {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.s0und.s0undtv/com.s0und.s0undtv.activities.MainActivity" }
    SmartYoutubeTV: {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.liskovsoft.videomanager/com.liskovsoft.smartyoutubetv.bootstrap.BootstrapActivity" }
    Steam Link (start): {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.valvesoftware.steamlink/com.valvesoftware.steamlink.SteamShellActivity" }
    Steam Link (stop): {"entity_id" :"media_player.shield", "command": "am force-stop com.valvesoftware.steamlink" }
    Ziggo TV: {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.ziggo.tv/com.lgi.horizongo.core.activity.splash.SplashActivity" }
    Tivimate/ImPlayer: {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n ar.tvplayer.tv/.ui.MainActivity" }
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.hulu.livingroomplus/.MainActivity
    ```
    **Starts Live Channels App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.google.android.tv/com.android.tv.MainActivity
    ```
    **Starts Amazon App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.amazon.amazonvideo.livingroom/com.amazon.ignition.IgnitionActivity
    ```
    **Starts SPMC App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.semperpax.spmc17/.Splash
    ```
    **Starts Haystack App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.haystack.android/.tv.ui.LoadingActivity
    ```
    **Starts PBS App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.pbs.video/.ui.main.activities.StartupActivity
    ```
    **Starts Pluto TV App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n tv.pluto.android/.leanback.controller.LeanbackSplashOnboardActivity
    ```
    **Starts Spotify App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.spotify.tv.android/.SpotifyTVActivity
    ```
    **Starts HBO Go App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n eu.hbogo.androidtv.production/eu.hbogo.androidtv.MainActivity
    ```
    **Starts Plex App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.plexapp.android/com.plexapp.plex.activities.SplashActivity
    ```
    **Starts Perfect Player App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.niklabs.pp/com.niklabs.perfectplayer.MainActivity
    ```
    **Starts S0undTV (twtich) App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.s0und.s0undtv/com.s0und.s0undtv.activities.MainActivity
    ```
    **Starts SmartYoutubeTV App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.liskovsoft.videomanager/com.liskovsoft.smartyoutubetv.bootstrap.BootstrapActivity
    ```
    **Starts Steam Link App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.valvesoftware.steamlink/com.valvesoftware.steamlink.SteamShellActivity
    ```
    **Starts Ziggo TV App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.ziggo.tv/com.lgi.horizongo.core.activity.splash.SplashActivity
    ```
    **Starts Tivimate/ImPlayer App**
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n ar.tvplayer.tv/.ui.MainActivity
    ```
    ___
    ## Show local video with KODI
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d file:///storage/emulated/0/Android/data/files/sunrise.mp4 -n org.xbmc.kodi/.Splash"}
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -d
    file:///storage/emulated/0/Android/data/files/sunrise.mp4 -n
    org.xbmc.kodi/.Splash
    ```
    ## RTSP stream with VLC
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d rtsp://user:[email protected]:XXX/Streaming/Channels/301 -n org.videolan.vlc/.gui.video.VideoPlayerActivity"}
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -d
    rtsp://user:[email protected]:XXX/Streaming/Channels/301 -n
    org.videolan.vlc/.gui.video.VideoPlayerActivity
    ```
    ___
    ## Intents to change the HDMI input on **TVs with Android TV built in** (@Thebuz)
  14. @mcfrojd mcfrojd revised this gist Mar 6, 2021. 1 changed file with 18 additions and 9 deletions.
    27 changes: 18 additions & 9 deletions Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -58,41 +58,50 @@ command: >-
    ___
    ## Starts specific Twitch stream (If stream is live)
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d twitch://stream/frenck"}
    entity_id: media_player.shield
    command: 'am start -a android.intent.action.VIEW -d twitch://stream/frenck'
    ```
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d twitch://stream/drzzs"}
    entity_id: media_player.shield
    command: 'am start -a android.intent.action.VIEW -d twitch://stream/drzzs'
    ```
    ___
    ## KILL apps on your Shield from Home Assistant

    **Kills YOUTUBE App**
    ```
    {"entity_id" :"media_player.shield", "command": "am force-stop com.google.android.youtube.tv"}
    entity_id: media_player.shield
    command: am force-stop com.google.android.youtube.tv
    ```
    **Kills KODI App**
    ```
    {"entity_id" :"media_player.shield", "command": "am force-stop org.xbmc.kodi"}
    entity_id: media_player.shield
    command: am force-stop org.xbmc.kodi
    ```
    **Kills TWITCH App**
    ```
    {"entity_id" :"media_player.shield", "command": "am force-stop tv.twitch.android.app"}
    entity_id: media_player.shield
    command: am force-stop tv.twitch.android.app
    ```
    **Kills NETFLIX App**
    ```
    {"entity_id" :"media_player.shield", "command": "am force-stop com.netflix.ninja"}
    entity_id: media_player.shield
    command: am force-stop com.netflix.ninja
    ```
    **Kills SVT PLAY App**
    ```
    {"entity_id" :"media_player.shield", "command": "am force-stop se.svt.android.svtplay"}
    entity_id: media_player.shield
    command: am force-stop se.svt.android.svtplay
    ```
    **Kills TV4 PLAY App**
    ```
    {"entity_id" :"media_player.shield", "command": "am force-stop se.tv4.tv4playtab"}
    entity_id: media_player.shield
    command: am force-stop se.tv4.tv4playtab
    ```
    **Kills C MORE App**
    ```
    {"entity_id" :"media_player.shield", "command": "am force-stop se.cmore.bonnier"}
    entity_id: media_player.shield
    command: am force-stop se.cmore.bonnier
    ```
    ___
    ## Install apps on your Android Device from Home Assistant
  15. @mcfrojd mcfrojd revised this gist Mar 6, 2021. 1 changed file with 23 additions and 7 deletions.
    30 changes: 23 additions & 7 deletions Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -13,31 +13,47 @@ command: >-
    ```
    **Starts Kodi**
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n org.xbmc.kodi/.Splash"}
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n org.xbmc.kodi/.Splash
    ```
    **Starts Twitch**
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n tv.twitch.android.app/tv.twitch.android.apps.TwitchActivity"}
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n tv.twitch.android.app/tv.twitch.android.apps.TwitchActivity
    ```
    **Starts Netflix (Shows profiles if its the first start.)**
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.netflix.ninja/.MainActivity"}
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n android.intent.action.VIEW -d -n com.netflix.ninja/.MainActivity
    ```
    **Starts TV4 Play (swedish streaming)**
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n se.tv4.tv4playtab/se.tv4.tv4play.startup.SplashActivity"}
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n se.tv4.tv4playtab/se.tv4.tv4play.startup.SplashActivity
    ```
    **Starts SVT Play (swedish streaming)**
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n se.svt.android.svtplay/se.svt.svtplay.tv.ui.StartupActivity"}
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n se.svt.android.svtplay/se.svt.svtplay.tv.ui.StartupActivity
    ```
    **Starts C More (swedish streaming)**
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n se.cmore.bonnier/.androidtv.splash.TvConfigurationActivity"}
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n se.cmore.bonnier/.androidtv.splash.TvConfigurationActivity
    ```
    **Starts ViaPlay (swedish streaming)**
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.viaplay.android/.features.home.HomeActivity"}
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -n com.viaplay.android/.features.home.HomeActivity
    ```
    ___
    ## Starts specific Twitch stream (If stream is live)
  16. @mcfrojd mcfrojd revised this gist Mar 6, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    **Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr**
    ___
    ## Start apps on your Shield from Home Assistant
    ![alt text](https://i.imgur.com/fKAWB9z.png "Insert code on service tab")
    ![alt text](https://img.mcurl.eu/images/2021/03/06/services.jpg "Insert code on service tab")

    **Starts Youtube App**
    ```
  17. @mcfrojd mcfrojd revised this gist Mar 6, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ ___
    ```
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -d -n
    am start -a android.intent.action.VIEW -n
    com.google.android.youtube.tv/com.google.android.apps.youtube.tv.activity.ShellActivity
    ```
    **Starts Kodi**
  18. @mcfrojd mcfrojd revised this gist Mar 6, 2021. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,10 @@ ___

    **Starts Youtube App**
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.google.android.youtube.tv/com.google.android.apps.youtube.tv.activity.ShellActivity"}
    entity_id: media_player.shield
    command: >-
    am start -a android.intent.action.VIEW -d -n
    com.google.android.youtube.tv/com.google.android.apps.youtube.tv.activity.ShellActivity
    ```
    **Starts Kodi**
    ```
  19. @mcfrojd mcfrojd revised this gist Feb 15, 2021. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -37,8 +37,7 @@ ___
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.viaplay.android/.features.home.HomeActivity"}
    ```
    ___
    ___
    ### Starts specific Twitch stream (If stream is live)
    ## Starts specific Twitch stream (If stream is live)
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d twitch://stream/frenck"}
    ```
  20. @mcfrojd mcfrojd revised this gist Feb 15, 2021. 1 changed file with 14 additions and 26 deletions.
    40 changes: 14 additions & 26 deletions Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,7 @@
    ## Latest Update 2021-02-15 : Markdown cleanup and added some tips from the comments below.
    **Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr**
    ___
    ___
    ### Start apps on your Shield from Home Assistant
    ## Start apps on your Shield from Home Assistant
    ![alt text](https://i.imgur.com/fKAWB9z.png "Insert code on service tab")

    **Starts Youtube App**
    @@ -47,8 +46,7 @@ ___
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d twitch://stream/drzzs"}
    ```
    ___
    ___
    ### KILL apps on your Shield from Home Assistant
    ## KILL apps on your Shield from Home Assistant

    **Kills YOUTUBE App**
    ```
    @@ -79,16 +77,14 @@ ___
    {"entity_id" :"media_player.shield", "command": "am force-stop se.cmore.bonnier"}
    ```
    ___
    ___
    ### Install apps on your Android Device from Home Assistant
    ## Install apps on your Android Device from Home Assistant
    Not tested my self, but tips from *https://gist.github.com/JeffLIrion*
    ```
    entity_id: media_player.fire_tv_living_room
    command: "pm install -r /sdcard/Download/something.apk"
    ```
    ___
    ___
    ### Shield navigation and controlling
    ## Shield navigation and controlling
    ```
    RIGHT {"entity_id" :"media_player.shield", "command": "RIGHT"}
    LEFT {"entity_id" :"media_player.shield", "command": "LEFT"}
    @@ -104,8 +100,7 @@ PAUSE {"entity_id" :"media_player.shield", "command": "input keyevent 127"}
    STOP {"entity_id" :"media_player.shield", "command": "input keyevent 86"}
    ```
    ___
    ___
    ### Intents i'm not using, but someone could have interest in.
    ## Intents i'm not using, but someone could have interest in.
    (Not tested by me, but tested by people in the Home Assistant Forum.)

    ```
    @@ -128,18 +123,16 @@ Ziggo TV: {"entity_id" :"media_player.shield", "command": "am start -a
    Tivimate/ImPlayer: {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n ar.tvplayer.tv/.ui.MainActivity" }
    ```
    ___
    ___
    ### Show local video with KODI
    ## Show local video with KODI
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d file:///storage/emulated/0/Android/data/files/sunrise.mp4 -n org.xbmc.kodi/.Splash"}
    ```
    ### RTSP stream with VLC
    ## RTSP stream with VLC
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d rtsp://user:[email protected]:XXX/Streaming/Channels/301 -n org.videolan.vlc/.gui.video.VideoPlayerActivity"}
    ```
    ___
    ___
    ### Intents to change the HDMI input on **TVs with Android TV built in** (@Thebuz)
    ## Intents to change the HDMI input on **TVs with Android TV built in** (@Thebuz)

    HW1-9 Represent various inputs, 1-4 maybe for composite etc. depending on the model of TV

    @@ -160,8 +153,7 @@ adb shell am start -a android.intent.action.VIEW -d content://android.media.tv/p
    adb shell am start -a android.intent.action.VIEW -d content://android.media.tv/passthrough/com.mediatek.tvinput%2F.hdmi.HDMIInputService%2FHW8 -n org.droidtv.playtv/.PlayTvActivity -f 0x10000000
    ```
    ___
    ___
    ### ADB commands to find out the intent from diffrent apps:
    ## ADB commands to find out the intent from diffrent apps:
    (what is the command to use to start the app?)

    I got a lot of help from people in this thread: https://community.home-assistant.io/t/android-tv-hdmi/234411/28
    @@ -200,8 +192,7 @@ adb shell pm dump com.viaplay.android | grep -A 1 "MAIN" | grep com.viaplay.andr
    ```
    ___
    ___
    ### Tested @tboyce1 command on my Shield and this is what i came up with:
    ## Tested @tboyce1 command on my Shield and this is what i came up with:
    (command to list some of the intents thats running on your device)

    Source: https://community.home-assistant.io/t/community-hass-io-add-on-adb-android-debug-bridge/96375/23
    @@ -243,15 +234,14 @@ And got this:
    - com.joaomgcd.join/.activity.ActivityMain
    - com.google.android.tv.remote.service/.settings.SettingsActivity
    - com.netflix.ninja/.MainActivity

    ___
    ___
    ### My LoveLace Remote Card
    ## My LoveLace Remote Card
    ![alt text](https://i.imgur.com/RSFluWN.png "My Shield Remote Card")

    You find all info and code here https://github.com/mcfrojd/hassio_lovelace_multiremote
    ___
    ___
    ### Credit to @clapbr
    ## Credit to @clapbr
    Sharing the method I've been using to use the search function on Shield directly from HA/Lovelace. Works well for a bunch of stuff, including Netflix (search example: "Vikings on Netflix")

    **configuration.yaml**
    @@ -282,12 +272,10 @@ input_text:
    type: call-service
    ```
    ___
    ___
    ### Credit to @JeffLIrion
    ## Credit to @JeffLIrion
    How to start a Wyze cam RTSP stream in VLC:
    ```
    "dumpsys power | grep mWakefulness | grep -qv Awake && input keyevent 4; CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && if [ $CURRENT_APP != 'org.videolan.vlc' ]; then monkey -p org.videolan.vlc -c android.intent.category.LAUNCHER 1 && sleep 3; fi; am start -a android.intent.action.VIEW -d rtsp://USER:[email protected]/live"
    ```
    Change the user, password, and IP address in the last part of that command.
    ___
    ___
  21. @mcfrojd mcfrojd revised this gist Feb 15, 2021. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,4 @@
    ### Latest Update 2021-02-15 : Markdown cleanup and added some tips from the comments below.
    ___
    ## Latest Update 2021-02-15 : Markdown cleanup and added some tips from the comments below.
    **Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr**
    ___
    ___
  22. @mcfrojd mcfrojd revised this gist Feb 15, 2021. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    ### Latest Update 2021-02-11 : Added how to run adb commands from "SSH & WebTerminal" add-on

    ### Latest Update 2021-02-15 : Markdown cleanup and added some tips from the comments below.
    ___
    **Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr**
    ___
    ___
  23. @mcfrojd mcfrojd revised this gist Feb 15, 2021. 1 changed file with 128 additions and 74 deletions.
    202 changes: 128 additions & 74 deletions Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -1,70 +1,95 @@
    #### Latest Update 2021-02-11 : Added how to run adb commands from "SSH & WebTerminal" add-on
    ### Latest Update 2021-02-11 : Added how to run adb commands from "SSH & WebTerminal" add-on

    #### Credits and thanks: *Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr*
    ---
    #### Starts specific Twitch stream (If stream is live)
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d twitch://stream/frenck"}
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d twitch://stream/drzzs"}
    ```
    #### Start apps on your Shield from Home Assistant
    **Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr**
    ___
    ___
    ### Start apps on your Shield from Home Assistant
    ![alt text](https://i.imgur.com/fKAWB9z.png "Insert code on service tab")

    **Starts Youtube App**
    ```
    # Starts Youtube App
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.google.android.youtube.tv/com.google.android.apps.youtube.tv.activity.ShellActivity"}
    # Starts Kodi
    ```
    **Starts Kodi**
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n org.xbmc.kodi/.Splash"}
    # Starts Twitch
    ```
    **Starts Twitch**
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n tv.twitch.android.app/tv.twitch.android.apps.TwitchActivity"}
    # Starts Netflix (Shows profiles if its the first start.)
    ```
    **Starts Netflix (Shows profiles if its the first start.)**
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.netflix.ninja/.MainActivity"}
    # Starts TV4 Play (swedish streaming)
    ```
    **Starts TV4 Play (swedish streaming)**
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n se.tv4.tv4playtab/se.tv4.tv4play.startup.SplashActivity"}
    # Starts SVT Play (swedish streaming)
    ```
    **Starts SVT Play (swedish streaming)**
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n se.svt.android.svtplay/se.svt.svtplay.tv.ui.StartupActivity"}
    # Starts C More (swedish streaming)
    ```
    **Starts C More (swedish streaming)**
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n se.cmore.bonnier/.androidtv.splash.TvConfigurationActivity"}
    # Starts ViaPlay (swedish streaming)
    ```
    **Starts ViaPlay (swedish streaming)**
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.viaplay.android/.features.home.HomeActivity"}
    ```
    #### KILL apps on your Shield from Home Assistant
    ___
    ___
    ### Starts specific Twitch stream (If stream is live)
    ```
    # Kills YOUTUBE App
    {"entity_id" :"media_player.shield", "command": "am force-stop com.google.android.youtube.tv"}
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d twitch://stream/frenck"}
    ```
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d twitch://stream/drzzs"}
    ```
    ___
    ___
    ### KILL apps on your Shield from Home Assistant

    # Kills KODI App
    **Kills YOUTUBE App**
    ```
    {"entity_id" :"media_player.shield", "command": "am force-stop com.google.android.youtube.tv"}
    ```
    **Kills KODI App**
    ```
    {"entity_id" :"media_player.shield", "command": "am force-stop org.xbmc.kodi"}
    # Kills TWITCH App
    ```
    **Kills TWITCH App**
    ```
    {"entity_id" :"media_player.shield", "command": "am force-stop tv.twitch.android.app"}
    # Kills NETFLIX App
    ```
    **Kills NETFLIX App**
    ```
    {"entity_id" :"media_player.shield", "command": "am force-stop com.netflix.ninja"}
    # Kills SVT PLAY App
    ```
    **Kills SVT PLAY App**
    ```
    {"entity_id" :"media_player.shield", "command": "am force-stop se.svt.android.svtplay"}
    # Kills TV4 PLAY App
    ```
    **Kills TV4 PLAY App**
    ```
    {"entity_id" :"media_player.shield", "command": "am force-stop se.tv4.tv4playtab"}
    # Kills C MORE App
    ```
    **Kills C MORE App**
    ```
    {"entity_id" :"media_player.shield", "command": "am force-stop se.cmore.bonnier"}
    ```

    #### Install apps on your Android Device from Home Assistant
    ___
    ___
    ### Install apps on your Android Device from Home Assistant
    Not tested my self, but tips from *https://gist.github.com/JeffLIrion*
    ```
    entity_id: media_player.fire_tv_living_room
    command: "pm install -r /sdcard/Download/something.apk"
    ```
    #### Shield navigation and controlling
    ___
    ___
    ### Shield navigation and controlling
    ```
    RIGHT {"entity_id" :"media_player.shield", "command": "RIGHT"}
    LEFT {"entity_id" :"media_player.shield", "command": "LEFT"}
    @@ -79,8 +104,9 @@ PLAY {"entity_id" :"media_player.shield", "command": "input keyevent 126"}
    PAUSE {"entity_id" :"media_player.shield", "command": "input keyevent 127"}
    STOP {"entity_id" :"media_player.shield", "command": "input keyevent 86"}
    ```
    ---
    #### Intents i'm not using, but someone could have interest in.
    ___
    ___
    ### Intents i'm not using, but someone could have interest in.
    (Not tested by me, but tested by people in the Home Assistant Forum.)

    ```
    @@ -101,47 +127,61 @@ Steam Link (start): {"entity_id" :"media_player.shield", "command": "am start -a
    Steam Link (stop): {"entity_id" :"media_player.shield", "command": "am force-stop com.valvesoftware.steamlink" }
    Ziggo TV: {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n com.ziggo.tv/com.lgi.horizongo.core.activity.splash.SplashActivity" }
    Tivimate/ImPlayer: {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d -n ar.tvplayer.tv/.ui.MainActivity" }
    ```
    ___
    ___
    ### Show local video with KODI
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d file:///storage/emulated/0/Android/data/files/sunrise.mp4 -n org.xbmc.kodi/.Splash"}
    ```
    ### RTSP stream with VLC
    ```
    {"entity_id" :"media_player.shield", "command": "am start -a android.intent.action.VIEW -d rtsp://user:[email protected]:XXX/Streaming/Channels/301 -n org.videolan.vlc/.gui.video.VideoPlayerActivity"}
    ```
    ---
    #### Intents to change the HDMI input on TVs with Android TV built in (@Thebuz)
    ___
    ___
    ### Intents to change the HDMI input on **TVs with Android TV built in** (@Thebuz)

    HW1-9 Represent various inputs, 1-4 maybe for composite etc. depending on the model of TV

    HDMI 1
    **HDMI 1**
    ```
    adb shell am start -a android.intent.action.VIEW -d content://android.media.tv/passthrough/com.mediatek.tvinput%2F.hdmi.HDMIInputService%2FHW5 -n org.droidtv.playtv/.PlayTvActivity -f 0x10000000
    ```
    HDMI 2
    **HDMI 2**
    ```
    adb shell am start -a android.intent.action.VIEW -d content://android.media.tv/passthrough/com.mediatek.tvinput%2F.hdmi.HDMIInputService%2FHW6 -n org.droidtv.playtv/.PlayTvActivity -f 0x10000000
    ```
    HDMI 3
    **HDMI 3**
    ```
    adb shell am start -a android.intent.action.VIEW -d content://android.media.tv/passthrough/com.mediatek.tvinput%2F.hdmi.HDMIInputService%2FHW7 -n org.droidtv.playtv/.PlayTvActivity -f 0x10000000
    ```
    HDMI 4
    **HDMI 4**
    ```
    adb shell am start -a android.intent.action.VIEW -d content://android.media.tv/passthrough/com.mediatek.tvinput%2F.hdmi.HDMIInputService%2FHW8 -n org.droidtv.playtv/.PlayTvActivity -f 0x10000000
    ```
    ___
    ___
    ### ADB commands to find out the intent from diffrent apps:
    (what is the command to use to start the app?)

    I got a lot of help from people in this thread: https://community.home-assistant.io/t/android-tv-hdmi/234411/28
    ---
    #### ADB commands to find out the intent from diffrent apps:
    Use SSH & Web Terminal add-on with "protection mode" off

    **Use SSH & Web Terminal add-on in Home Assistant with "protection mode" off**

    ![alt text](https://i.imgur.com/RkBdFJQ.jpg "Use SSH & Web Terminal add-on with protection mode off")

    First access the adb container:
    **First access the adb container:**
    ```
    docker exec -it addon_a0d7b954_adb /bin/bash
    ```
    And the run the command:
    **And the run the command:**
    ```
    adb shell pm dump $package | grep -A 1 "MAIN" | grep $package | awk '{print $2}' | grep $package
    ```
    (Replace $package with the app ID.)

    **Some pre filled commands for some popular apps**
    ```
    adb shell pm dump org.xbmc.kodi | grep -A 1 "MAIN" | grep org.xbmc.kodi | awk '{print $2}' | grep org.xbmc.kodi
    @@ -160,18 +200,22 @@ adb shell pm dump se.cmore.bonnier | grep -A 1 "MAIN" | grep se.cmore.bonnier |
    adb shell pm dump com.viaplay.android | grep -A 1 "MAIN" | grep com.viaplay.android | awk '{print $2}' | grep com.viaplay.android
    ```
    ---
    #### Tested @tboyce1 command on my Shield and this is what i came up with:
    (https://community.home-assistant.io/t/community-hass-io-add-on-adb-android-debug-bridge/96375/23)
    ___
    ___
    ### Tested @tboyce1 command on my Shield and this is what i came up with:
    (command to list some of the intents thats running on your device)

    Source: https://community.home-assistant.io/t/community-hass-io-add-on-adb-android-debug-bridge/96375/23

    **Use SSH & Web Terminal add-on in Home Assistant with "protection mode" off**

    Use SSH & Web Terminal add-on with "protection mode" off
    ![alt text](https://i.imgur.com/RkBdFJQ.jpg "Use SSH & Web Terminal add-on with protection mode off")

    First access the adb container:
    **First access the adb container:**
    ```
    docker exec -it addon_a0d7b954_adb /bin/bash
    ```
    And the run the command:
    **And the run the command:**
    ```
    adb shell
    ```
    @@ -200,24 +244,24 @@ And got this:
    - com.joaomgcd.join/.activity.ActivityMain
    - com.google.android.tv.remote.service/.settings.SettingsActivity
    - com.netflix.ninja/.MainActivity
    ---
    #### My LoveLace Remote Card
    ___
    ___
    ### My LoveLace Remote Card
    ![alt text](https://i.imgur.com/RSFluWN.png "My Shield Remote Card")

    You find all info and code here https://github.com/mcfrojd/hassio_lovelace_multiremote
    ---

    ---
    # Credit to @clapbr
    ___
    ___
    ### Credit to @clapbr
    Sharing the method I've been using to use the search function on Shield directly from HA/Lovelace. Works well for a bunch of stuff, including Netflix (search example: "Vikings on Netflix")

    configuration.yaml
    **configuration.yaml**
    ```
    input_text:
    androidtv_search_input:
    name: Android Search
    ```
    scripts.yaml
    **scripts.yaml**
    ```
    'atvsearchscript':
    alias: Android TV Search
    @@ -227,7 +271,7 @@ scripts.yaml
    entity_id: media_player.shield
    service: androidtv.adb_command
    ```
    Lovelace raw
    **Lovelace raw**
    ```
    - entities:
    - entity: input_text.androidtv_search_input
    @@ -237,4 +281,14 @@ Lovelace raw
    name: ' '
    service: script.atvsearchscript
    type: call-service
    ```
    ```
    ___
    ___
    ### Credit to @JeffLIrion
    How to start a Wyze cam RTSP stream in VLC:
    ```
    "dumpsys power | grep mWakefulness | grep -qv Awake && input keyevent 4; CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && if [ $CURRENT_APP != 'org.videolan.vlc' ]; then monkey -p org.videolan.vlc -c android.intent.category.LAUNCHER 1 && sleep 3; fi; am start -a android.intent.action.VIEW -d rtsp://USER:[email protected]/live"
    ```
    Change the user, password, and IP address in the last part of that command.
    ___
    ___
  24. @mcfrojd mcfrojd revised this gist Feb 11, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #### Latest Update 2020-11-05 : Added @clapbr way to add search (Netflix & others) to HA Gui
    #### Latest Update 2021-02-11 : Added how to run adb commands from "SSH & WebTerminal" add-on

    #### Credits and thanks: *Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr*
    ---
  25. @mcfrojd mcfrojd revised this gist Feb 11, 2021. 1 changed file with 5 additions and 12 deletions.
    17 changes: 5 additions & 12 deletions Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -164,24 +164,17 @@ adb shell pm dump com.viaplay.android | grep -A 1 "MAIN" | grep com.viaplay.andr
    #### Tested @tboyce1 command on my Shield and this is what i came up with:
    (https://community.home-assistant.io/t/community-hass-io-add-on-adb-android-debug-bridge/96375/23)

    Run service androidtv.adb_command, provide entity corresponding to your device and then add:
    ```
    command: "pm list packages | sed -e 's/package://' | while read x; do cmd package resolve-activity --brief $x | tail -n 1 | grep -v 'No activity found'; done"
    ```
    Or start the consol in the ADB container in Portainer.
    Use SSH & Web Terminal add-on with "protection mode" off
    ![alt text](https://i.imgur.com/RkBdFJQ.jpg "Use SSH & Web Terminal add-on with protection mode off")

    (or connect from a pc consol)
    First access the adb container:
    ```
    adb connect 192.168.xxx.xxx:5555
    docker exec -it addon_a0d7b954_adb /bin/bash
    ```
    And the run the command:
    ```
    adb shell
    ```
    (not tested but might even work on one line)
    adb shell command when you have more than one android tv on the network.
    ```
    adb -s 192.168.x.xx shell
    ```
    ```
    pm list packages | sed -e "s/package://" | while read x; do cmd package resolve-activity --brief $x | tail -n 1 | grep -v "No activity found"; done
    ```
  26. @mcfrojd mcfrojd revised this gist Feb 11, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -135,7 +135,7 @@ I got a lot of help from people in this thread: https://community.home-assistant
    ---
    #### ADB commands to find out the intent from diffrent apps:
    Use SSH & Web Terminal add-on with "protection mode" off
    ![alt text](https://i.imgur.com/PBi3aDN.jpg "Use SSH & Web Terminal add-on with protection mode off")
    ![alt text](https://i.imgur.com/RkBdFJQ.jpg "Use SSH & Web Terminal add-on with protection mode off")

    First access the adb container:
    ```
  27. @mcfrojd mcfrojd revised this gist Feb 11, 2021. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -137,6 +137,11 @@ I got a lot of help from people in this thread: https://community.home-assistant
    Use SSH & Web Terminal add-on with "protection mode" off
    ![alt text](https://i.imgur.com/PBi3aDN.jpg "Use SSH & Web Terminal add-on with protection mode off")

    First access the adb container:
    ```
    docker exec -it addon_a0d7b954_adb /bin/bash
    ```
    And the run the command:
    ```
    adb shell pm dump org.xbmc.kodi | grep -A 1 "MAIN" | grep org.xbmc.kodi | awk '{print $2}' | grep org.xbmc.kodi
  28. @mcfrojd mcfrojd revised this gist Feb 11, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -135,7 +135,7 @@ I got a lot of help from people in this thread: https://community.home-assistant
    ---
    #### ADB commands to find out the intent from diffrent apps:
    Use SSH & Web Terminal add-on with "protection mode" off
    ![alt text](https://i.imgur.com/PBi3aDN.jpg "Use SSH & Web Terminal add-on with "protection mode" off")
    ![alt text](https://i.imgur.com/PBi3aDN.jpg "Use SSH & Web Terminal add-on with protection mode off")

    ```
    adb shell pm dump org.xbmc.kodi | grep -A 1 "MAIN" | grep org.xbmc.kodi | awk '{print $2}' | grep org.xbmc.kodi
  29. @mcfrojd mcfrojd revised this gist Feb 11, 2021. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -133,8 +133,9 @@ adb shell am start -a android.intent.action.VIEW -d content://android.media.tv/p
    ```
    I got a lot of help from people in this thread: https://community.home-assistant.io/t/android-tv-hdmi/234411/28
    ---
    #### ADB command to find out the intent from diffrent apps:
    (im runnig this in the "Exec console" in portainer on the addon_a0d7b954_adb container)
    #### ADB commands to find out the intent from diffrent apps:
    Use SSH & Web Terminal add-on with "protection mode" off
    ![alt text](https://i.imgur.com/PBi3aDN.jpg "Use SSH & Web Terminal add-on with "protection mode" off")

    ```
    adb shell pm dump org.xbmc.kodi | grep -A 1 "MAIN" | grep org.xbmc.kodi | awk '{print $2}' | grep org.xbmc.kodi
  30. @mcfrojd mcfrojd revised this gist Feb 11, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Shield_Intents.MD
    Original file line number Diff line number Diff line change
    @@ -151,6 +151,8 @@ adb shell pm dump com.netflix.ninja | grep -A 1 "MAIN" | grep com.netflix.ninja
    adb shell pm dump se.cmore.bonnier | grep -A 1 "MAIN" | grep se.cmore.bonnier | awk '{print $2}' | grep se.cmore.bonnier
    adb shell pm dump com.viaplay.android | grep -A 1 "MAIN" | grep com.viaplay.android | awk '{print $2}' | grep com.viaplay.android
    ```
    ---
    #### Tested @tboyce1 command on my Shield and this is what i came up with: