Skip to content

About

Tiny Android TV app that lets Home Assistant make a Sony TV's remote beep

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Find Sony Remote

A tiny Android TV app that lets Home Assistant make a Sony Bravia TV's remote control beep, so you can find it.

Some Sony TVs have a "find the remote" feature, started by a button on the TV. Home Assistant's Android TV Remote integration can't start it directly, but it can open links on the TV. This app handles the link findremote://go: it starts Sony's own feature, then closes.

  • About 9 KB, with no permissions and no internet access
  • Shows no screen of its own and doesn't appear in the TV's app list
  • Debugging is only needed to install it, not to use it

Requirements

  • A Sony TV with Android TV or Google TV that has the find remote feature, and a remote that supports it
  • Home Assistant with the Android TV Remote integration connected to the TV

Tested on one TV: a 65-inch Sony BRAVIA 8 OLED (model K-65XR80C) with Android 14. Other models may not have the Sony screen this app relies on.

Install

  1. Download find-remote.apk from this repository's Releases page.

  2. On the TV, turn on Developer options, then Wireless debugging.

  3. Choose Pair device with pairing code on the TV, then run this on your computer with the address and port it shows:

    adb pair TV_IP:PAIRING_PORT
    
  4. Connect using the port on the main Wireless debugging screen (it's different from the pairing port), then install:

    adb connect TV_IP:PORT
    adb install find-remote.apk
    
  5. Test it. The remote should beep:

    adb shell am start -a android.intent.action.VIEW -d findremote://go
    
  6. Turn Wireless debugging off again.

Home Assistant

Add a button to a dashboard, using your TV's remote entity:

type: shortcut
label: Find remote
icon: mdi:remote-tv
color: orange
tap_action:
  action: perform-action
  perform_action: remote.turn_on
  target:
    entity_id: remote.family_room_tv
  data:
    activity: findremote://go

The same action works in a script or automation:

action: remote.turn_on
target:
  entity_id: remote.family_room_tv
data:
  activity: findremote://go

How it works

The app starts this Sony screen, which is already on the TV:

Package com.sony.dtv.assistantadapter
Activity com.sony.dtv.assistantadapter.activity.ControlTvActivity
Action com.sony.dtv.cdaadapter.intent.action.FIND_RC

Sony doesn't document it, so a TV software update could change or remove it.

Any app on the TV can open findremote://go. All it can do is make the remote beep.

Troubleshooting

With debugging on, trigger the button and read the app's log:

adb logcat -d -s FindRemote
  • Find remote request sent: the app did its part. If there's no beep, check the remote's batteries and that it's paired with the TV.
  • Could not start the Sony find remote screen: this TV doesn't have the screen the app needs.
  • Nothing logged: the link didn't reach the app. Check that it's installed and that the Home Assistant entity is the right TV.

Build

On Windows with JDK 17 and the Android SDK (build-tools 36.0.0 and platform android-36):

.\build.ps1

The result is build\find-remote.apk. The first build creates a signing key, key.jks, which is not in this repository. Android only installs an update signed with the same key, so to install your own build over a release you must uninstall the app first.

Uninstall

Remove Find Remote from the TV's app settings, or run adb uninstall com.gblachstein.findremote.

This project is not affiliated with Sony.

License

MIT

About

Tiny Android TV app that lets Home Assistant make a Sony TV's remote beep

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages