PRO
dbeard
USA
Asked
— Edited
I have configured my nest account and linked it to ARC. But when I try to run the sample project for Nest. I get this error Object reference not set to an instance of an object.
what am I doing wrong?
Here is the full error:
Start 2: ControlCommand( "Nest", RunOnce) > Error on line 2: Object reference not set to an instance of an object. Done (00:00:00.8405903)
There's a section of the website for tutorials. The tutorial for the nest can be found by either clicking the ? Next to the X (close) or by viewing the activities in the learn section. Here's a direct link for the tutorial: https://synthiam.com/Tutorials/Help.aspx?id=210
Still not working, I must be doing something wrong.
Step 1 - Configure Nest to work with EZB. Complete - screen clip attached
Step 2 - Put ezb in client mode. see attached image.
Step 3 - Using this script.
Update the variables with your Nest device data
ControlCommand("Nest", RunOnce)
Speak the temperatue out of the PC speaker
say("The temperature of your home is " + $nest_temp_c + " celcius")
If you wish to speak out of the robot,
use the SayEZB() command instead of Say()
Step 4- variables are there. see attached image.
any thoughts on what I am doing wrong
Step 5 - still getting error message. Start 2: ControlCommand("Nest", RunOnce) > Error on line 2: Object reference not set to an instance of an object. Done (00:00:01.3879132)
Got it. Thanks for the help.
Ok, I take that back. It is not updating the temperature and I still get the error.
@dbeard The image of your Connection control indicates you are not actually connected to the robot. Probably this just means you took the screen shot before actually connecting to the robot, but I thought I would mention it anyway since the Speech Recognition control will work regardless of whether you are connected to the robot or not. That also means it will run the script, connected or not. At least try to run it. It's possible the error you are getting could be caused by not being connected. I'm not certain of that, however.
Even when connected I get the same message and it is not updating either.
@dbeard Yeah, I figured, But it was worth a shot. Sometimes the simplest things trip us up the easiest. I also note that you have to be connected in Client mode for this to work. That makes sense since only in client mode can you have access to the robot and the Internet at the same time. Heck, in Client mode I have arranged it such that I had access to the same robot from my PC and multiple mobile devices all at the same time. That could come in handy when testing a robot with in internal Mini-PC. I could have control with my desktop PC at the same time for a level of emergency control should something be amiss with the Mini-PC. But I digress.
EDIT ... I removed a paragraph about the temp. variable updating since I had forgotten you already mentioned it was not updating.
One thing I don't get is why JD calls for the Video control to be up and running in the Nest Tutorials? I don't see the relevance. But who knows?
Please review attached doc.NestData.pdf
all nest features are working correct. Please verify your configuration with the nest website and ensure you have followed the tutorial previously listed. If you have additional information of your Nest configuration or devices, please let us know to see if there's an unusual configuration that is breaking the Nest webservice.
Attached shows the Nest is successfully setup in ARC and the other picture shows ezrobot on my nest account.
removed connection and then readded. Still getting same error.
Hmm...
Can you give me a description of your devices? (carbon sensor, thermostat, camera, etc)
Try this release... I believe there is a bug in the Nest web service that this release should resolve: https://synthiam.com/Community/Questions/9593
That did it! I have only the Thermostat. I can now run that two line script without an error. Thanks very much.