What's changed
This beta focuses on the "Authentication expired" reports since 0.5.0. It fixes three causes of sign-outs and unneeded re-authentication, and makes the connection more robust against Google and Nest outages and API changes. Everything from 0.6.0b1 and 0.6.0b2 is included, including the experimental master token sign-in.
Please test it and report back, especially if Home Assistant kept asking you to re-authenticate (#694, #696, #704, #714). Include your sign-in method (Chrome extension, manual cookies or master token), your browser and OS, debug logs and diagnostics with any report.
Tip
If you use browser cookies and still get logged out within hours (USER_LOGGED_OUT - No active session found in the log), the browser you copied them from is probably rotating the shared Google session. Switching to the master token usually solves this. Open the entry's menu (⋮), choose Reconfigure, and pick Master token (experimental). Your devices and entities are kept.
🐛 Bug fixes
- Keep cookies that Google rotates when the same response also deletes a stale copy (#713). Before, the rotated cookie could be lost, and Google logged the integration out on the next refresh. Also stop reusing a Google token that's about to expire, and don't count Nest rejections toward re-authentication while Google can't be reached. Cookie users who keep getting logged out are now pointed to the master token. Thanks @dtl79nl!
- Stop the Nest x Yale lock connection from triggering re-authentication when its session expires every hour while the lock is idle (#698, fixes #697). Thanks @TheBeeZee!
- Fetch a new Google token after a daylight saving time change or when Nest rejects one (#699, #705). Before, an expired token could look valid again for an hour after clocks went back. Thanks @TheBeeZee!
- Back off when renewing the Nest session hangs, instead of retrying every 30 seconds without logging a failure (#720).
- Treat a Nest server error at startup as temporary (#721). Home Assistant now retries later without requesting new Google credentials, and setup shows "cannot connect" instead of an unknown error.
- Keep working when Google or Nest adds a field to their responses (#719). Before, one new field would have broken sign-in or updates for every user.
- Show the occupancy sensor as unavailable on Protect firmware 5.0 and later (5.0rc31, 5.0rc38), which no longer reports motion to Nest, instead of a value that never changes (#688, #476). It becomes available again on its own if the Protect starts reporting changes again.
🚀 Features
- Add a Last updated diagnostic sensor to Nest Temperature Sensors (#692), so you can see when a sensor stopped reporting, for example because of a dead battery. Nest keeps serving the last reading, so the temperature alone looks fine. Disabled by default; enable it under the device's entities.
- Show a repair notice when a home lists a Protect but Nest sends no data for it (#690, #579, #604). These Protects can't be added yet. Until now they were silently missing. This can last a few hours after a Protect is added, reset or moved. If it doesn't go away, please share your diagnostics in #579: they now include what Nest reports over its newer API, which tells us whether a fix is possible.