Open a specific playlist in Spotify via ADB:
adb am start -a android.intent.action.VIEW spotify:playlist:4bfj9Go9YnSq7L4YeWTWeY:play
Home assistant service:
service: androidtv.adb_command
target:
entity_id: media_player.adb_percee_tv
data:
command: 'am start -a android.intent.action.VIEW spotify:playlist:4bfj9Go9YnSq7L4YeWTWeY:play'
adb am start -n com.spotify.tv.android/.SpotifyTVActivity -a MediaStore.INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH -e SearchManager.QUERY "bowie"
adb am start -a "android.media.action.MEDIA_PLAY_FROM_SEARCH" -e android.intent.extra.focus "vnd.android.cursor.item/*" -e query "bowie" -n com.spotify.tv.android/.SpotifyTVActivity
Adding shell works for me
adb shell am start -a android.intent.action.VIEW spotify:playlist:4bfj9Go9YnSq7L4YeWTWeY:play