Those of you that understand googles api for the nest cams maybe know the answer to this. I currently have a google max hub that has a camera that I pull into home assistant via the nest integration. Its pretty shaky.
The newer versions of go2rtc can apparently work with the api but I am not knowledgeable in terms of what needs to be entered here. I did set up the nest integration which looks super similar. Would a new project be required in the cloud console or could you use the same as the nest integration and what is the refresh token?
I was able to get it working from the information in this thread, both using the camera config in Frigate (which is good), and setting up the camera directly in go2rtc (which is better).
The hass restream option looks complicated from the issue page. I’m having trouble following.
Would you happen to know if we can use the same information that was required for the nest integration or do you have to do through that whole process again.
Actually reading through the advice which links to Bắt đầu  | Device Access  | Google for Developers both methods don’t seem easy
Yeah, it can be intimidating.
For what it’s worth, here’s the config I used to restream the hass config. Keep in mind that the hardware acceleration and other settings may be different for you:
go2rtc:
hass:
config: "/config"
streams:
front_drive: hass://supervisor?entity_id=camera.front_drive_camera
cameras:
front_drive:
ffmpeg:
hwaccel_args: -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format yuv420p
inputs:
- path: rtsp://127.0.0.1:8554/front_drive?video=all&audio=all
input_args: preset-rtsp-restream
roles:
- detect
- record
live:
stream_name: front_drive
For the direct config in go2rtc, I don’t think you can simply use the credentials use used for the hass config–at least, you’ll need more. Specifically, you’ll need a “refresh token” which requires a few command-line steps.
Instead of trying to figure out which credentials I could re-use, I just started fresh (One small tip: at one point in the process, you will get a “code” from a URL that Google opens in your browser. You can only use it once in the next step. If you have to re-do that next step, you’ll need to back up and get another code. It’s no big deal, but the instructions don’t make it clear).
This is very helpful. Thanks for taking the time. Lol we might be running similar hardware looking at your ffmpeg config, CPU is Intel i5 6500… Saved from a inglorious retirement and put to work
curious how you got this working or if you ran into any roadblocks you can share. I have the nest integration working fine in HA but for the life of me can’t get it configured in go2rtc I created a separate project in the device access console. I know all of my parameters are correct because I can get all the way through google’s authorization process to get my refresh token. Any idea what I might be missing?
Hi all,
i try to stream my Nest doorbell 2 wired without Hass in my Frigate in docker
I followed this: Bắt đầu  | Device Access  | Google for Developers
to obtain refresh_token and devide id
and i used this code
streams:
nest-doorbell: nest:?client_id=&client_secret=&refresh_token=&project_id=&device_id=***
but i received a error
2023-10-12 10:33:06.767427016 10:33:06.767 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:53 > error="unsupported scheme: nest:?client_id=8320
Thanks for your help
Looks like you’re using an old version of go2rtc.
how did you get the refresh token ?
if i open my google home app on android, it asks me to move the google hub FROM nest to Home app, losing the nest integration, anyone doe this before? will the camera still work?