Google Nest Camera (WebRTC) State Update

Integration: Google Nest

Current Issue: It appears that the WebRTC version of the Google Nest Cameras (Nest Cam indoor, wired) do not update their State in HA, and remain as “Streaming”, even when the camera is not streaming. This occurs if the camera is powered down, or if you turn it off via the Google Home app or Google Home Automation.

Preferred Behavior: When the camera is not streaming, the state should change so we can run automations based on the state.

Error Note: When the camera is turned off, an error does occur in the live stream on the Picture Glance card, but no event appears to be published anywhere that I could find. The error that occurs is: “Failed to start WebRTC stream: Nest API error: Error from API: 400: FAILED_PRECONDITION: The camera is not available for streaming.: Bad Request” This may be helpful in changing the State in the integration?

State History (camera has been turned on/off several times during this period):
image

Error in stream when camera is off:
image

Thanks…
-Jerry

Tagging @allenporter as he seems to own the integration. Upon further thought, it should maybe a bug, but I would love to get Allen’s thought on it…

There is nothing like what you are looking for available through the nest API.

Ok, thanks Allen… I have been working around a bunch of shortfalls in the Nest API for the cameras, so I’ll try to figure out a way to automate some sort of state monitor in HA for the camera.

Did you ever figure out how to detect the state? I have the same problem abd would like to figure it out also…

I didn’t, so I just can’t use conditional cards for it…