-
-
Notifications
You must be signed in to change notification settings - Fork 72
How Can I Help?
One of the most helpful ways to fast track a new app shortcut request is to provide some additional technical details by running this one ADB command:
adb shell dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp|mInputMethodTarget|mSurface'
IMPORTANT: Open the app on your Android device FIRST
- In Home Assistant, Open Developer tools
- Click the SERVICES Tab
- In the Service menu, select Android Debug Bridge: ADB command
- Select your device by clicking on the + Choose Entity button in the Targets section
- Enter or copy/paste
adb shell dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp|mInputMethodTarget|mSurface'
into the command field - Click the CALL SERVICE button
- Click over to the Developer tools STATES tab
- Locate the entity that you had targeted in step 4
- Copy and paste the "Attributes" data under the heading "adb_response:" into your app request issue submission
For example, when the Netflix app is open, following these steps will provide this useful output (or similar)
adb_response: mSurface=Surface(name=com.netflix.ninja/com.netflix.ninja.MainActivity)/@0x743bfe6 mSurface=Surface(name=com.android.systemui.ImageWallpaper)/@0x7ec776e
For an Apple TV device app button request, this is the preferred method:
- Click on Developer Tools
- Open the STATES tab
- (optional) Type the name of your Apple TV Entity to help you sort through the list
- Under Filter attributes, copy and paste the contents of the source_list into your app request issue submission.
For instance, my reply would look like this:
source_list: AMC+, App Store, Arcade, ARD Mediathek, ARTE, bgtime.tv, Channels, CNN, Computers, Crunchyroll, Curiosity Stream, Daily Wire, DAZN, DIRECTV, discovery+, Disney+, DS video, Emby, ESPN, F1 TV, FaceTime, Fitness, FOX Sports, Freevee, gcn, HDHomeRun, Hulu, IPTVX, IPVanish, iQIYI, JustWatchTV, Magenta TV, Max, Mediaset Infinity, MLB, Movies, Music, NBC Sports, Nebula, Netflix, NFL, NLZIET, NPO, OQEE by Free, Pandora, Paramount+, PBS, Peacock, Photos, Plex, Pluto TV, Podcasts, Prime Video, Proximus Pickx, Qmusic-BE, RaiPlay, Search, Settings, ShopHQ, Showtime, SiriusXM Radio for TV, Sky News, Speedtest, Spotify, STARZ, Steam Link, Stream, SVT Play, TBS, Tennis Channel, TestFlight, TIDAL, TNT, Tubi, TV, TV Shows, TV4 Play, TVNZ+, Twitch, VBTV, Viaplay, Videoland, VLC, VRT MAX, XCIPTV, YouTube, YouTube Kids, YouTube TV, ZDFmediathek
In order to discover the best and fastest way for Home Assistant to communicate with an android device, we can send a simple adb command to the device and examine the output.
adb shell dumpsys input
It is possible to execute this command through the Home Assistant UI in just a few steps:
- Open Developer Tools
- Click the Services Tab
- Select "Android Debug Bridge: ADB command" service
- Choose your device by clicking on the entity button
- Enter
adb shell dumpsys input
into the command field - Click the CALL SERVICE button
- Click over to the developer tools States tab
- Choose your entity (the one you sent the command to)
- Review the data to see what and how your device is listening for external input