My Nest Cam Solution After Works With Nest Shutdown (1 gotcha)

What this is:
Displaying a live Nest Camera stream in Lovelace UI after the Works With Nest program has been closed.

image

Gotcha:
You will have to share your camera publicly. I want to do further testing with the password option, but I have a feeling it won’t work.

What we don’t get:
Motion, person, sound detection.
Nest Mode control.

What happened?
I had Nest integrated, and I had the camera entity displayed on my Lovelace, I was happy I got in before Works With Nest shut down.
Then one day my HASSIO VM just died, the virtual disk was just gone.
I restored my last snapshot and began picking up the pieces but noticed my Nest integration wasn’t working quite as expected.
So I figured I’d remove the Nest integration and then re-add it. I assumed since I was in before the date my access was secured, I assumed wrong.

I had been digging around a lot and finally found a way to get the public stream Nest spits out into HA.
Then I also found out you can have a live stream in Lovelace! That’s what I always wanted it to be, so this is even better in my opinion than the true Nest integration as far as video, because the true Nest integration only gave an image every few seconds.

First we need to extract the stream URL out of the public webpage Nest spins up. There’s a utility here to do it, just paste in your public stream and the iSpy (think of it as open source Blue Iris, I was about to use this and still might to do image processing) will spit out the stream URL.

https://www.ispyconnect.com/userguide-nest.aspx

Here’s the configuration.yaml

camera:
  - platform: ffmpeg
    name: Front Door Camera
    input: https://stream-uc2-delta(might be different than delta).dropcam.com:443/nexus_aac/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/chunklist_wXXXXXXXXXXX.m3u8?public=XXXXXXXXXXX

For the Lovelace, I use a picture-glance card in case I want to interact with things that are visible in the camera view, like lights… I wish you could display sensor values here, I think water detection might work, because it just shows the entity icon.

Here’s the Lovelace config:

title: Front Yard
camera_view: live
type: picture-glance
camera_image: camera.front_door_camera
entities:
  - light.front_porch_light
  - switch.front_yard_holiday_lights_he

Hopefully this helps somebody else who feels left in the dark after Nest shut the door.
I’d love to hear suggestions about how to make this more secure, I’ll try the option with a password later.

3 Likes

An update, I don’t believe the password will work, there is no username to speak of generated by the sharing mechanism.

I tried the following:

camera:
  - platform: ffmpeg
    name: Front Door Camera
    input: https://stream-uc2-delta(might be different than delta).dropcam.com:443/nexus_aac/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/chunklist_wXXXXXXXXXXX.m3u8?public=XXXXXXXXXXX
    password: !secret

It’s not an RTSP stream so I don’t think I can do rtsp://[email protected]

If anyone paying attention has any ideas let me know.
For now it isn’t possible in my mind.

i wanted to say i saw a homebridge plugin not to long ago that might be of interest to you. m not the most knowledgeable on this but have been searching for months on how to get nest cams in my lovelace.

1 Like

I actually got nest cam “working” with homebridge a while ago but it was in my Pie and seemed rather choppy. I tried it again since I got homebridge working on my hassio docket and it doesn’t seem to work anymore. I used the same authorization config so I thought I’d be grandfathered in with works with nest, but I guess not.

Why not using the embed solution with iframe card ?

By the embed solution do you mean the old works with nest integration or the shared camera webpage?

I actually tried to make an iframe card with the shared camera page and it wouldn’t load the video element.

Hi,
The url I took from the nest.com - I shared my camera to public.
Then with iframe card I just copied the url.
type: iframe
url: https://nest.com/
aspect_ratio: 75%

1 Like

When I do so I get a blank iFrame:

Without password I assume…
Can you use this link in a standard browser - in other pc ?

Correct no password unfortunately.
The web page works on every browser on PC.
Haven’t tested on mobile.