I made a crappy Nest Thermostat integration that will work as a stopgap until alternatives come out

I’m in the “well I’ve waited this long, might as well let this play out” camp.
I’ve been very close to switching to Google Auth and the newer repo as well but after this news and seeing the API I’ve decided something will probably come out pretty quick since the API looks pretty straight forward even to me.

The new API doesn’t support the Nest Protect though [yet], it seems.

1 Like

Yeah they seem to be the red head stepchild of the bunch. Shame because I thought they were pretty cool when they came out. I needed smoke detectors when they came out for my whole house when I added on to my house. (Code) so I’d be really irked through their life cycle. Glad I’m only 1 product in. They’ve got so many pieces to make a complete eco system but just fall on their face when it comes to… being an eco system.

I was able to get my Nest Protects showing up in HA using the mattsch/badnest integration and they work fine in HA. However I tried to export the sensors via the HomeKit bridge and it didn’t give any errors, but they don’t show up in HomeKit. Anyone know how to make them work in HomeKit, or is that not possible? Thanks!

After the thermostat stopped working again, I followed the instructions given by @Meelobee and copied these type of cookies:
cookie: __Secure-3PAPISID=…/…; __Secure-3PSID=…

It all went well. Please take care of the " " as well.

So
issue_token: “https://accounts.google.com/o/oauth2/ifram…”
cookie: “__Secure-3PSID=1…”

Maybe this helps…

Wow. I’ve been trying to get Bad Nest to work for over 6 months and your suggestion finally got it up and running for me. I have a first generation Nest, so I didn’t have a “WWN Reset” option in my settings, but I just reset the Nest to factory settings, reconfigured the Nest through the on-screen setup process and then re-added the cookie to my configuration. Restarted HA and bam. It worked. Thanks!

1 Like

I have updated to mattsch’s v0.0.6.

In the release notes it mentions ability to change the active Nest Temperature Sensor.

How is this done?

Maybe a dumb question but do you need to do any extra configuration besides the snippet shown on github with the badnest/climate/camera/sensor to get the Nest to show up? Blew a few hours trying to get it working this morning including factory resetting my Nest twice and redoing the cookie/token thing multiple times, no error messages in debug logs either I just see the “adding thermostat”, “adding sensor” etc type messages and then nothing else. Makes me wonder if I missed a step or if my Nest is cursed somehow.
Well, I can still control it by bridging through Alexa so it’s not a HUGE deal, though that route is very limited. (Need to create a routine in advance with specific temperatures set up and then trigger it through a template contact sensor or something, also no way to push the current temperature back to HA for purposes of automation or whatever.) Hopefully with the API finally out in the open we’ll see the official integration updated soon…

Replying to my own message, I switched from HOOBS to Homebridge (both on docker) and my thermostat shows up fine with the same plugin in Homebridge, but not HOOBS.

Hello everybody,

can anyone tell me what this error means? what do i have to change?

however, I don’t get my nest doorbell displayed in the HA.

can someone help me??

https://hastebin.com/gowawubowu.sql

Unsure what has happened but I think the GitHub repo has been moved or renamed as I am getting error 404 messages in the homebridge core logs. Is anyone else having the same issue? The plugin still works but I doubt it will get any more updates.

It appears the repo was deleted, the local copy I have still works and currently this is the only workable method I have to control the Nest thermostat from HA.

@USA-RedDragon, I guess you have no desire to maintain this further?

Hopefully HA will support the new “Device Access Console”, there’s some work here --> https://github.com/home-assistant/home-assistant.io/pull/14855

1 Like

Yes I have 2FA set up with Nest but haven’t migrated to a Google account so the native plugin just doesn’t work for me. Luckily I got it just before it was deleted as I have only recently fully migrated from Homebridge to Home Assistant in the last week. At least for now it still works.

If we get native support for Nest 2FA then I will just use that. But if it ain’t broke…

Well, let’s hope the work here (https://github.com/home-assistant/core/pull/41119) pans out, looks like it’s progressing well.

I just added a nest hello doorbell to my system. The badnest integration is still working for my nest protects and two thermostats but isn’t picking up the new device. Not sure if there is any steps required to resync it.

I am currently using https://github.com/USA-RedDragon/badnest version 4.0.4. It looks like this has been taken down. I have found 3 different forks of this and wondering the difference between the three forks and which one the community recommends:
https://github.com/vinodmishra/badnest
https://github.com/therealryanbonham/badnest
https://github.com/mattsch/badnest

I can’t speak to some of the ones you mentioned but I was finding that none of them supported Nest authentication other than the original, so I’ve stuck with it. I’m pretty sure that’s true with mattsch’s repo. Not sure about the other two.

managed to get it all woprking…after changing to Google from Nest Logon

All seems to be good for now…just need to play about with some more of the available sensors from my two Nest Thermostats and 4 Nest Protects

Anyone got any idea if hot water control can be facilitated?

Also, os there a simple way to change the temp displayed to the nearest 0.5 of a degree?

mmm can’t get it working, usually when i get the error i do again the cookie thing with chrome (as the first installation) but now io can’t open home.nest.com in private mode…

The repository is gone?

I’ve been using @TheMattS’ repo (https://github.com/mattsch/Badnest) successfully for months, but looking at some of the replies to issues on his repo there’s a new integration in the works, that will use the official Nest/Google API, and is going to be merged in to Core. Have to say that’s brilliant news.

Matt, I just want to publicly thank you for all your hard work on this and for picking up the mantle.