Page 13 of 14

Re: NEST Account migration

Posted: Monday 27 July 2020 15:50
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!

Re: NEST Account migration

Posted: Tuesday 18 August 2020 9:06
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:

Re: NEST Account migration

Posted: Thursday 20 August 2020 19:40
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

Re: NEST Account migration

Posted: Monday 24 August 2020 19:37
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.

Re: NEST Account migration

Posted: Monday 31 August 2020 21:23
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.

Re: NEST Account migration

Posted: Saturday 12 September 2020 19:46
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

Re: NEST Account migration

Posted: Sunday 13 September 2020 11:35
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

Re: NEST Account migration

Posted: Sunday 13 September 2020 11:45
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

Re: NEST Account migration

Posted: Tuesday 22 September 2020 9:37
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.

Re: NEST Account migration

Posted: Wednesday 23 September 2020 14:34
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.

Re: NEST Account migration

Posted: Wednesday 23 September 2020 17:29
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

Re: NEST Account migration

Posted: Thursday 24 September 2020 13:47
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....

Re: NEST Account migration

Posted: Thursday 08 October 2020 9:51
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?

Re: NEST Account migration

Posted: Saturday 17 October 2020 13:12
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.

Re: NEST Account migration

Posted: Sunday 01 November 2020 21:36
by rgroothuis
What is the best way to get Nest support into Domoticz? Which plugin? Suggestions?

Re: NEST Account migration

Posted: Sunday 01 November 2020 22:18
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

Re: NEST Account migration

Posted: Saturday 07 November 2020 19:37
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 :(

Re: NEST Account migration

Posted: Saturday 07 November 2020 20:14
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.

Re: NEST Account migration

Posted: Sunday 22 November 2020 13:38
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!

Re: NEST Account migration

Posted: Monday 21 December 2020 19:41
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