Connecting Lenovo X6G-U wifi camera to go2rtc

Has anyone been able to configure this camera?
I would like to use Scrypted to automate recordings.

What options does the camera have to stream data? HA uses go2rtc to talk to the streams so it is very versatile in accepting streams.

However since you mention you want to use Scrypted, it will not be HA making the connection to the camera, but Scrypted, then HA will connect to it, to show the information.

As I understand it, the question the wrong one, try this one :slight_smile:

Is the camera supported by Scrypted and can you get enough information from there into HA.

I have no Idea about how to configure Go2RTC. Scrypted OnVIF plugin at least finds the camera on the network, but can’t configure it.

If you have default_config: or go2rtc: in your configuration.yaml, go2rtc will run when it is able by itself. (no matter what integration you use to talk to the camera)

1 Like

Ok, what you wanted to achieve in your first question is this:

  1. Camera <–??-- Home Assistant --??–> Scrypted?

The logic that you probably will want to use is the following one, the ‘??’ from HA might use go2rtc to talk to Scrypted in this case:

  1. Camera —onvif/rtsp—> Scrypted <–??-- Home Assistant ← User looking at dashboard with camera’s

Optional setup with direct connection from HA, the ‘??’ from HA will likely use go2rtc to talk to the camera in this case

  1. Camera <–??-- Home Assistant ← User looking at camera

Camera’s might speak different protocols (RTSP, ONVIF, HTTP/HTTPS, MJPEG, custom protocols, …). Home Assistant happens to use go2rtc to be able to talk to the camera.

Both in case 2 and case 3, you will need to know which protocol(s) your camera supports, how to enable them or how to talk to it. This information can often be found in the manual.

Then choose how you want to connect to the camera. In case 2) you’ll need to ask in a Scrypted forum how to connect and once it is set-up, you can then connect HA to Scrypted.
In case 3) you can try to use go2rtc configuration to define the camera directly into HA.

This apparently helped. But I had to reboot HA before getting onvif to connect to the camera.

Despite onvif now being able to connect to the camera, I can’t get the video stream from the camera.

The camera’s documentation does not say anything about protocols.

Can you post the manual please? Is it in Portuguese?