Today I upgraded to version 1.11 after using 1.04 succesfully for a couple of months. In that period, I had to update my token and cookie twice until now.
After the update to 1.11 I cannot anymore read the data from my NEST. Changing the temperature is no problem but I always get the following message when trying to read the values:
pi@raspberrypi:~/nest-api $ bash get_nest.sh -d
PHP Notice: Undefined variable: result in /home/pi/nest-api/nest.class.php on line 1100
PHP Fatal error: Uncaught UnexpectedValueException: Response to login request doesn't contain required access token. Response: null in /home/pi/nest-api/nest.class.php:1100
Stack trace:
#0 /home/pi/nest-api/nest.class.php(1095): Nest->login(false)
#1 /home/pi/nest-api/nest.class.php(124): Nest->login()
#2 /home/pi/nest-api/get_nest.php(19): Nest->__construct(NULL, NULL, 'https://account...', '__Secure-3PSID=...')
#3 {main}
thrown in /home/pi/nest-api/nest.class.php on line 1100[/i]
I updated my nest.auth.php several times but without success.
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.