Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nest credentials with google account #100

Open
k-rock opened this issue Nov 28, 2019 · 25 comments
Open

Nest credentials with google account #100

k-rock opened this issue Nov 28, 2019 · 25 comments
Labels

Comments

@k-rock
Copy link

k-rock commented Nov 28, 2019

I am trying to run a php script that references this api.

when I try to run this, i get an error:
sudo /usr/bin/php update_nest_target_humidity.php
PHP Fatal error: Uncaught InvalidArgumentException: Nest credentials were not provided. in /home/homeassistant/.homeassistant/nest.class.php:120
Stack trace:
#0 /home/homeassistant/.homeassistant/update_nest_target_humidity.php(16): Nest->__construct()
#1 {main}
thrown in /home/homeassistant/.homeassistant/nest.class.php on line 120

@gboudreau
Copy link
Owner

If you migrated your Nest account to a Google account, you need to provide an issue_token and cookie to the Nest class constructor, instead of a username & password.
Ref: https://github.com/gboudreau/nest-api#using-a-google-account

@k-rock
Copy link
Author

k-rock commented Nov 28, 2019

thanks..I updated that! Now, I am seeing the following:

sudo /usr/bin/php update_nest_target_humidity.php
PHP Notice:  Undefined offset: 0 in /home/homeassistant/.homeassistant/nest.class.php on line 895
PHP Notice:  Undefined property: stdClass::$link in /home/homeassistant/.homeassistant/nest.class.php on line 345
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 345
PHP Notice:  Trying to get property 'structure' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 345
PHP Notice:  Undefined offset: 1 in /home/homeassistant/.homeassistant/nest.class.php on line 345
PHP Notice:  Undefined property: stdClass::$ in /home/homeassistant/.homeassistant/nest.class.php on line 346
PHP Notice:  Trying to get property 'away' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 346
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 347
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 347
PHP Notice:  Trying to get property 'current_schedule_mode' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 347
PHP Notice:  Undefined property: stdClass::$shared in /home/homeassistant/.homeassistant/nest.class.php on line 348
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 348
PHP Notice:  Trying to get property 'target_temperature_type' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 348
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 349
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 349
PHP Notice:  Trying to get property 'eco' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 349
PHP Notice:  Trying to get property 'mode' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 349
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 357
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 357
PHP Notice:  Trying to get property 'away_temperature_low_enabled' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 357
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 364
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 364
PHP Notice:  Trying to get property 'away_temperature_low_enabled' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 364
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 368
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 368
PHP Notice:  Trying to get property 'away_temperature_high_enabled' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 368
PHP Notice:  Undefined property: stdClass::$shared in /home/homeassistant/.homeassistant/nest.class.php on line 399
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 399
PHP Notice:  Trying to get property 'current_temperature' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 399
PHP Notice:  Undefined offset: 0 in /home/homeassistant/.homeassistant/nest.class.php on line 895
PHP Notice:  Undefined offset: 0 in /home/homeassistant/.homeassistant/nest.class.php on line 895
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 851
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 851
PHP Notice:  Trying to get property 'temperature_scale' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 851
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 400
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 400
PHP Notice:  Trying to get property 'current_humidity' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 400
PHP Notice:  Undefined property: stdClass::$shared in /home/homeassistant/.homeassistant/nest.class.php on line 401
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 401
PHP Notice:  Trying to get property 'hvac_ac_state' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 401
PHP Notice:  Undefined property: stdClass::$shared in /home/homeassistant/.homeassistant/nest.class.php on line 402
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 402
PHP Notice:  Trying to get property 'hvac_heater_state' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 402
PHP Notice:  Undefined property: stdClass::$shared in /home/homeassistant/.homeassistant/nest.class.php on line 403
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 403
PHP Notice:  Trying to get property 'hvac_alt_heat_state' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 403
PHP Notice:  Undefined property: stdClass::$shared in /home/homeassistant/.homeassistant/nest.class.php on line 404
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 404
PHP Notice:  Trying to get property 'hvac_fan_state' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 404
PHP Notice:  Undefined property: stdClass::$shared in /home/homeassistant/.homeassistant/nest.class.php on line 405
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 405
PHP Notice:  Trying to get property 'auto_away' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 405
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 408
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 408
PHP Notice:  Trying to get property 'leaf' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 408
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 409
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 409
PHP Notice:  Trying to get property 'battery_level' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 409
PHP Notice:  Undefined property: stdClass::$shared in /home/homeassistant/.homeassistant/nest.class.php on line 412
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 412
PHP Notice:  Trying to get property 'hvac_heater_state' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 412
PHP Notice:  Undefined property: stdClass::$shared in /home/homeassistant/.homeassistant/nest.class.php on line 413
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 413
PHP Notice:  Trying to get property 'hvac_heat_x2_state' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 413
PHP Notice:  Undefined property: stdClass::$shared in /home/homeassistant/.homeassistant/nest.class.php on line 414
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 414
PHP Notice:  Trying to get property 'hvac_heat_x3_state' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 414
PHP Notice:  Undefined property: stdClass::$shared in /home/homeassistant/.homeassistant/nest.class.php on line 415
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 415
PHP Notice:  Trying to get property 'hvac_alt_heat_state' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 415
PHP Notice:  Undefined property: stdClass::$shared in /home/homeassistant/.homeassistant/nest.class.php on line 416
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 416
PHP Notice:  Trying to get property 'hvac_alt_heat_x2_state' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 416
PHP Notice:  Undefined property: stdClass::$shared in /home/homeassistant/.homeassistant/nest.class.php on line 417
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 417
PHP Notice:  Trying to get property 'hvac_aux_heater_state' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 417
PHP Notice:  Undefined property: stdClass::$shared in /home/homeassistant/.homeassistant/nest.class.php on line 418
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 418
PHP Notice:  Trying to get property 'hvac_emer_heat_state' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 418
PHP Notice:  Undefined property: stdClass::$shared in /home/homeassistant/.homeassistant/nest.class.php on line 421
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 421
PHP Notice:  Trying to get property 'hvac_ac_state' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 421
PHP Notice:  Undefined property: stdClass::$shared in /home/homeassistant/.homeassistant/nest.class.php on line 422
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 422
PHP Notice:  Trying to get property 'hvac_cool_x2_state' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 422
PHP Notice:  Undefined property: stdClass::$shared in /home/homeassistant/.homeassistant/nest.class.php on line 423
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 423
PHP Notice:  Trying to get property 'hvac_cool_x3_state' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 423
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 427
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 427
PHP Notice:  Trying to get property 'auto_away_enable' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 427
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 429
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 429
PHP Notice:  Trying to get property 'away_temperature_low_enabled' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 429
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 430
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 430
PHP Notice:  Trying to get property 'away_temperature_high_enabled' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 430
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 436
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 436
PHP Notice:  Trying to get property 'time_to_target' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 436
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 438
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 438
PHP Notice:  Trying to get property 'serial_number' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 438
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 439
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 439
PHP Notice:  Trying to get property 'temperature_scale' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 439
PHP Notice:  Undefined offset: 0 in /home/homeassistant/.homeassistant/nest.class.php on line 895
PHP Notice:  Undefined property: stdClass::$track in /home/homeassistant/.homeassistant/nest.class.php on line 920
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 920
PHP Notice:  Trying to get property 'online' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 922
PHP Notice:  Trying to get property 'last_connection' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 923
PHP Notice:  Trying to get property 'last_connection' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 924
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 926
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 926
PHP Notice:  Trying to get property 'local_ip' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 926
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 927
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 927
PHP Notice:  Trying to get property 'mac_address' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 927
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 443
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 443
PHP Notice:  Trying to get property 'leaf_threshold_cool' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 443
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 444
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 444
PHP Notice:  Trying to get property 'leaf_threshold_heat' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 444
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 444
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 444
PHP Notice:  Trying to get property 'leaf_threshold_heat' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 444
PHP Notice:  Undefined offset: 0 in /home/homeassistant/.homeassistant/nest.class.php on line 895
PHP Notice:  Undefined offset: 0 in /home/homeassistant/.homeassistant/nest.class.php on line 895
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 851
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 851
PHP Notice:  Trying to get property 'temperature_scale' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 851
PHP Notice:  Undefined property: stdClass::$device in /home/homeassistant/.homeassistant/nest.class.php on line 447
PHP Notice:  Trying to get property '' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 447
PHP Notice:  Trying to get property 'has_humidifier' of non-object in /home/homeassistant/.homeassistant/nest.class.php on line 447
PHP Notice:  Undefined property: stdClass::$humidity in /home/homeassistant/.homeassistant/update_nest_target_humidity.php on line 16
PHP Fatal error:  Uncaught Exception: Missing input for outside temperature in /home/homeassistant/.homeassistant/update_nest_target_humidity.php:24
Stack trace:
#0 {main}
  thrown in /home/homeassistant/.homeassistant/update_nest_target_humidity.php on line 24

@gboudreau
Copy link
Owner

Line 895 mentioned in first warning: https://github.com/gboudreau/nest-api/blob/master/nest.class.php#L895

It seems no devices are listed in the response from the server.

Try to add a line, after line 1004:

[1004] $this->last_status = $status;
[1005] var_dump($status); die();

This will show you the complete response from the Nest server, which, I guess, would contain no devices.

Maybe inspecting this response will show you part of the solution... Maybe you have multiple homes, and the nest.class.php is using the wrong one..?

@k-rock
Copy link
Author

k-rock commented Nov 29, 2019

thanks.. I double checked my $issue_token & $cookies again and I get the same error.
I did what you suggested and have the printout. I don't see anything that stands out especially.. is this something I could e-mail you to take a look? I hesitate to paste here since it contains some personal info.

@gboudreau
Copy link
Owner

You can send it here: https://www.pommepause.com/contact/

@k-rock
Copy link
Author

k-rock commented Nov 30, 2019

super - were you able to see what i sent?

Repository owner deleted a comment from k-rock Nov 30, 2019
@gboudreau
Copy link
Owner

The Nest API returns no devices for the account you used. It has one structure (home/location), but no devices in that location.
I suggest you follow again the steps listed in the README, to get the proper cookies and issue_token values for the Google Account that is used to access your Nest devices.

@k-rock
Copy link
Author

k-rock commented Nov 30, 2019 via email

@bauzer714
Copy link
Contributor

Are you logged in more than one Google account? I had the same problem and needed to use incognito so it was only the one account

@k-rock
Copy link
Author

k-rock commented Nov 30, 2019 via email

@knappster1
Copy link

@k-rock I'm not sure if you ever worked this out. I had the same issue after someone inadvertently converted the nest account to a google account this morning. In my case, my google account then had to be added to the family and was not the primary account. When I used my account to set this up, I got the same messages as you and it did not list any devices. When I used the main google account, it seems to work fine.

@sparky672
Copy link

sparky672 commented Feb 24, 2021

Are you logged in more than one Google account? I had the same problem and needed to use incognito so it was only the one account

Yesterday I had a new issue where the google server was returning 403 errors on the transport URL. I generated new token and cookie and was able to get past this issue, but still not working correctly.

Currently having an issue where no devices are showing up, but it allows me to login without the 403 server errors. I just generated a new token and cookie using Chrome incognito mode but still nothing.

echo "Devices list (thermostats):\n<br/>";
$devices_serials = $nest->getDevices();
jlog($devices_serials);
echo "\n<br/>----------\n\n<br/><br/>";

Results in a blank list:

Devices list (thermostats): 

---------- 

The energy usage dump:

echo "Last 10 days energy report:\n<br/>";
$data = jlog($energy_report);
print_r($data);
echo "\n<br/>----------\n\n<br/><br/>";

Results in this:

Last 10 days energy report: 
{ 
"keys": [ 
"energy_latest.06AA0xxxxxxxxxxx" 
] 
} 
---------- 

Where 06AA0xxxxxxxxxxx is the serial number of my Nest Protect.

None of this is making any sense to me and was all working fine before yesterday.

Since I am no longer getting any error messages, and everything looks good on the Nest website and iOS app, not sure what would be the next step here.

@bauzer714
Copy link
Contributor

Any chance you're seeing this issue?

#115 (comment)

@sparky672
Copy link

Any chance you're seeing this issue?

#115 (comment)

I don't know. I migrated Nest to Google over a year ago and basically this was all working until yesterday's 403 errors, which after a new token/cookie turned into no more errors but a missing thermostat. I'm seeing the thermostat on the website and in the app. It's only when using this API that it is not seen. Not getting any server errors or PHP errors.

What I don't understand is if this API is simulating calls from the app or website (which are showing a device), then why is no device being returned to this API?

@bauzer714
Copy link
Contributor

@sparky672 - because Nest and Google change things and we have to react. Please recall this is a free open-source unofficial API and we're trying to help you. Can you help us, help you?

We've seen an increase of how devices are being accessed on the web site. Can you confirm which of the below URL formats you see when you access it on the website?

"I’m back to accessing my thermostat at https://home.nest.com/thermostat/{serial_number} rather than https://home.nest.com/thermostat/DEVICE_{some_identifier_not_serial_number}, "

@sparky672
Copy link

sparky672 commented Feb 24, 2021

@sparky672 - because Nest and Google change things and we have to react. Please recall this is a free open-source unofficial API and we're trying to help you. Can you help us, help you?

I fully recognize that you're only trying to help and greatly appreciate it. I apologize if my tone came across differently than that... I am genuinely confused about how this works, and not trying to provoke.

Can you confirm which of the below URL formats you see when you access it on the website?

https://home.nest.com/thermostat/DEVICE_18xxxxxxxxxxx

@bauzer714
Copy link
Contributor

As suspected. You're one of the ones that Nest decided to make an unsolicited update for:

Workaround is here: #115 (comment)

Other ones:

#136

#135

I've been patiently waiting for this to affect me so I can see if a code fix can be put in place. Until then or another developer is impacted the temporary fix is our best path.

@sparky672
Copy link

sparky672 commented Feb 24, 2021

As suspected. You're one of the ones that Nest decided to make an unsolicited update for:

Workaround is here: #115 (comment)

Other ones:

#136

#135

I've been patiently waiting for this to affect me so I can see if a code fix can be put in place. Until then or another developer is impacted the temporary fix is our best path.

THANK YOU ... now I know I have no choice but to do this reset. According to a commenter, I'm going to lose my history... this is not ideal and was hoping it wasn't the case.

@sparky672
Copy link

sparky672 commented Feb 24, 2021

Here is what I did to finally resolve the issue...

  1. Delete/remove the thermostat from account via app.
  2. Did the Reset -> "Reset WWN Connection" from the thermostat's settings menu.
  3. Re-add the thermostat to the account using the QR code and the iOS app.

It's working again!

Notes:

  • The "Reset" menu on the thermostat no longer shows a "Reset WWN Connection" option.
  • My history data was unaffected with one exception. I lost one day of history... the day of the WWN reset was empty.
  • $nest->getDevices() is not working.

@sparky672
Copy link

Although I am completely satisfied that I am able to retrieve my history data, $nest->getDevices() is not working.

Do not need device data, so it's just an FYI...

echo "Devices list (thermostats):\n<br/>";
$devices_serials = $nest->getDevices();
jlog($devices_serials);
echo "\n<br/>----------\n\n<br/><br/>";

Result:

Devices list (thermostats): 
 
---------- 

@themoosman
Copy link
Contributor

Here is what I did to finally resolve the issue...

  1. Delete/remove the thermostat from account via app.
  2. Did the Reset -> "Reset WWN Connection" from the thermostat's settings menu.
  3. Re-add the thermostat to the account using the QR code and the iOS app.

It's working again!

Notes:

  • The "Reset" menu on the thermostat no longer shows a "Reset WWN Connection" option.
  • My history data was unaffected with one exception. I lost one day of history... the day of the WWN reset was empty.
  • $nest->getDevices() is not working.

I can confirm that this workaround still works as of July 2021.

@bauzer714
Copy link
Contributor

Confirming this works as of September 2, 2021.

@themoosman
Copy link
Contributor

It only worked for me for a week or so, then it quit working. At this point, it's not worth trying to troubleshoot.

@bauzer714
Copy link
Contributor

That's disappointing. I looked into the new APIs a bit, and it looks like Google has made it more difficult to reverse engineer. If mine reverts again I may take another look and check out some of the other projects.

@sparky672
Copy link

FWIW: Mine still seems to be working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants