NEST Account migration

For heating/cooling related questions in Domoticz

Moderator: leecollings

jberinga
Posts: 53
Joined: Tuesday 11 August 2015 14:20
Target OS: NAS (Synology & others)
Domoticz version: 2.2903
Location: The Netherlands
Contact:

Re: NEST Account migration

Post by jberinga »

jberinga wrote: Friday 24 July 2020 8:32 https://github.com/rolandbreedveld/nest-api

Just looking for a confirmation: Is this also working on a Synology NAS with Domoticz running?
To answer my own question :D : Yes it is also working on an Synology NAS

Thanks Roland for creating this!
Superdeboer
Posts: 10
Joined: Tuesday 21 April 2020 10:10
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Netherlands
Contact:

Re: NEST Account migration

Post by Superdeboer »

CPtje wrote: Friday 24 July 2020 11:32 A strange thing that caught my eye was the beginning of the cookies value: '$cookies = '__Secure-3PSID=zg...'
I have never before seen it beginning with "___Secure"

Again, updating my NEST with a new temperature works! So I would think that authentication should work fine, but the above info says something diferently. So I am really puzzled.

Any help to solve this would be welcome.
My cookie expired, so I had to get a new one following the instructions on https://github.com/rolandbreedveld/nest-api.
I get the same value starting with "___Secure", which I never have seen before either. But after updating nest.auth.php with the new values, it still doesn't work.
Also, when I run "bash get_nest.sh -d" on command line, I get an error message identical to the one you posted. I am puzzled... but if I understand correctly, just waiting solves this all in magic way. :lol:
rvanderaa
Posts: 1
Joined: Thursday 20 August 2020 19:35
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEST Account migration

Post by rvanderaa »

hello

I have a problem with the setpoint when I change it he doesn't change it on the nest and after a while he changes it into domoticz back to what it says on the nest.

how can I fix this
shenkie
Posts: 2
Joined: Wednesday 12 December 2018 22:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEST Account migration

Post by shenkie »

Superdeboer wrote: Tuesday 18 August 2020 9:06
CPtje wrote: Friday 24 July 2020 11:32 A strange thing that caught my eye was the beginning of the cookies value: '$cookies = '__Secure-3PSID=zg...'
I have never before seen it beginning with "___Secure"

Again, updating my NEST with a new temperature works! So I would think that authentication should work fine, but the above info says something diferently. So I am really puzzled.

Any help to solve this would be welcome.
My cookie expired, so I had to get a new one following the instructions on https://github.com/rolandbreedveld/nest-api.
I get the same value starting with "___Secure", which I never have seen before either. But after updating nest.auth.php with the new values, it still doesn't work.
Also, when I run "bash get_nest.sh -d" on command line, I get an error message identical to the one you posted. I am puzzled... but if I understand correctly, just waiting solves this all in magic way. :lol:
I have the same issue. I needed to refresh the cookies, but the $cookies; value started with ___Secure as well, which it didn't before.
Nest-API won't update now and throws an error when running get_nest.
djalexnl
Posts: 18
Joined: Sunday 12 August 2018 11:25
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: NEST Account migration

Post by djalexnl »

Same problem after expiring .... any change how to fix this??

shenkie wrote: Monday 24 August 2020 19:37
Superdeboer wrote: Tuesday 18 August 2020 9:06
CPtje wrote: Friday 24 July 2020 11:32 A strange thing that caught my eye was the beginning of the cookies value: '$cookies = '__Secure-3PSID=zg...'
I have never before seen it beginning with "___Secure"

Again, updating my NEST with a new temperature works! So I would think that authentication should work fine, but the above info says something diferently. So I am really puzzled.

Any help to solve this would be welcome.
My cookie expired, so I had to get a new one following the instructions on https://github.com/rolandbreedveld/nest-api.
I get the same value starting with "___Secure", which I never have seen before either. But after updating nest.auth.php with the new values, it still doesn't work.
Also, when I run "bash get_nest.sh -d" on command line, I get an error message identical to the one you posted. I am puzzled... but if I understand correctly, just waiting solves this all in magic way. :lol:
I have the same issue. I needed to refresh the cookies, but the $cookies; value started with ___Secure as well, which it didn't before.
Nest-API won't update now and throws an error when running get_nest.
Ptje
Posts: 73
Joined: Sunday 06 March 2016 23:56
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Schaijk
Contact:

Re: NEST Account migration

Post by Ptje »

Hello Roland,

Are there minimum installations need it to make the script work ? Mine worked, but my installation did get corrupted. Nu I have a clean Buster, fully updated with Domoticz Beta. I did install and config, your Nest script, but get a error.

"get_nest.sh: line 39: php: command not found" Do I mis software ?

Greetings,
Peter
User avatar
rolandbreedveld
Posts: 156
Joined: Wednesday 09 March 2016 11:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Contact:

Re: NEST Account migration

Post by rolandbreedveld »

Ptje wrote: Saturday 12 September 2020 19:46 Hello Roland,

Are there minimum installations need it to make the script work ? Mine worked, but my installation did get corrupted. Nu I have a clean Buster, fully updated with Domoticz Beta. I did install and config, your Nest script, but get a error.

"get_nest.sh: line 39: php: command not found" Do I mis software ?

Greetings,
Peter
Hi
Line 39 is a php call, so I look likes you don't have php installed, if so, you missed some part of the readme:

This script needs php, so be shure it's installed:
sudo apt install php php-curl php-cli php-common

see the full instructions on:
https://github.com/rolandbreedveld/nest-api
Raspberry Pi(SSD)+UPS HAT,Dashticz on WallTablet,HomeBridge, P1, HarmonyHub,FritzBox,API to 123Solar+ABB-PowerOne+SMA,ESP-Leds(flashed LSC),Tasmota,Shelly,MQTT,Mosquito,Node-Red,http://wiki.breedveld.net/index.php?title=RPiWaterMeter, Mercedes-Me
User avatar
rolandbreedveld
Posts: 156
Joined: Wednesday 09 March 2016 11:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Contact:

Re: NEST Account migration

Post by rolandbreedveld »

djalexnl wrote: Monday 31 August 2020 21:23 Same problem after expiring .... any change how to fix this??


I get the same value starting with "___Secure", which I never have seen before either. But after updating nest.auth.php with the new values, it still doesn't work.
Also, when I run "bash get_nest.sh -d" on command line, I get an error message identical to the one you posted. I am puzzled... but if I understand correctly, just waiting solves this all in magic way. :lol:
Hi
The cookie looks different, I think you didn't cut and paste the whole cookie, begin and end of the cookie I looked up today:

$cookies = 'ANID=AHWqTUm34xxxxxxxxxicCyrDe7ZK; __Secure-3PSID=0weuJUhAIxxxxJguPwn_uZcX5UFkexxxxxxxxMV0Vn5A.; __Host-......<a lot more info> .......4k5s86S4iVU; __Secure-3PSIDCC=AJi4QfEHwnHxxxxxxxxxxxx14FW22nHSpX2AcT2hqxNw';

"___Secure" is part of the cookie, but there should be more date before this, in total the cookie should have about 800 or more caracters.

regards, Roland
Raspberry Pi(SSD)+UPS HAT,Dashticz on WallTablet,HomeBridge, P1, HarmonyHub,FritzBox,API to 123Solar+ABB-PowerOne+SMA,ESP-Leds(flashed LSC),Tasmota,Shelly,MQTT,Mosquito,Node-Red,http://wiki.breedveld.net/index.php?title=RPiWaterMeter, Mercedes-Me
Superdeboer
Posts: 10
Joined: Tuesday 21 April 2020 10:10
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Netherlands
Contact:

Re: NEST Account migration

Post by Superdeboer »

This is strange. I tried it again, but I do not get a value with "ANID" at the beginning, like you.
I followed the steps from your instructions carefully, but my cookie starts with "__Secure-3PSID".

Could it be that there are different Google accounts that get different structures for the cookie?
I paired my Google Nest after the account migration that started this thread. So I did not have an old Nest account.

[edit]
Buuuuut... with the cookie values that I retrieved today (note: still not with the extra data before the __Secure-3PSID that rolandbreedveld mentioned!) it does indeed work again, like magic. I don't understand what happened or what the difference is between last time and this time, so that's a pity, because I cannot analyze the problem that I had before. But giving it another try certainly is worth it.
User avatar
rolandbreedveld
Posts: 156
Joined: Wednesday 09 March 2016 11:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Contact:

Re: NEST Account migration

Post by rolandbreedveld »

Superdeboer wrote: Tuesday 22 September 2020 9:37 This is strange. I tried it again, but I do not get a value with "ANID" at the beginning, like you.
I followed the steps from your instructions carefully, but my cookie starts with "__Secure-3PSID".

Could it be that there are different Google accounts that get different structures for the cookie?
I paired my Google Nest after the account migration that started this thread. So I did not have an old Nest account.

[edit]
Buuuuut... with the cookie values that I retrieved today (note: still not with the extra data before the __Secure-3PSID that rolandbreedveld mentioned!) it does indeed work again, like magic. I don't understand what happened or what the difference is between last time and this time, so that's a pity, because I cannot analyze the problem that I had before. But giving it another try certainly is worth it.
I have a Google account, my previously used Nest account is not in use anymore.
There are multiple different cookies, and tokens, it's important to take the right one, perhaps that can be the issue?

Still looking for a way to do this automatically, but didn't find a way yet to use wget or curl to extract the cookie and token.
Raspberry Pi(SSD)+UPS HAT,Dashticz on WallTablet,HomeBridge, P1, HarmonyHub,FritzBox,API to 123Solar+ABB-PowerOne+SMA,ESP-Leds(flashed LSC),Tasmota,Shelly,MQTT,Mosquito,Node-Red,http://wiki.breedveld.net/index.php?title=RPiWaterMeter, Mercedes-Me
blackie
Posts: 5
Joined: Tuesday 19 November 2019 14:55
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEST Account migration

Post by blackie »

I received a message from google that their long time ago promised API for Nest devices direct access is available for developers and individuals:
https://developers.googleblog.com/2020/ ... nsole.html
Is there a chance to use the new Google API to directly access Nest device from domoticz?
https://developers.google.com/nest/device-access
RobvdB
Posts: 8
Joined: Wednesday 29 June 2016 20:13
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: NEST Account migration

Post by RobvdB »

I just subscribed to this service too. Looks like this could well be integrated into Domoticz. You can create OAth credentials, create an API key and you have to assign the SDM service to it. Seems like there is some "sensitivity" involved according to mr Google, and you have to submit your app to the trust and security team, validate your domain via a DNS TXT record etc. That may take up to 6 weeks. While I am enthousiastic about Google finally opening up their API, I am also concerned about the complex workflow to achieve this. But it might be my fault too....
Synology DS213, RFXtrx433E, COCO, HomeEasy, Promax, Denon, Philips TV, Logitech Harmony, Nest, Smart meters.
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEST Account migration

Post by rgroothuis »

I've a brand new "Nest Learning Thermostat." which I want to install in Domoticz. I've browsed through the discussion thread. What is unclear for me if I can use the Domoticz build in Nest support of if I need to use the plug in that has been discussed in this thread. Can you advice me which route to take?
kitopopo
Posts: 59
Joined: Monday 03 December 2018 11:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEST Account migration

Post by kitopopo »

Dear friend. Does this process from the beginning of this post still work after the new double authentication nest integration? recently every time I log in to my nest account an authentication code is sent to me and I have the box disabled so that the code is not sent, it is a new google measure. It still works and can nest be integrated into domoticz?

Thanks in advanced.

Best regards.
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEST Account migration

Post by rgroothuis »

What is the best way to get Nest support into Domoticz? Which plugin? Suggestions?
Basssment
Posts: 38
Joined: Thursday 18 October 2018 14:04
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: netherlands, Kuuk
Contact:

Re: NEST Account migration

Post by Basssment »

rgroothuis wrote: Sunday 01 November 2020 21:36 What is the best way to get Nest support into Domoticz? Which plugin? Suggestions?
This worked for me!
Read all the lines verry closely!


https://github.com/rolandbreedveld/nest-api
tinushigh
Posts: 4
Joined: Friday 03 January 2020 20:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEST Account migration

Post by tinushigh »

Basssment wrote: Sunday 01 November 2020 22:18
rgroothuis wrote: Sunday 01 November 2020 21:36 What is the best way to get Nest support into Domoticz? Which plugin? Suggestions?
This worked for me!
Read all the lines verry closely!


https://github.com/rolandbreedveld/nest-api
Is this still working for you? Mine stopped working halfway August and nothing seems to work :(
Basssment
Posts: 38
Joined: Thursday 18 October 2018 14:04
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: netherlands, Kuuk
Contact:

Re: NEST Account migration

Post by Basssment »

tinushigh wrote: Saturday 07 November 2020 19:37
Basssment wrote: Sunday 01 November 2020 22:18
rgroothuis wrote: Sunday 01 November 2020 21:36 What is the best way to get Nest support into Domoticz? Which plugin? Suggestions?
This worked for me!
Read all the lines verry closely!


https://github.com/rolandbreedveld/nest-api
Is this still working for you? Mine stopped working halfway August and nothing seems to work :(
Yes still werking. Possibly you need to renew your cookie and auth key. Then it Will work again.
Basssment
Posts: 38
Joined: Thursday 18 October 2018 14:04
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: netherlands, Kuuk
Contact:

Re: NEST Account migration

Post by Basssment »

Now we are using our heating again since the summer i notice that the eco mode will set my nest to 11.9 degrees
In my nest app this should be 16.5 degrees.
Looks like this script is overruling that.

There is no problem but i would like to set the temp on ecomode/away mode to 16.5 but cant find the setting for this in the scripts.
Anyone knows where to find this?

Thanx!
Ptje
Posts: 73
Joined: Sunday 06 March 2016 23:56
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Schaijk
Contact:

Re: NEST Account migration

Post by Ptje »

Hello,

I still have something that is not right. When my domoticz sets away on in domoticz, I think sometimes The DzVenst script does set the normaal temperature gets the same setting as the away temperature. My DzVents is not so good that I can change this by my self. Does anyone knows how to change this ?

Greetings,
Peter
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest