Works With Nest - Deprecating on August 31, 2019

As far as I know the solution would be to move away from Nest since they explicitly state they will only allow a few select partners access to their products.
Anything else would involve screen scraping or other workarounds.

Well this could be promising news. Not only is Google releasing a “Device Access Program” for partners, they are also working on a “Device Access Program” for individuals!

1 Like

Based on Engageit, there is probably no hope that openHAB would be allowed as a project.

third-parties that want to join the program will have to pass an annual security assessment.

I doubt they will do the assessment for free, and sadly, I doubt OH would pass an assessment depending on what they look at (e.g. OH has no authentication and authorization locally).

But indeed, the private integrations does look promising indeed. But knowing Google it will probably be this time next year before it’s released. We can hope they don’t kill the Works with Nest API completely before they offer this option. Definitely something to watch. While I’m getting rid of my Nest thermostat I still have a Nest Hello. It would be nice to get doorbell alerts into OH.

1 Like

I wonder if there is a way to work around this using openhabs existing assistant integration. Set up a bunch of dummy devices for assistant to write to and set up routines (on the Google side) to change those dummy devices based on the real nest device states?

If I’m understanding correctly, the problem is that nest can read and change the openhab states, but openhab can’t read or change the nest states anymore.

I would mess around with this myself, but recently moved and the nest thermostat doesn’t like my baseboard water radiator system… Nest leaves it on all the time right now (no c wire from my system, and since I’m in a condo, no easy access to the wire feed points, I’ll probably set up a 24v transformer to get nest or similar to work eventually)

Can routines do that, and can routines run without being manually triggered? That was not the case the last time I did anything with routines. You had to manually trigger them and there was no way to take one piece of information (e.g. the Nest current temp) and use that value in the action you perform in the routine. But based on some of the descriptions from the recent announcements that might change.

1 Like

I returned 2 Nest Protects to Tink, due to the API thing.
See killedbygoogle for other products, that were or will be discontinued.

had to re-install openhab, anyway to get the connection back up as cant generate new pincode?
i see there is a workaround for homeassistant at the bottom of the comments here:

didnt know if there is anyway for openhab?
My connections are still showing as alive in the nest app.

Have you created backups? In particular backups of $OH_USERDATA. If you restore a backup of $OH_USERDATA to the new instance it should work I think. If not, I’m not sure what you can do.

The workaround on the HA thread is basically to do just that, restore from a backup that worked.

Hey Rich -

Is there a tutorial around on how to do that? I don’t think I’ve ever some across this before.

Well, if you didn’t create a backup it’s already too late.

If you are on Linux: https://www.openhab.org/docs/installation/linux.html#backup-and-restore

If you are running openHABian: https://www.openhab.org/docs/installation/openhabian.html#system-backup-maintenance

If you are running on Windows: https://www.openhab.org/docs/installation/windows.html#backup

If you are Mac: https://www.openhab.org/docs/installation/macos.html#backup-and-restore

On Linux and openHABian you can access the backup and restore scripts through openhab-cli.

Yep I sure did make a backup, who doesn’t… :roll_eyes:
Seems that after a couple of restarts its connected, don’t know what happened there, was just saying ‘Polling query’.
Back online now… phew…

2 Likes

Thanks Rich,

I guess I don’t know what “$OH_USERDATA” is. I have back up of all of my stuff in /etc/openhab2 (i.e. sitemaps, .item files, .rules files etc etc) as well as my persistence data that I backup to a separate machine daily via a cron job and through a samba connection.

Is this the data you are referring to as $OH_USERDATA is or does that imply something else?

Glad it’s working. I frequently see flaky behavior from Nest these days. I can’t wait for my replacement to ship.

There is a similar table on the installation docs for each platform.

When you run openhab-cli backup or the backup script manually it backs up both $OH_CONF and $OH_USERDATA.

To backup openHAB data you should use openhab-cli backup.

1 Like

That is not a complete backup, unfortunately.

1 Like

Hey all - wondering if it is still possible to switch from using the OH Nest 1.x binding to the 2.x binding during this EOL that we’re in? I tried installing the 2.x binding alongside my 1.x binding and putting in the same account credentials but that didn’t work. I’m reluctant to do much in fear of breaking the current working condition of what I have now.

I doubt it. I think it requires generating a new pin which you can’t do any more.

Do you have the access token, productid and productsecret?
If so Did you try manually creating the thing file.
Don’t know what you needed for 1.x

Got it - didn’t remember that I would need a different PIN.

A long time ago I tried the 2.x binding and ran into bugs so I went back to the 1.x. I’m wondering if I already have a PIN generated for this. I tried logging in to look here: https://developers.nest.com/

It wanted me to connect my NEST account to Google. I declined because I think this is what others describe as “coverting” their Nest account to a Google account, breaking the current functionality.

Any idea if it is possible to log in somewhere to view previously generated credentials?

The pin is a one time used password of sorts which gets used to generate the true secret key that is actually used to authenticate with the best service.

I don’t know if it’s possible to just find and copy it over to the new binding or where it goes.

No, they turned that capability off.

should be able to use the nest.cfg items in the 2.x thing file as follows:

Bridge nest:account:whatevername "Smoke Alarms" @ "Nest" [ productId="1.xproductid", productSecret="1.xproductsecret", accessToken="1.xpincode" ] {}

Then discover your items and manually add them in after

Looking at the 1.x binding i’m sure the pin code is actually the access token just labelled wrong, if not then if you go to the thing in paperui it has a field for pincode, hopefully it works.
Or does the v1 binding store an access_Token somewhere that can be discovered manually?