I just managed to add google nest to HA. My Nest Learning Thermostat is working fine. But my Nest doorbell is not. I get this error on the video preview:
Failed to start WebRTC stream: Nest API error: Error from API: 500: INTERNAL: Internal error encountered.: Internal Server Error
I’m not using WebRTC, just the default Nest cam integration, and was able to use this following code to see the stream instead of the grey gradient box, but after an indeterminate amount of time the stream changes to a static image, pretty useless. I am not sure how to monitor how much time elapses before the stream switches to static… Perhaps there’s some way to bake in a timed refresh once that can be determined?
I know it’s been a while since this was posted, but periodically (seems to be after every update) my Google devices will require reauthentication. I usually get a notification to reauthenticate, but this time I got the error above. Probably because there was a recent OS update. But to solve this all I had to do was go to the NEST device and click the 3 dots then - Reload. I got a prompt to reauthenticate. It’s working now. If anyone knows how to get the authenticaion to stop expiring I would appreciate knowing that.
Thank you so much for this, it’s rare for someone to update a thread after finding a solution. My head was spinning at the thought of going through the whole process of integrating again.
Simply reloading one of the devices triggered the HA re-authentication and everything is working great again.