Realtime camera streaming without any delay - WebRTC

is it possible to add 2 wyze cams to the webRTC lovelace card ?

I’m looking something similar in which to show the streaming when I click the card. Can you please share your yaml configuration?

Also, it is possible to add at tap action to the webrtc card?

No action support for webrtc component. You can find an example usage here: GitHub - fuatakgun/eufy_security: Home Assistant integration to manage Eufy Security devices as cameras, home base stations, doorbells, motion and contact sensors.

Hello, is it possible to rotate the stream by 90 degrees? My camera does not support rotation. Thank you!

Thank you very much for this integration. Great job!!!
Just a quick question though. Is there a way to add other sensors to make it looks like the original “Picture Glance” card ? I have tried to add the code like these into the yaml:

type: custom:webrtc-cam
entities:
  - entity: camera.living_room
  - entity: light.main
  - entity: light.spot

it would not work…
Thanks

@jamesngob Check the Frigate Lovelace Card it’s awesome and works with webrtc too.
Section optional-lovelace-card-installation here:

Just upgrade to HA 2021.12 and WebRTC Camera stop working. Any one with the same issue? Any solution for that?

My impression is that the developer has already fixed the issue and the latest version / master branch of the custom component needs to be used. Check out issues reported in the github repo like Error during setup of component (core-2021.12.0) ¡ Issue #156 ¡ AlexxIT/WebRTC ¡ GitHub for context

Thanks, that is

isn’t WebRTC now direcetly integrated into hass with 2021.11?

or won’t this replace the custom component?

Native WebRTC implementation relies on devices to support as some devices have built-in support, this custom integration converts rtsp stream into webrtc, they are totally different.

Not quite (yet?).

  • The release notes say “initial support” which means that basic plumbing to support webrtc in the frontend and core was added in the release. (as stated, this doesn’t do anything unless an integration starts using it)
  • nest cameras were updated to support webrtc natively (e.g. new generation 2 camera models and doorbells). The nest cameras themselves support webrtc so they can use the plumbing added in the previous step.
  • The WebRTC custom component developed by @AlexxIT has a unique capability in that it converts an RTSP stream to WebRTC using an external server RTSPtoWebRTC – home assistant core doesn’t do that yet.
  • AlexxIT and I have been chatting about how we could start using that generic core support in the custom compoment in Integrate with standard Home Assistant WebRTC card ¡ Issue #138 ¡ AlexxIT/WebRTC ¡ GitHub – you can see from the discussion there may be corner cases that we might not be able to support in home assistant core, so it may never be a replacement entirely for the custom component
  • I’ve started working on pulling similar functionality into core in Add `rtsptowebrtc` integration by allenporter ¡ Pull Request #59660 ¡ home-assistant/core ¡ GitHub – My thought is that we’ll be able to make the very basic setup case easier to get working with an add-on, which could benefit more users broadly with simple setups, and help with test coverage to avoid breaking changes in future release.
6 Likes

I have the camera in my cottage and the HA server in my house. How can I access the camera stream(add to the HA) from a different LAN?

macOS companion app 2021.11.1 cards show as unsupported browser?

I was able to get WebRTC working but I am having issues streaming the same source on multiple mediums (ie. Web & iPhone) simultaneously.

Does anyone else have this issue or is this a limitation of WebRTC?

I too ran into this issue with symmetric NAT and WebRTC. I am running pfSense as my firewall. WebRTC would work internally but not externally. I had to create the following NAT rule to allow for WebRTC to function. I have the port range 60000-60100 configured in my WebRTC integration.

1 Like

I want to try PTZ with this, but from the example code used I get an error saying : unable to find service rest_command.camera.ptz.start

Do I have to add this service manually ?

Yes. This service will be different for many cameras.
I use the onvif integration for my camera for example and use the “onvif.ptz” service which is created when adding the camera entity,

you mean that the service is automatically added when you add the camera ? One onvif.ptz service per camera ?

Hi There
Can this be used on the portable HA version on Windows?