Yeah i don’t want to trivialize what it would take to make it “official”. Additionally, I think what is needed is to figure out how to plumb through the RTSP server address, etc likely involving changing the camera apis, etc.
I think maybe what is interesting is to follow https://github.com/deepch/RTSPtoWebRTC/issues/148 – my impression is the existing recipe for the custom component involves port forward when not using MSE.
I’m running Raspbian OS with HA in Docker. While setting up the integration I have to fill some server. Which server should I run? Could you please give more information about it?
Thanks for putting this together, really is a huge improvement to the stream experience. Couple of things I’ve noticed.
It only works with the insecure from the UniFi Protect integration. Trying to access the secure feeds gives the error:
Failed to start WebRTC stream: RTSPtoWeb server failure: stream channel codec not ready, possible stream offline: Internal Server Error
1
In the front end and:
time="2022-02-05T11:19:31Z" level=info msg="Run stream" call=Run channel=0 func=StreamServerRunStreamDo module=core stream=camera.g4_doorbell_high
time="2022-02-05T11:19:31Z" level=error msg="Stream error restart stream x509: certificate is valid for 127.0.0.1, fe80::1, not <PROTECT_SERVER_IP>" call=Restart
In the add on logs
- I get a connection_refused error when trying to open the web UI, I’m guessing this is a https issue or similar? ok needed a port forward, worth adding to the docs?
Let me know if you want me to spin either of these out into GitHub issues or if I’m missing something obvious
Thanks again, the is really such a huge improvement!
Hi Tom, @AngellusMortis also mentioned that RTSPS url for unifi protect is not working. @AngellusMortis was suggestion that perhaps we need to disable certificate validation to make this work.
Yes, I think it would make sense to file an issue in the upstream project e.g. RTSPtoWeb to start? (I follow issues there fwiw)
For background, I have RTSPS working for nest (as of https://github.com/deepch/vdk/pull/41). I think this would need to be an option, since I wouldn’t want certificate validation disabled for nest, for example. I have to admit I am less familiar with the security implications of using RTSPS with an invalid certificate.
Thanks, i was assuming something like that (e.g. i’m not entering a username and password, and just getting back a feed), but didn’t feel confident.
Does using RTSPS on unifi protect offer additional value? I don’t have much experience using SSL with invalid certificates, but naively it seems like equivalent security to RTSP.
(In the nest case i have to pass in an authentication token in the URL, and I wouldn’t want to pass that to a malicious server, for example, so i feel like we can’t change the default to disable this. One option is to make it an option that you can disable, though making it seamless also would be nice (e.g. either automatically enable this option, or always send an RTSP url to rtsp-to-webrtc from unifi protect)
OK, it seems like allowing invalid certs as a configuration option may be the way to go? @TomBrien perhaps we start by filing an issue in the upstream server, then we can figure out the best way to plumb through as an option in the add-on.
Sorry I meant the port forward to the webUI (I missed this isn’t using Ingress). Since my production instance is only accessible via HTTPS and the appropriate (external) domain, I needed to add a forwarding rule.
Hi, I have installed RTSPtoWeb, which was not working in picture-glance. Then I installed RTSPtoWebRTC, this is on is working. I’m using HA core on ubuntu. I have little problem with this ingergration, sometimes, when I switch between cards, the video become black, or white and doesn’t load until I refresh the site. Maybe an option to disable on_demand for RTSPtoWeb would help. Or an option to load videos stored in config.json (where I have on_demand disabled for selected streams) of RTSPtoWeb server. Thanks (sorry for my bad english)
First of all Thank you for creating this option!
I love this working local as I no longer have the 10 to 30 second delay in the camera stream when I am local. Real time is more important local than it is remote. Would it be possible to use WebRTC when local and RTSP when remote?
I would be fine with having different lovelace views.
You may prefer to just use HLS which was updated to use Low Latency HLS by default. You should no longer see a 10-30 second delay, but something more like 3-5 seconds.
Hello everybody. As I am new to the Home-Assistand Community, I just wanted to have my Eufy-cams work on my Dashboard. After installing the RTSPtoWeb Integration I have to enter the URL for RTSPtoWeb Server. I thought I have to enter the IP of my Eufy Homebase in this way https://192.168.xxx.xxx but after doing this, HA is telling me, that the communication is not possible. Is it really the Eufy Homebase-IP? or what is meant here?
How do I confirm I’m using webRTC? I’m using picture glance and my guess is that it is still using mjpeg, and as entity the frontend_stream_type says HLS, also webRTC does not work on RTSPtoWEB interface.
I have an Annke C800 camera ( POE ) and it’s quite modern.