Android TV Remote


The Android TV Remote integration allows you to control an Android TV device by sending commands and launching apps. For this to work, the Android TV device needs to have Android TV Remote Service which is pre-installed on most devices.

For a quick introduction on how to get started with Android TV Remote, check out this video:

Configuration

Adding Android TV Remote to your Home Assistant instance can be done via the user interface, by using this My button:

Android TV Remote can be auto-discovered by Home Assistant. If an instance was found, it will be shown as Discovered. You can then set it up right away.

Entity

This integration adds a remote entity which turns on/off the Android TV device. The entity has the current_activity attribute that shows the current foreground app on the Android TV.

Services

You can use the remote.turn_off, remote.turn_on, remote.toggle, and remote.send_command services from the remote platform.

For a list of the most common commands that you can send to the Android TV via remote.send_command, see: TvKeys. For a full list, see here.

If activity is specified in remote.turn_on, it will open the specified URL in the associated app.

Examples of URLs to pass as activity for some popular apps:

App URL
YouTube https://www.youtube.com
Netflix https://www.netflix.com/title
Prime Video https://app.primevideo.com
Disney+ https://www.disneyplus.com

Examples of service calls:

# Open the currently selected item on the Android TV
service: remote.send_command
data:
  command: DPAD_CENTER
target:
  entity_id: remote.living_room_tv
# Long press on the currently selected item on the Android TV
service: remote.send_command
data:
  command: DPAD_CENTER
  hold_secs: 0.5
target:
  entity_id: remote.living_room_tv
# Launch YouTube
service: remote.turn_on
data:
  activity: https://www.youtube.com
target:
  entity_id: remote.living_room_tv
# Open a specific YouTube video:
service: remote.turn_on
data:
  activity: https://www.youtube.com/watch?v=dQw4w9WgXcQ
target:
  entity_id: remote.living_room_tv

Dashboard example

You have to manually create buttons in Lovelace to send commands to the Android TV device or launch apps on it.

Below is an example for you to start with. Many of the buttons support long press.

Screenshot Android TV Remote example