Skip to content

Instantly share code, notes, and snippets.

@det-peralta
Created January 20, 2020 19:14
Show Gist options
  • Select an option

  • Save det-peralta/eab8c1ffbc0263c9dcd9359ccbdedd45 to your computer and use it in GitHub Desktop.

Select an option

Save det-peralta/eab8c1ffbc0263c9dcd9359ccbdedd45 to your computer and use it in GitHub Desktop.
TCL TV - android adb command - Home Assistant
entity_id: media_player.tcl_tv
command: "am start -n com.tcl.tv/.TVActivity"
@thewhiteoak5
Copy link

I found the path to quick menu panel that has brightness, bluetooth and other options. But do not know how to automate it further. May be first call this service and then send a up or down key event?
The command to bring that panel is adb shell am start -a com.tcl.settings.action.QUICKSETTINGS

@sellmike1488
Copy link

sellmike1488 commented Aug 2, 2025 via email

@tanase-sebastian
Copy link

@FaserF

Thanks for the nice information.

I am trying to archive that homeassistant will start the „only audio“ setting from the TCL TV Settings. (Settings -> sound -> only audio) the App is com.tcl.settings but I am not sure how to get the Activity that needs to be starting. Do you have any hint?

I'm not using home assistant but the app TV Quick Actions Pro on my TV. What I did was launch the settings app and then use key input events to activate the audio mode only. It has to be adapted for your TV but it does the job for me.

keyevent 19 = UP
keyevent 20 = DOWN
keyevent 23 = ENTER

# open main settings
am start -n com.android.tv.settings/.MainSettings

# Just in case a different item is highlighted, press the "up" button 8 times to select the first item
input keyevent 19; input keyevent 19; input keyevent 19; input keyevent 19; input keyevent 19; input keyevent 19; input keyevent 19; input keyevent 19;

# open display and sound
input keyevent 20; input keyevent 23; sleep 2

# open sound
input keyevent 20; input keyevent 20; input keyevent 23

# open other settings
input keyevent 20; input keyevent 20; input keyevent 20; input keyevent 20; input keyevent 23

# select audio only
input keyevent 20; input keyevent 20; input keyevent 20; input keyevent 23

# confirm audio only
input keyevent 23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment