Unifi Protect Stream to Shield TV

Hello all. Wondering if anyone can assist me in what I’m doing wrong. I have Unifi Protect cameras integrated through the Protect Custom Component. This works fine and I can view my cameras in a lovelace card without issue. I wanted to find a way to have one of the camera streams automatically pop up on my Shield TV (Android) via automations. I can’t get as far as the automations, because testing the service in Dev Tools doesn’t work.

I integrated the Shield TV using the Android TV Integration (python ADB option). This seems to have integrated my Shield TV just fine, as I can control it via play/pause commands in HA and see all of it’s attributes in States. Before my first run I did enable the ADB on Shield TV and received the approval prompt on the Shield.

I then tried to use camera.play_stream with entity_id of my camera and media_player of the Shield. Nothing happens though… I also get no errors in the log. I’ve tried doing this in both the Dev Tools Services as well as in a Script.

Any ideas where I’m going wrong here?
Thanks!

I’m also trying to get my Amcrest camera to play on the shield tv, no luck either. I tried play_stream also.

Curious, on your Shield did you try the Python ADB option, or the ADB Server within the Android TV integration? I’m using Python, but have been thinking that flipping to ADB Server option may work better.

This won’t work because the Android TV integration doesn’t support playing media. The main reason is because this is too ambiguous to support on all Android TV devices: what type of media is it, what app should be used to play it, etc.

What you can do is use the androidtv.adb_command to send an ADB shell command to start playing media on your device. The challenging part is figuring out what that command should be.

Using an ADB server will make zero difference and will only make your setup more complicated.