-
-
Save det-peralta/eab8c1ffbc0263c9dcd9359ccbdedd45 to your computer and use it in GitHub Desktop.
| entity_id: media_player.tcl_tv | |
| command: "am start -n com.tcl.tv/.TVActivity" |
adb shell service call tcl_tv_display 100 i32 0 i32 <0-100> i32 0
@sashoism this works perfectly for me but how would I get the current brightness value?
% adb shell service call tcl_tv_display 101
Result: Parcel(00000000 00000032 '....2...')
32 is 50% in hexadecimal
My tv is stuck in a loop on the Google logo, I can see it's connected to WiFi on my routers settings, I can connect to adb on FireStick plug FireStick on HDMI and get back. Log, I also get a Bluetooth hit from my t.v. on my cell phone. I've tried running command after command scripts left and right and I cannot get the t.v. to recognize my FireStick. Idc about fixing the TV's is or anything I at least want to salvage the TV into a display screen for my fire stick. The remote turns the tv on but not off, the main power button on the tv turns it on but not off. The t.v. will not go into any recovery mode or reset. Can someone tell me what to do please. The t.v. is a TCL 55S450G
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
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
@sashoism this works perfectly for me but how would I get the current brightness value?