potmat / homebridge-google-nest-sdm

A Homebridge plugin for Google Nest devices that uses the Google Smart Device Management API. Supports Cameras, Doorbells, Displays, and Thermostats. Includes support for HomeKit Secure Video.
ISC License
140 stars 17 forks source link

Camera Stream Fails with WebRTC Offer/Response Problem #69

Closed luiscarlosgzaa99 closed 1 year ago

luiscarlosgzaa99 commented 1 year ago

I'm trying to use a new Google Nest Doorbell (wired) but get a G logo and when accessing for live view i get a "No Response" error.

My Homebridge logs throws me this error. Sorry I'm not an expert in this topic

[homebridge-google-nest-sdm] TypeError: Cannot read properties of undefined (reading 'mediaSessionId') at WebRtcNestStreamer.initialize (/var/lib/homebridge/node_modules/homebridge-google-nest-sdm/src/NestStreamer.ts:108:33) at processTicksAndRejections (node:internal/process/task_queues:95:5) at DoorbellStreamingDelegate.startStream (/var/lib/homebridge/node_modules/homebridge-google-nest-sdm/src/StreamingDelegate.ts:300:20)

potmat commented 1 year ago

Seems like the RTC stream cannot be setup. Enable debug mode and look in the logs for something like

Executing command sdm.devices.commands.CameraLiveStream.GenerateWebRtcStream

followed by

Execution of command sdm.devices.commands.CameraLiveStream.GenerateWebRtcStream

It should show what the API returned or if there was an error.

potmat commented 1 year ago

Closing due to lack of activity.