camera.play_stream doesn't work to Google hub/chromecast #269
Replies: 3 comments 21 replies
-
I am not a cast expert, but I think the Nest Devices have an issue if the stream resolution is too high. If you go to the Unifi Protect Web App, and look at the RTSP Settings, try and turn off the 1600x1200 resolution, and turn on one of the others. Then reload the Unifi Protect Integration, and try again. |
Beta Was this translation helpful? Give feedback.
-
So I was able to get this working as expected using a simple automation:
For me the problem was the RTSP stream on my g3_instant were all turned off. turning on the low quality one, it started to work. I did need to reload the integration first. Once this was done, I no longer got the error any longer, and the video was seen on my chromecasts. |
Beta Was this translation helpful? Give feedback.
-
Maybe this library (aiortc) could be used to generate a WebRTC stream? I played a little bit with it, and managed to get a WebRTC stream from the RTSPS URL. But how this would be embedded directly in our module, I am not sure. And maybe it also the wrong way to go. As @AngellusMortis says in another discussion, it would be great if this feature was built-in to HA core, so all cameras could use it. |
Beta Was this translation helpful? Give feedback.
-
Thanks for this excellent integration; it's exactly what I've been looking for. I have a G4 doorbell and am happily running a few useful automations using it.
One thing doesn't work, though -
camera.play_stream
won't display on any of my Google/Nest devices (eg: Chromecast with GoogleTV, Nest Home Hub, Nest Home Hub Max). The service doesn't report any errors, and the devices start the media player, but all I see on screen is the Cast logo, and it times out after a few seconds.I can stream other camera entities (eg: Nest IQ cameras using the Nest integration), and I can view the RTSP stream from the G4 doorbell fine using VLC, so I'm not sure what's causing this. Are there any log files etc. I could use to start debugging? Any additional information I can send here?
Home Assistant OS: Core version core-2021.7.4, unifiprotect version 0.8.9.
Unifi Protect: Protect version 1.18.1 on UnifiOS 1.10.0.
G4 Doorbell: firmware version 4.38.1
Here's what I'm trying:
(
media_player.tv_room_tv
is a Chromecast with Google TV (Android TV), but I get the same result on a Home Hub and Home Hub Max).Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions