PRProd / HA-Firemote

Apple TV, Amazon Fire TV, Chromecast, Homatics, NVIDIA Shield, onn., Roku, Xiaomi Mi, and Android TV remote control card for Home Assistant
GNU General Public License v3.0
479 stars 70 forks source link

[New App Shortcut]: YouTube Kids #30

Closed moh-Brent closed 1 year ago

moh-Brent commented 1 year ago

App Name

YouTube Kids

Can this app be freely downloaded through official means?

Optional Comments

This should make the kids jhappy :)

  "youtubekids": {
    "button": "YouTubeKids",
    "friendlyName": "YouTube Kids",
    "appName": "com.google.android.youtube.tvkids",
    "className": "youtubekidsButton",
    "androidName": "com.google.android.youtube.tvkids",
    "adbLaunchCommand": "adb shell am start -n com.google.android.youtube.tvkids/com.google.android.apps.youtube.tvkids.activity.MainActivity" },
          .youtubekidsButton {
            font-size: calc(var(--sz) * 1rem);
            color: #919191;
            font-weight: bold;
            background: rgb(74 0 0);
          }
          .youtubekidsButton:active, .youtubekidsButton.appActive {
            color: #ffffff;
            background: rgb(199 0 0);
            box-shadow: 0 0 calc(var(--sz) * 0.857rem) calc(var(--sz) * 0.142rem) rgb(255 255 255 / 20%);
            text-shadow: 0 0 calc(var(--sz) * 0.2857rem) black;
          }
PRProd commented 1 year ago

@moh-Brent - Please download and test Pre-Release Version 1.10.4 to see if this app shortcut works for you. The app name and the ADB start command that work on the US version of YouTube Kids is different from the one that you provided. I'm not sure if what you sent me was unique to the NZ region (I assume?) or if the request details needed some love.

Please let me know what happens. I'm not opposed to making a different shortcut for the same app in different regions. This same sort of thing came up a little while ago in https://github.com/PRProd/HA-Firemote/issues/28.

Thanks for your contributions!

PRProd commented 1 year ago

@moh-Brent - A thought just occurred to me... you're doing all of your testing against Mi Boxes, aren't you? Do you own any Fire TV devices? When looking at the discrepancies again, I'm thinking that maybe there are different binaries intentionally built for different systems.

Your Request:

"androidName": "com.google.android.youtube.tvkids"
"adbLaunchCommand": "adb shell am start -n com.google.android.youtube.tvkids/com.google.android.apps.youtube.tvkids.activity.MainActivity" 

My Success:

"androidName": "com.amazon.firetv.youtube.kids" 
"adbLaunchCommand": "adb shell am start -n com.amazon.firetv.youtube.kids/dev.cobalt.app.MainActivity" 
moh-Brent commented 1 year ago

I wonder if that is FireTV thing, the one I supplied worked on the JBL Link Soundbar as well as the Mi Boxes. I'll test it out tonight after everyone has finished watching the TV or early morning, thanks for doing this!

moh-Brent commented 1 year ago

@PRProd Yeah so the YTKids FireTV version defo doesn't work, the below does on the Mi Box 4 com.google.android.youtube.tvkids/com.google.android.apps.youtube.tvkids.activity.MainActivity I've noticed the JBL Android TV commands are slightly different to the ones for Mi Boxes. also can't get the "Three Now" to work on the Mi Box either, other than that the list below will show you what works.

  Firemote
Plex Y
Netflix Y
Disney+ Y
Prime Video N but can use the Mi command
TVNZ+ Y
Three Now N
YT Kids N but can use the Mi command
YouTube N
   
Power Off works but not on, quirks with the Mi box
U/D/L/R/Enter Y
Return Y
Home Y
Menu N
Rew N
Play/Pause N
Fforward N
V+ Y
V- Y
menu-up N
menu-updown N
TV N
Mute Y
Settings N
App Switch N

PRProd commented 1 year ago

@moh-Brent - Thanks for that chart.

At this time, I'm still only working on Amazon Fire TV device support, and not other Android device support. That being said, I'd love to eventually get to a point where I can expand to other Android TV devices... so here is my compromise. Instead of saying no and closing this issue, I created a "YouTube Kids (alt)" option that uses the command data you sent me. Please download Firemote Pre-release v1.10.4.2 and let me know if the "alt" version works as expected. I only own Fire devices at this time, so I'm unable to test this for myself.

Thanks!

moh-Brent commented 1 year ago

@PRProd and again, this worked perfectly, awesome stuff and thank you

PRProd commented 1 year ago

@moh-Brent - Version 1.11.1 has been released and it contains both versions of the app shortcut for YouTube kids. Thank you for your testing efforts earlier, and for your patience with the timing of this release.

Thanks for your contribution!

TheBartoMan commented 1 year ago

com.amazon.firetv.youtube.kids/dev.cobalt.app.MainActivity

This worked thanks! - How did you find out it was this?