In this one I show you 3 TV based automations that I utilise in my personal setup. Check the video out Here
ADB Command Play Video On Netflix
- This script will play a targeted program on Netflix
# Play Peppa Pig on Netflix
alias: Shield TV Play Peppa
sequence:
- service: androidtv.adb_command
data:
command: >-
input keyevent MENU && am start -n com.netflix.ninja/.MainActivity -a
android.intent.action.VIEW -d https://www.netflix.com/watch/{PROGRAM-ID} -f
0x10808000 -e source 30 && input keyevent 23 && input keyevent 23 &&
input keyevent 23
target:
entity_id: media_player.android_tv_192_168_0_104
mode: single
# E.g. ID - 80025592 = Peppa Pig. Change {PROGRAM-ID} to your chosen ID
Copy Just The Command
input keyevent MENU && am start -n com.netflix.ninja/.MainActivity -a
android.intent.action.VIEW -d https://www.netflix.com/watch/{PROGRAM-ID} -f
0x10808000 -e source 30 && input keyevent 23 && input keyevent 23 &&
input keyevent 23
ADB Command Play Bluey on Disney Plus
- A small script to play Bluey on Disney Plus
# Play Bluey on Disney Plus
alias: Shield TV Play Bluey
sequence:
- service: androidtv.adb_command
data:
command: >-
input keyevent MENU && am start -a
"android.search.action.GLOBAL_SEARCH" --es query "play bluey on disney
plus" -e source 30 && input keyevent 23 && input keyevent 23 && input
keyevent 23
target:
entity_id: media_player.android_tv_192_168_0_104
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: androidtv.adb_command
data:
command: input keyevent 23
target:
entity_id: media_player.android_tv_192_168_0_104
mode: single
# You can replace "Play Bluey on Disney Plus" with anything you want to launch. E.g "Show me Eufy Cameras", "Open MarkWattTech on YouTube"
Copy Just The Command
input keyevent MENU && am start -a
"android.search.action.GLOBAL_SEARCH" --es query "play bluey on disney
plus" -e source 30 && input keyevent 23 && input keyevent 23 && input
keyevent 23
Copy Just The Command
am start -a android.intent.action.VIEW -d -n com.nvidia.remotelocator/.ShieldRemoteLocatorActivity