Nest x Yale Lock | Project Help

I have started working on this integration and would love some help if anyone has experience with protobufs. I took the great work that Adrian has done with the HomeBridge plugin and used that work to port only the lock functionality into HomeAssistant.

Currently, I have the lock and its current status working but activating any commands is still not working. Additionally device details like firmware and model are not working yet.

You can find my project here - GitHub - krozgrov/ha-nest-yale-integration: Custom Home Assistant integration for Nest x Yale door locks, enabling monitoring and control of door locks. Includes features like battery level monitoring, door lock control, and updates via API.

Cheers!

3 Likes

how do I get the api key?

Awesome work, I’m looking forward to your integration! Unfortunately I’m inept at coding so I won’t be of any help, but I’m rooting for you!

Thanks for the support, I have not had much time to work on this, the protobuf differences between java and python have been challenging to overcome.

I have the same question, I got it installed but don’t know where to get the key.

I would use the instructions listed on the HomeBridge plugin GitHub - chrisjshull/homebridge-nest: Nest plugin for HomeBridge.

The integration is mostly working - I had a big assist from BarelyFunctionalCode · GitHub, he was able to get the lock / unlock messages decoded. The integration is mostly working - just some missing messages for firmware, battery status and other telemetry.

I figured it out, this is awesome! Thanks so much!

Did it work for you? I’m working on feature right now to make the Cookie / Issue Token URL easier…

I spoke too soon. It worked at first but then it stopped. I’m not sure what is wrong.

I’m not sure what is going on. It looks like it’s not working in the app now either, so doesn’t appear to be the integration.

It was going crazy last night but the Nest app is now working for my locks. However, the Home Assistant integration works when I first add it, but then when I go to try it again later it doesn’t work. If I try to unlock, it looks like it going to and switches right back to locked.

It indicates the following in the Home Assistant Core Logs:

No Google access token received: USER_LOGGED_OUT - No active session found.

Traceback (most recent call last):
File “/config/custom_components/nest_yale_lock/api_client.py”, line 184, in authenticate
raise ValueError(“Invalid authentication data received”)
ValueError: Invalid authentication data received

I read in the other post you linked that you don’t want to sign out of the Nest site which I don’t so I’m not sure why it stops working.

That message — “Invalid authentication data received” — usually pops up when the authentication cookie or issue URL has expired. I’ve seen it happen if the link wasn’t opened from an In-Private (or Incognito) browser tab, or if you clicked Sign Out after logging in instead of just closing the browser.

I’m working on improving the re-authentication flow so it’s more reliable and doesn’t time out, which should prevent needing to reload the Home Assistant integration in the future.

1 Like

I installed the update and it worked fine this morning but I’m getting the same errors. Is there anything else I should be doing? I am using my Google account since I have the locks linked with Google Home. When I use the Incognito or In-Private option it has me login and then it brings me right back to the starting page to login again. Only when I do it from non-incognito can I login.

I’ve tried the latest beta versions but I still experience the same issues. It works when I first configure then stops working within an hour. I believe it’s the fact that the instructions on the shared page says you need to login with Incognito or InPrivate. I have also tried to clear cache. With the Incognito (in Chrome) or InPrivate (Edge) with the Google Account it just keeps looping after logging in back to the login page.

Has anyone had the same issue where you were able to get it working?

Yes, the instruction are directly from the Homebridge Nest Integration - GitHub - chrisjshull/homebridge-nest: Nest plugin for HomeBridge, not sure why are you having your token expire. The one item to note is my integration is still in beta and you need to reload after an hour or two to restore the connection. I would not use this in a production environment.

Yeah I’m not sure either, the instructions there has no mention of it looping if you use Incognito mode.

The latest beta version 38 I can’t get to work at all, using the steps to refresh isn’t working.