How do I send a unifi rtsp stream directly to tv (not proxying in HA)

Hi all

I’m really at a loss here.
I’ve gotten the webrtc addon to show the unifi rtsps stream in lovelace, that’s perfect.

I have a unifi setup, and as probably a lot of other people want, I would like to stream the doorbell camera to my tv, when the doorbell rings.

I can send the stream via the Home Assistant integration to Unifi Protect, but there are so much latency rendering it useless for this. This is also why I’m using webrtc instead of the picture-glance.

I’ve also tried casting a dashboard with the stream in it, and there the latency is ok, but it takes forever to establish the connection to the cast.

But how on earth do I get the rtsp streamed sent directly to the tv (it’s an android tv).
The closest I’ve gotten so far using the android remote integration is this:

service: media_player.play_media
  entity_id: media_player.sonytv
  media_content_id: rtsp://
  media_content_type: url

But that just shows ‘cannot play video’

So what am I doing wrong here?

1 Like