home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.14k stars 29.82k forks source link

Google Nest Camera Streaming but showing black #119692

Open oj-demo2 opened 3 months ago

oj-demo2 commented 3 months ago

The problem

I just notice that my Google nest camera that was integrated into my home assistant through the project is streaming but coming up dark with no visual., i have used Frigate, picture entity and picture glance and will all put to stream live but still coming up streaming but black with no visual.

IMG_4071 IMG_4070

What version of Home Assistant Core has the issue?

core

What was the last working version of Home Assistant Core?

Core 2024.6.2 Supervisor 2024.06.0 Operating System 12.3 Frontend 20240610.0

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Google Nest-Streaming

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @allenporter, mind taking a look at this issue as it has been labeled with an integration (nest) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `nest` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign nest` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


nest documentation nest source (message by IssueLinks)

allenporter commented 1 month ago

It looks like the cards are not playing the stream but looking at the jpg thumbnail. That is not how it looks when set to live, so double check your configuration. I can't help you with frigate. (Community forum is the right place to discuss since not really a home assistant bug)

thetravellor commented 1 month ago

I have exactly the same problem with my 4 nest cams, have a mixture of older rtsp and the newer webrtc cams. The picture glance method doesnt work either. This started when google started migrating all older nest cams into google home a couple of months back.

allenporter commented 1 month ago

This is an example of a working wired doorbell (WebRTC from the start):

camera_view: live
type: picture-glance
title: Front Door
camera_image: camera.front_door

This is an example of a working nest outdoor IQ cam (RTSP still today)

camera_view: live
type: picture-glance
title: Front Yard
camera_image: camera.front_yard

This is an example for a working nest outdoor camera that was migrated from RTSP to WebRTC:

camera_view: live
type: picture-glance
title: Back Yard
camera_image: camera.backyard

They are all using the same configuration with a picture glance card set to live. All working in Chrome.

thetravellor commented 1 month ago
Screenshot 2024-07-28 at 9 36 11 AM

I had to put a bogus entity in there as HA wouldnt let me save it otherwise.

Its the same for all my nest cameras

This camera was working fine until Google migrated it last week. The other 3 were borked weeks ago.

It is possible that the availability region is affecting whether it works or not, I am in Australia, which I suspect you are not.

allenporter commented 1 month ago

Can you share diagnostic information for the camera? https://www.home-assistant.io/docs/configuration/troubleshooting/#download-diagnostics

allenporter commented 1 month ago

Also curious if anything shows up in the browser developer tools?

The first question was because: The thumbnail just makes it look like its only showing the thumbnail and does not think it can support video streams., so want to see what the API returns. The second question is because maybe its trying and failing.

RyanMorash commented 1 month ago

I just ran into the same issue with the macOS companion app, but it is working fine on both Safari and the iOS Companion App.

allenporter commented 1 month ago

@RyanMorash seem my request above for more diagnostic information and any error messages in developer console.

mtwilliams5 commented 1 month ago

I've got this issue too. Getting these logs:

Logger: homeassistant.components.stream.stream.camera.front_door
Source: components/stream/__init__.py:448
integration: Stream ([documentation](https://www.home-assistant.io/integrations/stream), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+stream%22))
First occurred: 26 July 2024 at 15:21:15 (96 occurrences)
Last logged: 16:37:02

Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found, rtsps://stream-eu1-bravo.dropcam.com:443/sdm_live_stream/CiUA2...<REDACTED>?auth=****)
Error from stream worker: Error opening stream (HTTP_FORBIDDEN, Server returned 403 Forbidden (access denied), rtsps://stream-eu1-bravo.dropcam.com:443/sdm_live_stream/CiUA2...<REDACTED>?auth=****)
Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found, rtsps://stream-eu1-bravo.dropcam.com:443/sdm_live_stream/CiUA2...<REDACTED>?auth=****)

My debug info: config_entry-nest-5a21a0dfe7413bd6859bdfb8bae12aa1.json

Checking in browser dev tools, I'm getting a 500 error on the homeassistant.local:8123/api/camera_proxy/camera.front_door endpoint

rjtyler1869 commented 1 month ago

Hi, I have just installed Home Assistant with recent update today. Finally managed to get the integration of my Nest Camera's to work, but I get the same issue. No streaming, black Squares.

image

Error for the top camera is "Failed to start WebRTC stream: Nest API error: Error from API: 500: INTERNAL: Internal error encountered.: Internal Server Error"

Error for the Doorbell is _"Failed to start WebRTC stream: Nest API error: Error from API: 400: FAILEDPRECONDITION: The camera is not available for streaming.: Bad Request"

Debug Doorbell Camera.txt

Debug Front Door Camera.txt

I am not a programmer and any help would be appreciated

allenporter commented 1 month ago

That's helpful. So home assistant correctly detects as a webrtc server, however the Nest API is failing. "The camera is not available for streaming" implies that the google server is unable to talk to the camera.

I've seen the internal server error from folks using firefox where Chrome or Safari did not have that issue.

More information from others such as could help collect information to work with Google to understand what is going on:

mtwilliams5 commented 1 month ago

I get the blank stream on both Firefox and the iOS native app (so presumably Safari-esque if not straight-up Safari under the hood) Opening up Chrome, I am able to see at least a preview of my camera feed, which has also updated the thumbnail preview elsewhere, but it is an old one and a still image - trying to open up the live stream, I just eventually get the Error starting stream, see logs for details error that I get elsewhere.

Enabling debug logs, this is all I get:

Logger: google_nest_sdm.event_media
Source: runner.py:190
First occurred: 15:38:24 (1 occurrences)
Last logged: 15:38:24

Failure when pre-fetching event 'AVPH<REDACTED>': Internal Server Error
Logger: homeassistant.components.stream.stream.camera.front_door
Source: components/stream/__init__.py:448
integration: Stream ([documentation](https://www.home-assistant.io/integrations/stream), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+stream%22))
First occurred: 12:40:17 (25 occurrences)
Last logged: 16:09:32

Error from stream worker: Error opening stream (HTTP_NOT_FOUND, Server returned 404 Not Found, rtsps://stream-eu1-bravo.dropcam.com:443/sdm_live_stream/CiUA2<REDACTED>?auth=****)

Not sure if the two are entirely linked, since the event keys are different 🤷

Interestingly enough, checking through my other cameras, this is only affected the oldest of them - my Nest Doorbell (wired) (the original Nest Hello, and configured through the Nest app rather than direct in to Google Home). Looking in the diagnostics, it's the RTSP device, not the Web RTC ones.

My other two cameras are Nest Cam (battery) devices set up direct in Google Home. These I am able to see the live stream for, but I have a separate issue in that never been able to get them to reliably show their thumbnails in the picture glance card in the dashboard - if I set the card to 'live' instead of 'auto', it works for a while, then I get a too many requests error. That's a separate issue though - when I haven't hit the rate limit, those streams load fine.

Updated diagnostics: config_entry-nest-5a21a0dfe7413bd6859bdfb8bae12aa1 (1).json

allenporter commented 1 month ago

Stream errors are from the rtsp device and a known issue nest needs to solve (we have a separate open issue on it. Those will not have the black image I think so not the same as here).

WebRTC issue is browser specific. We have no known fix for Firefox (separate issue tracking that). Not aware that safari mobile was a problem for WebRTC unless it's stream.

(Let's talk about stream vs WebRTC as separate issues.)

allenporter commented 1 month ago

Please file a separate issue about rate limiting if you want to investigate. Seems very different than not working at all as described here. We can't easily discuss these separate things on a single thread with many different users contributing independent problems so appreciate that.

Wilbers007 commented 2 weeks ago

This is an example of a working wired doorbell (WebRTC from the start):

camera_view: live
type: picture-glance
title: Front Door
camera_image: camera.front_door

This is an example of a working nest outdoor IQ cam (RTSP still today)

camera_view: live
type: picture-glance
title: Front Yard
camera_image: camera.front_yard

This is an example for a working nest outdoor camera that was migrated from RTSP to WebRTC:

camera_view: live
type: picture-glance
title: Back Yard
camera_image: camera.backyard

They are all using the same configuration with a picture glance card set to live. All working in Chrome.

@allenporter Sorry for being dumb but where do I put this code in?

I have 7 Google Nest Cameras and it's just the older ones that are working!

Wilbers007 commented 2 weeks ago

This is an example of a working wired doorbell (WebRTC from the start):

camera_view: live
type: picture-glance
title: Front Door
camera_image: camera.front_door

This is an example of a working nest outdoor IQ cam (RTSP still today)

camera_view: live
type: picture-glance
title: Front Yard
camera_image: camera.front_yard

This is an example for a working nest outdoor camera that was migrated from RTSP to WebRTC:

camera_view: live
type: picture-glance
title: Back Yard
camera_image: camera.backyard

They are all using the same configuration with a picture glance card set to live. All working in Chrome.

@allenporter Sorry for being dumb but where do I put this code in?

I have 7 Google Nest Cameras and it's just the older ones that are working!

Hold the phone... I've found it!!