NEST Account migration

For heating/cooling related questions in Domoticz

Moderator: leecollings

krizzz
Posts: 200
Joined: Wednesday 20 November 2013 20:36
Target OS: Linux
Domoticz version:
Location: The Netherlands
Contact:

Re: NEST Account migration

Post by krizzz »

rolandbreedveld wrote: Tuesday 10 March 2020 12:30
krizzz wrote: Monday 09 March 2020 20:39 - Also I tried to add the line

Code: Select all

*/5 * * * * /home/pi/nest-api/get_nest.sh >/dev/null 2>&1
to my crontab but the nest devices are not updating so probably the code does not work. See below my crontab entries, anyones spots a problem?
did you try a call by hand?, to see if there are errors: first the read-call:
php get_nest.php
then the call to update a device, example here is for the away,heat or eco device (replace IDX for the number of 1 of your devices:
curl -X GET "http://127.0.0.1/json.htm?type=command& ... itchcmd=On"
(don't forget to remove the cache files if you use a different user, see the readme)
krizzz wrote: Monday 09 March 2020 20:39 0 10 * * * sudo ~/domoticz/scripts/speedtest.sh
0 22 * * * sudo ~/domoticz/scripts/speedtest.sh
*/5 * * * * /home/pi/nest-api/get_nest.sh >/dev/null 2>&1[/code]
And Yes, the speedtest.sh file works fine
what is the content of the speedtest script?
get_nest.sh and the dzvents script are consuming a bit cpu when running, but this is very short, but if you measure cpu exact the same time, you get wrong results, as said before in this treath, a lot of people (also on the "High CPU usage with node" issue) are using top, top is a nice tool to see top-processes and to look at the wait-io,but not usable to measure cpu-usage.
(This is always the problemen if you take a sample, while other processes are running)
on unix the best way to do reliable cpu performance measurement,is sar (e.q. "sar 60 100")
more about sar: https://www.raspberrypi.org/forums/view ... hp?t=72274

28% because of this script, unless something is wrong, looks impossible to me, see also the post in this threat from "01 Mar 2020, 17:21"
my old pi2, with a lot of stuff running on it, Domoticz, 2 node instances, mqtt broker, 123solar, a lot of cron-scripts and cacti uses about 15%
Hi Roland,

Just to answer your first question:
did you try a call by hand?, to see if there are errors: first the read-call:
php get_nest.php

Code: Select all

pi@raspberrypi:~/nest-api $ php get_nest.php
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...', 'OCAK=FHNvtovcbZ...')
#3 {main}
  thrown in /home/pi/nest-api/nest.class.php on line 1100
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 »

krizzz wrote: Thursday 19 March 2020 21:31

Code: Select all

pi@raspberrypi:~/nest-api $ php get_nest.php
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...', 'OCAK=FHNvtovcbZ...')
#3 {main}
  thrown in /home/pi/nest-api/nest.class.php on line 1100
Vermoedelijk is je token-variabele niet in orde, check die eens
$issue_token = 'https://accounts.google.com/o/oauth2/if ... e.nest.com';

het is een hele lange variable, de xxxxx staan voor de rest
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 »

for those who are using my nest-api script, and have problems,
you can call it now with "-d" option for extra debug info, see the readme:
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
krizzz
Posts: 200
Joined: Wednesday 20 November 2013 20:36
Target OS: Linux
Domoticz version:
Location: The Netherlands
Contact:

Re: NEST Account migration

Post by krizzz »

rolandbreedveld wrote: Friday 20 March 2020 11:24
krizzz wrote: Thursday 19 March 2020 21:31

Code: Select all

pi@raspberrypi:~/nest-api $ php get_nest.php
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...', 'OCAK=FHNvtovcbZ...')
#3 {main}
  thrown in /home/pi/nest-api/nest.class.php on line 1100
Vermoedelijk is je token-variabele niet in orde, check die eens
$issue_token = 'https://accounts.google.com/o/oauth2/if ... e.nest.com';

het is een hele lange variable, de xxxxx staan voor de rest
I looked up the method again on your GitHub how to get the token. I tried various time the same procedure, and I really do not think I have done anything wrong. Please see below the part I copy paste into the nest.auth.php file:
Image

it is correct right?
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 »

krizzz wrote: Friday 20 March 2020 22:16
I looked up the method again on your GitHub how to get the token. I tried various time the same procedure, and I really do not think I have done anything wrong. Please see below the part I copy paste into the nest.auth.php file:
Image

it is correct right?
Looks good,but I think this error shows not a wrong token but a typo-failure, like if you forgot something like the '; on the end
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
krizzz
Posts: 200
Joined: Wednesday 20 November 2013 20:36
Target OS: Linux
Domoticz version:
Location: The Netherlands
Contact:

Re: NEST Account migration

Post by krizzz »

rolandbreedveld wrote: Saturday 21 March 2020 11:38
krizzz wrote: Friday 20 March 2020 22:16
I looked up the method again on your GitHub how to get the token. I tried various time the same procedure, and I really do not think I have done anything wrong. Please see below the part I copy paste into the nest.auth.php file:
Image

it is correct right?
Looks good,but I think this error shows not a wrong token but a typo-failure, like if you forgot something like the '; on the end
I double checked it, but the '; paramaters are set perfectly. So this isn't also it.

I do noticed something in the nest-api folder. Other PHP files are getting a color. The nest.auth.php file does not. I do not know If this is strange behaviour?

Image

Also running the file does nothing:

Code: Select all

pi@raspberrypi:~/nest-api $ php nest.auth.php
pi@raspberrypi:~/nest-api $ 
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 »

krizzz wrote: Saturday 21 March 2020 13:35
I do noticed something in the nest-api folder. Other PHP files are getting a color. The nest.auth.php file does not. I do not know If this is strange behaviour?

Also running the file does nothing:

Code: Select all

pi@raspberrypi:~/nest-api $ php nest.auth.php
pi@raspberrypi:~/nest-api $ 
you can't run this auth file, this is a configuration file, you should run "php get_nest.php"
and colors stands for rights in unix, use "ls -al"
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
Dennist1985
Posts: 2
Joined: Thursday 08 September 2016 19:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Netherlands
Contact:

Re: NEST Account migration

Post by Dennist1985 »

Outside Domoticz it works fine but inside it spits ou the following in log.
Anything I can do?

2020-03-22 14:22:48.566 Status: PluginSystem: Entering work loop.
2020-03-22 14:22:48.757 Error: (GoogleNest) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/googlenest/:/usr/lib/python3.4/:/usr/lib/python3.4/plat-arm-linux-gnueabihf:/usr/lib/python3.4/lib-dynload:/usr/local/lib/python3.4/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.4/dist-packages:/usr/lib/dist-python'.
2020-03-22 14:22:48.757 Error: (Nest thermostaat) Module Import failed, exception: 'ImportError'
2020-03-22 14:22:48.757 Error: (Nest thermostaat) Module Import failed: ' Name: requests'
2020-03-22 14:22:48.757 Error: (Nest thermostaat) Error Line details not available.
greenwitch
Posts: 24
Joined: Saturday 26 May 2018 18:30
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Contact:

Re: NEST Account migration

Post by greenwitch »

Hi,

I have problem with functioning of plugin.
What works perfectly:
1) connecting to Nest servers
2) creating devices
3) refreshing status changed remotely on all 5 devices
4) setting up thermostat temperature
5) switching home/away

not working
1) switching heating on/off -> switch does not change inside domoticz and do not change nest thermostat setting
2) switch eco on/off -> switch does not change inside domoticz and do not change nest thermostat setting

I attach log:
"2020-03-22 14:22:57.206 (Nest) Start thread Push
2020-03-22 14:22:57.175 Status: User: admin initiated a switch command
(318/Nest - Hallway Away/On)
2020-03-22 14:22:58.082 (Nest - Hallway Away) Updating device from
0:'0' to have values 1:'1'.
2020-03-22 14:22:58.088 (Nest) Update Nest - Hallway Away: 1 - '1'
2020-03-22 14:22:58.088 (Nest) End thread Push
2020-03-22 14:23:00.685 (Nest) Pushing 'onCommandCallback' on to queue
2020-03-22 14:23:00.729 (Nest) Processing 'onCommandCallback' message
2020-03-22 14:23:00.729 (Nest) Calling message handler 'onCommand'.
2020-03-22 14:23:00.729 (Nest) onCommand called for Unit 1: Parameter
'Off', Level: 1
2020-03-22 14:23:00.729 (Nest) Hallway - Nest - Hallway Heating
2020-03-22 14:23:00.685 Status: User: admin initiated a switch command
(317/Nest - Hallway Heating/Off)
2020-03-22 14:23:01.790 (Nest) Pushing 'onCommandCallback' on to queue
2020-03-22 14:23:01.790 Status: User: admin initiated a switch command
(319/Nest - Hallway Eco mode/On)
2020-03-22 14:23:02.697 (Nest) End thread Push
2020-03-22 14:23:04.215 (Nest) Pushing 'onHeartbeatCallback' on to queue
2020-03-22 14:23:04.250 (Nest) Processing 'onHeartbeatCallback' message
2020-03-22 14:23:04.250 (Nest) Calling message handler 'onHeartbeat'.
2020-03-22 14:23:04.250 (Nest) onHeartbeat called
2020-03-22 14:23:04.251 (Nest) Start thread
2020-03-22 14:23:04.251 (Nest) Thread: GetNestCredentials done
2020-03-22 14:23:04.980 (Nest) Thread: GetDevicesAndStatus done
2020-03-22 14:23:04.980 (Nest) End thread"

Does anybody have any idea why and how to fix it?

Adam
greenwitch
Posts: 24
Joined: Saturday 26 May 2018 18:30
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Contact:

Re: NEST Account migration

Post by greenwitch »

rolandbreedveld wrote: Saturday 21 March 2020 16:14 My setpoint device is called "Nest", so you perhaps you need to change it.
Better don't use spaces in the device names if you call them from dzvents event's. I had a couple of times problems with this, removing the spaces solved it.
Hi,

You can change it like this:


-- Nest SetPoint
-- dzVents script for updatting SetPoint of Nest thermostat with Google account
-- [email protected]
-- the name of my device is "Nest", change it if you likei, on both places.
local Nest = 'Przedpokój termostat'
return{
on = {
devices = {
Nest
}
},
execute = function(domoticz, device)
local setpoint = tostring(domoticz.devices(Nest).setPoint)
print("Nest Setpoint Called, change SetPoint to :" .. setpoint .. " ...")
cmd = "/usr/bin/php /home/pi/nest-api/nest_setpoint.php " .. setpoint
os.execute(cmd)
end

}

Then you can haver any name with any signs with spaces etc and dzvents will work flawlessly and it is easier to explain what to change :-)

Adam
leewi
Posts: 1
Joined: Tuesday 24 March 2020 10:16
Target OS: -
Domoticz version:
Contact:

Re: NEST Account migration

Post by leewi »

krizzz wrote: Saturday 21 March 2020 13:35
rolandbreedveld wrote: Saturday 21 March 2020 11:38
krizzz wrote: Friday 20 March 2020 22:16
I looked up the method again on your GitHub how to get the token. I tried various time the same procedure, and I really do not think I have done anything wrong. Please see below the part I copy paste into the nest.auth.php file:
Image

it is correct right?
Looks good,but I think this error shows not a wrong token but a typo-failure, like if you forgot something like the '; on the end
I double checked it, but the '; paramaters are set perfectly. So this isn't also it.

I do noticed something in the nest-api folder. Other PHP files are getting a color. The nest.auth.php file does not. I do not know If this is strange behaviour?

Image

Also running the file does nothing:

Code: Select all

pi@raspberrypi:~/nest-api $ php nest.auth.php
pi@raspberrypi:~/nest-api $ 

Did you solve the problem?
This morning I suddenly have the same issue, re-checked the token and cookie but didn't solve. Was working everything correctly a few days ago.
krizzz
Posts: 200
Joined: Wednesday 20 November 2013 20:36
Target OS: Linux
Domoticz version:
Location: The Netherlands
Contact:

Re: NEST Account migration

Post by krizzz »

leewi wrote:
krizzz wrote: Saturday 21 March 2020 13:35
rolandbreedveld wrote: Saturday 21 March 2020 11:38 Looks good,but I think this error shows not a wrong token but a typo-failure, like if you forgot something like the '; on the end
I double checked it, but the '; paramaters are set perfectly. So this isn't also it.

I do noticed something in the nest-api folder. Other PHP files are getting a color. The nest.auth.php file does not. I do not know If this is strange behaviour?

Image

Also running the file does nothing:

Code: Select all

pi@raspberrypi:~/nest-api $ php nest.auth.php
pi@raspberrypi:~/nest-api $ 

Did you solve the problem?
This morning I suddenly have the same issue, re-checked the token and cookie but didn't solve. Was working everything correctly a few days ago.
Nope!


Verzonden vanaf mijn iPhone met Tapatalk
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 »

Today I had the same issue, if you run "get_nest.sh", or "php get_nest.php"
PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Response to login request doesn't contain required access token. Response: {"error":"USER_LOGGED_OUT","detail":"No active session found."}' in /home/pi/nest-api/nest.class.php:1100

for some reason the token and cookie stopped working after running fine for 2 months in my case
Did the steps in the readme again, don't forget to logout/login on the nest site, replaced the cookie and token with new ones, and it's working fine again.

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
krizzz
Posts: 200
Joined: Wednesday 20 November 2013 20:36
Target OS: Linux
Domoticz version:
Location: The Netherlands
Contact:

Re: NEST Account migration

Post by krizzz »

So, really weird. When executing the

Code: Select all

php nest.auth.php
I am still receiving the login error.

But after fixing my crontab entry, the problem was that I added the script into the pi crontab and not root crontab, all devices are being updated. Also controlling al o the devices do change my Nest thermostat! So all is working, so why the strange error when executing the nest.auth.ph file. I don't know!
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 »

krizzz wrote: Wednesday 25 March 2020 21:11 So, really weird. When executing the

Code: Select all

php nest.auth.php
I am still receiving the login error.

But after fixing my crontab entry, the problem was that I added the script into the pi crontab and not root crontab, all devices are being updated. Also controlling al o the devices do change my Nest thermostat! So all is working, so why the strange error when executing the nest.auth.ph file. I don't know!
you can't run nest.auth.php, this is a config file.
if you use different users, be sure you delete the cache files, see the readme
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
krizzz
Posts: 200
Joined: Wednesday 20 November 2013 20:36
Target OS: Linux
Domoticz version:
Location: The Netherlands
Contact:

Re: NEST Account migration

Post by krizzz »

rolandbreedveld wrote: Thursday 26 March 2020 9:50
krizzz wrote: Wednesday 25 March 2020 21:11 So, really weird. When executing the

Code: Select all

php nest.auth.php
I am still receiving the login error.

But after fixing my crontab entry, the problem was that I added the script into the pi crontab and not root crontab, all devices are being updated. Also controlling al o the devices do change my Nest thermostat! So all is working, so why the strange error when executing the nest.auth.ph file. I don't know!
you can't run nest.auth.php, this is a config file.
if you use different users, be sure you delete the cache files, see the readme
https://github.com/rolandbreedveld/nest-api
And once again, you are right. I ran

Code: Select all

php get_nest_update
and received regular output.
Probably renewing the cookie and token was key in this.
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 »

krizzz wrote: Thursday 26 March 2020 9:57 And once again, you are right. I ran

Code: Select all

php get_nest_update
and received regular output.
Probably renewing the cookie and token was key in this.
"php get_nest.php" I think
Yes, it looks like you have to do this sometimes, I'll find out of it can be done smarter or automatically.
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
LarsK
Posts: 9
Joined: Saturday 28 March 2020 11:41
Target OS: Linux
Domoticz version:
Contact:

Re: NEST Account migration

Post by LarsK »

Hi all,

thanks for this, this is working well, on my debian VirtualBox. Only issue I have: every 5 mintes, the cron job changes the home/away status of the Nest. Any thoughts on how to solve?

Thanks, Lars
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 »

LarsK wrote: Saturday 28 March 2020 11:44 Hi all,

thanks for this, this is working well, on my debian VirtualBox. Only issue I have: every 5 mintes, the cron job changes the home/away status of the Nest. Any thoughts on how to solve?

Thanks, Lars
run the script in debug mode “get_nest.sh -d”
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
LarsK
Posts: 9
Joined: Saturday 28 March 2020 11:41
Target OS: Linux
Domoticz version:
Contact:

Re: NEST Account migration

Post by LarsK »

thanks!

Oddly enough, get_nest.sh -d gives error:
pi@debian:~/nest-api$ get_nest.sh -d
-bash: get_nest.sh: command not found

But, when I add: .\, then I get:

pi@debian:~$ cd nest-api
pi@debian:~/nest-api$ ./get_nest.sh -d
DEBUG: json: Location information:
DEBUG: vars: TYPE: VALUE:information: IDX:
DEBUG: json: [
DEBUG: vars: TYPE: VALUE: IDX:
DEBUG: json: {
DEBUG: vars: TYPE: VALUE: IDX:
DEBUG: json: "name": "xxxxxxlaan",
DEBUG: vars: TYPE: VALUE:xxxxxxlaan IDX:
DEBUG: json: "address": null,
DEBUG: vars: TYPE: VALUE:null IDX:
DEBUG: json: "city": "xxxxxx, UT",
DEBUG: vars: TYPE: VALUE:xxxxxx IDX:
DEBUG: json: "postal_code": "xxxxxx",
DEBUG: vars: TYPE: VALUE:xxxx.0 IDX:
DEBUG: json: "country": "NL",
DEBUG: vars: TYPE: VALUE:NL IDX:
DEBUG: json: "outside_temperature": 12.8,
DEBUG: vars: TYPE: VALUE:12.8 IDX:
DEBUG: json: "outside_humidity": 50,
DEBUG: vars: TYPE: VALUE:50.0 IDX:
DEBUG: json: "away": false,
DEBUG: vars: TYPE:AWAYMODE VALUE:Off IDX:63
Update AWAYMODE state to Off
DEBUG: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 47 100 47 0 0 6714 0 --:--:-- --:--:-- --:--:-- 6714
{
"status" : "OK",
"title" : "SwitchLight"
}
DEBUG: json: "away_last_changed": "2020-03-28 13:34:49",
DEBUG: vars: TYPE:AWAYMODE VALUE:2020.0 IDX:
DEBUG: json: "thermostats": [
DEBUG: vars: TYPE:AWAYMODE VALUE:[ IDX:
DEBUG: json: "09AA01AC501704TQ"
DEBUG: vars: TYPE:AWAYMODE VALUE: IDX:
DEBUG: json: ],
DEBUG: vars: TYPE:AWAYMODE VALUE: IDX:
DEBUG: json: "protects": [],
DEBUG: vars: TYPE:AWAYMODE VALUE:[] IDX:
DEBUG: json: "sensors": []
DEBUG: vars: TYPE:AWAYMODE VALUE:[] IDX:
DEBUG: json: }
DEBUG: vars: TYPE:AWAYMODE VALUE: IDX:
DEBUG: json: ]
DEBUG: vars: TYPE:AWAYMODE VALUE: IDX:
DEBUG: json: ----------
DEBUG: vars: TYPE:AWAYMODE VALUE: IDX:
DEBUG: json:
DEBUG: vars: TYPE:AWAYMODE VALUE: IDX:
DEBUG: json: Devices list (thermostats):
DEBUG: vars: TYPE:AWAYMODE VALUE:list IDX:
DEBUG: json: [
DEBUG: vars: TYPE:AWAYMODE VALUE: IDX:
DEBUG: json: "09AA01AC501704TQ"
DEBUG: vars: TYPE:AWAYMODE VALUE: IDX:
DEBUG: json: ]
DEBUG: vars: TYPE:AWAYMODE VALUE: IDX:
DEBUG: json: ----------
DEBUG: vars: TYPE:AWAYMODE VALUE: IDX:
DEBUG: json:
DEBUG: vars: TYPE:AWAYMODE VALUE: IDX:
DEBUG: json: Devices list (Nest Protect):
DEBUG: vars: TYPE:AWAYMODE VALUE:list IDX:
DEBUG: json: []
DEBUG: vars: TYPE:AWAYMODE VALUE: IDX:
DEBUG: json: ----------
DEBUG: vars: TYPE:AWAYMODE VALUE: IDX:
DEBUG: json:
DEBUG: vars: TYPE:AWAYMODE VALUE: IDX:
DEBUG: json: Device information:
DEBUG: vars: TYPE:AWAYMODE VALUE:information: IDX:
DEBUG: json: {
DEBUG: vars: TYPE:AWAYMODE VALUE: IDX:
DEBUG: json: "current_state": {
DEBUG: vars: TYPE:AWAYMODE VALUE:{ IDX:
DEBUG: json: "mode": "heat",
DEBUG: vars: TYPE:AWAYMODE VALUE:heat IDX:
DEBUG: json: "temperature": 19.78,
DEBUG: vars: TYPE:TEMP VALUE:19.8 IDX:66
Update TEMP to 19.8
DEBUG: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 49 100 49 0 0 16333 0 --:--:-- --:--:-- --:--:-- 24500
{
"status" : "OK",
"title" : "Update Device"
}
DEBUG: json: "backplate_temperature": 19.78,
DEBUG: vars: TYPE:TEMP VALUE:19.8 IDX:
DEBUG: json: "humidity": 37,
DEBUG: vars: TYPE:HUMIDITY VALUE:37.0 IDX:65
Update HUMIDITY to 37.0
DEBUG: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 49 100 49 0 0 16333 0 --:--:-- --:--:-- --:--:-- 16333
{
"status" : "OK",
"title" : "Update Device"
}
Update TEMPHUM to 19.8;37.0;0
DEBUG: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 49 100 49 0 0 2130 0 --:--:-- --:--:-- --:--:-- 2130
{
"status" : "OK",
"title" : "Update Device"
}
DEBUG: json: "ac": false,
DEBUG: vars: TYPE:TEMPHUM VALUE:false IDX:
DEBUG: json: "heat": true,
DEBUG: vars: TYPE:HEAT VALUE:On IDX:61
DEBUG: json: "alt_heat": false,
DEBUG: vars: TYPE:HEAT VALUE:false IDX:
DEBUG: json: "fan": false,
DEBUG: vars: TYPE:HEAT VALUE:false IDX:
DEBUG: json: "hot_water": false,
DEBUG: vars: TYPE:HEAT VALUE:false IDX:
DEBUG: json: "auto_away": 0,
DEBUG: vars: TYPE:HEAT VALUE:0.0 IDX:
DEBUG: json: "manual_away": false,
DEBUG: vars: TYPE:HEAT VALUE:false IDX:
DEBUG: json: "structure_away": false,
DEBUG: vars: TYPE:HEAT VALUE:false IDX:
DEBUG: json: "leaf": false,
DEBUG: vars: TYPE:HEAT VALUE:false IDX:
DEBUG: json: "battery_level": 3.926,
DEBUG: vars: TYPE:HEAT VALUE:3.9 IDX:
DEBUG: json: "active_stages": {
DEBUG: vars: TYPE:HEAT VALUE:{ IDX:
DEBUG: json: "heat": {
DEBUG: vars: TYPE:HEAT VALUE:{ IDX:
DEBUG: json: "stage1": true,
DEBUG: vars: TYPE:HEAT VALUE:true IDX:
DEBUG: json: "stage2": false,
DEBUG: vars: TYPE:HEAT VALUE:false IDX:
DEBUG: json: "stage3": false,
DEBUG: vars: TYPE:HEAT VALUE:false IDX:
DEBUG: json: "alt": false,
DEBUG: vars: TYPE:HEAT VALUE:false IDX:
DEBUG: json: "alt_stage2": false,
DEBUG: vars: TYPE:HEAT VALUE:false IDX:
DEBUG: json: "aux": false,
DEBUG: vars: TYPE:HEAT VALUE:false IDX:
DEBUG: json: "emergency": false
DEBUG: vars: TYPE:HEAT VALUE:false IDX:
DEBUG: json: },
DEBUG: vars: TYPE:HEAT VALUE: IDX:
DEBUG: json: "cool": {
DEBUG: vars: TYPE:HEAT VALUE:{ IDX:
DEBUG: json: "stage1": false,
DEBUG: vars: TYPE:HEAT VALUE:false IDX:
DEBUG: json: "stage2": false,
DEBUG: vars: TYPE:HEAT VALUE:false IDX:
DEBUG: json: "stage3": false
DEBUG: vars: TYPE:HEAT VALUE:false IDX:
DEBUG: json: }
DEBUG: vars: TYPE:HEAT VALUE: IDX:
DEBUG: json: },
DEBUG: vars: TYPE:HEAT VALUE: IDX:
DEBUG: json: "eco_mode": "schedule",
DEBUG: vars: TYPE:ECOMODE VALUE:Off IDX:64
DEBUG: json: "eco_temperatures_assist_enabled": false,
DEBUG: vars: TYPE:ECOMODE VALUE:false IDX:
DEBUG: json: "eco_temperatures": {
DEBUG: vars: TYPE:ECOMODE VALUE:{ IDX:
DEBUG: json: "low": 13.10492,
DEBUG: vars: TYPE:ECOMODE VALUE:13.1 IDX:
DEBUG: json: "high": false
DEBUG: vars: TYPE:ECOMODE VALUE:false IDX:
DEBUG: json: }
DEBUG: vars: TYPE:ECOMODE VALUE: IDX:
DEBUG: json: },
DEBUG: vars: TYPE:ECOMODE VALUE: IDX:
DEBUG: json: "target": {
DEBUG: vars: TYPE:ECOMODE VALUE:{ IDX:
DEBUG: json: "mode": "heat",
DEBUG: vars: TYPE:ECOMODE VALUE:heat IDX:
DEBUG: json: "temperature": 19.9,
DEBUG: vars: TYPE:SETPOINT VALUE:19.9 IDX:62
DEBUG: vars: LASTUPDATE SETPOINT:2020-03-28 13:28:46
DEBUG: json: "time_to_target": 0
DEBUG: vars: TYPE:SETPOINT VALUE:0.0 IDX:
DEBUG: json: },
DEBUG: vars: TYPE:SETPOINT VALUE: IDX:
DEBUG: json: "sensors": {
DEBUG: vars: TYPE:SETPOINT VALUE:{ IDX:
DEBUG: json: "all": [],
DEBUG: vars: TYPE:SETPOINT VALUE:[] IDX:
DEBUG: json: "active": [],
DEBUG: vars: TYPE:SETPOINT VALUE:[] IDX:
DEBUG: json: "active_temperatures": []
DEBUG: vars: TYPE:SETPOINT VALUE:[] IDX:
DEBUG: json: },
DEBUG: vars: TYPE:SETPOINT VALUE: IDX:
DEBUG: json: "serial_number": "09AA01AC501704TQ",
DEBUG: vars: TYPE:SETPOINT VALUE:9.0 IDX:
DEBUG: json: "scale": "C",
DEBUG: vars: TYPE:SETPOINT VALUE:C IDX:
DEBUG: json: "location": "d2301d00-f0dc-11e8-bd36-0ed7e01182a6",
DEBUG: vars: TYPE:SETPOINT VALUE:0.0 IDX:
DEBUG: json: "network": {
DEBUG: vars: TYPE:SETPOINT VALUE:{ IDX:
DEBUG: json: "online": true,
DEBUG: vars: TYPE:SETPOINT VALUE:true IDX:
DEBUG: json: "last_connection": "2020-03-28 13:34:54",
DEBUG: vars: TYPE:SETPOINT VALUE:2020.0 IDX:
DEBUG: json: "last_connection_UTC": "2020-03-28 12:34:54",
DEBUG: vars: TYPE:SETPOINT VALUE:2020.0 IDX:
DEBUG: json: "wan_ip": "/172.16.34.211",
DEBUG: vars: TYPE:SETPOINT VALUE:0.0 IDX:
DEBUG: json: "local_ip": "192.168.178.57",
DEBUG: vars: TYPE:SETPOINT VALUE:192.2 IDX:
DEBUG: json: "mac_address": "64166609c7b4"
DEBUG: vars: TYPE:SETPOINT VALUE:64166609.0 IDX:
DEBUG: json: },
DEBUG: vars: TYPE:SETPOINT VALUE: IDX:
DEBUG: json: "name": "Not Set",
DEBUG: vars: TYPE:SETPOINT VALUE:Not IDX:
DEBUG: json: "auto_cool": false,
DEBUG: vars: TYPE:SETPOINT VALUE:false IDX:
DEBUG: json: "auto_heat": 18,
DEBUG: vars: TYPE:SETPOINT VALUE:18.0 IDX:
DEBUG: json: "where": "Family Room"
DEBUG: vars: TYPE:SETPOINT VALUE:Family IDX:
DEBUG: json: }
DEBUG: vars: TYPE:SETPOINT VALUE: IDX:
DEBUG: json: ----------
DEBUG: vars: TYPE:SETPOINT VALUE: IDX:
DEBUG: json:
DEBUG: vars: TYPE:SETPOINT VALUE: IDX:
DEBUG: json: Current temperature:
DEBUG: vars: TYPE:SETPOINT VALUE:temperature: IDX:
DEBUG: json: 19.78 degrees C
DEBUG: vars: TYPE:SETPOINT VALUE:degrees IDX:
DEBUG: json: ----------
DEBUG: vars: TYPE:SETPOINT VALUE: IDX:
DEBUG: json:
DEBUG: vars: TYPE:SETPOINT VALUE: IDX:
pi@debian:~/nest-api$
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest