Behavior Control
Help Index

Nest

How To Add This Control To Your Project

  1. Load the most recent release of EZ-Builder
  2. Press the Project tab from the top menu bar of EZ-Builder
  3. Press Add Control from the button ribbon bar of EZ-Builder
  4. Choose the Misc category tab
  5. Press the Nest icon to add the control to your project
The NEST (www.nest.com) devices (thermostat and co/smoke detector) connect your home to the internet. With the EZ-Robot Nest Control, your robot can request and set the temperature of your home. EZ-Builder will require access to the your Nest devices, which can be done with the following steps in EZ-Builder...

Configure Nest Access

1. Press OPTIONS from EZ-Builder top menu
2. Select NEST from Global Settings in top menu
3. Follow the instructions to activate EZ-Builder with your Nest account

Once activated, you will be able to trigger the Nest Control to query your registered Nest devices data. The request will store the data in EZ-Script variables, which you can use in script within your projects. There is an example Nest project in EZ-Builder which demonstrates how to use the Speech Recognition control, or Script control to speak the temperature of your Nest Thermostat device.

Tutorial Exercise

Load EZ-Builder

Load the latest JD project from the EZ-Cloud Robot AppStore

Let's give EZ-Builder access to your Nest Thermostats

Options. Global Settings. Nest

Get Verification Code

Agree to EZ-Builder having permission to access your Nest Thermostat

Login to the Nest website with your credentials

Copy the Pincode

Paste the Pincode and verify

EZ-Builder now has access to your Nest Thermostat

Project. Add Control. Misc. Nest

Nest Control is now added to your project

Project. Add Control. Audio. Speech Recognition.

Speech Recognition is now added to your project

Your JD must be connected to your network in Client Mode. See the description of this video for a link to the Client Mode Tutorial

Connect to JD on your local network

Connect to JD's camera on your local network

Configure Speech Recognition

Enter the phrase "What is the temperature of my house"

Press the multiline script edit button

Cheat Sheet

Locate Nest and select the Control Command with parameter Run Once

Looking at all declared variables. We do not see any Nest variables yet.

Run this script to have the Nest control fetch variables from your Nest devices.

Refresh the variable list to see all nest variables

SayEZB("The temperature of your house is " + $nest_temp_c + " degrees")

Let's add an action at the beginning of this script to give JD some personality

In the cheat sheet, locate the Auto Position Action Thinking. and select

Save the script

Save the speech recognition config

If speech recognition has been configured correctly, speak the phrase "What is the temperature of my house" and receive a response from JD while he executes the Thinking animation.



Example Project

1. Press File -> Open in EZ-Builder top menu
2. Press Examples from the File Open dialog
3. Select EZ-Script Examples folder
4. Scroll down or search for the project titled Nest

Example Code

Once the control has been added, the ez-script variable data will be configured with a manual nudge from EZ-Script. The code below shows how to have Nest update and speak the temperature out of the PC speaker.
# Update the variables with your Nest device data
ControlCommand("Nest", RunOnce)


# Speak the temperatue out of the PC speaker
say("The temperature is " + $nest_temp_c + " celcius")


# speak the temperature out of the robots speaker
sayEZB("The temperature is " + $nest_temp_c + " celcius")

Note: EZ-Robot is not a manufacturer of this third party hardware device. . Nor is ezrobot responsible for the operation of this third party device. For operational questions, it's best to consult the instruction manual for operational instructions.

Video

#1  
I know that the Ezb can read the Nest thermostat and read the temperature.  Does it have the ability to read the Nest Temperature sensors that are a separate add on to the Nest thermostat?
Synthiam
#2  
The nest thermostat will return Temp, Humidity, Battery health, CO2 alarm and smoke alarm.

It doesn't actually talk to the sensor - it talks to the Nest service, which holds the data from all sensor types. So technically, the plugin should be called "all nest stuff" lol
#3  
User-inserted image

DJ, Here is the variable watcher list for the Nest.  I don't see Living Room on the list, which is where I placed the temperature sensor.  It does show up in the Nest App on my phone.