Nest Thermostat accesstoken

No luck, I am not mamaging to make it work… I am attaching the plugin again with some changes, can you please check them out?
GoogleNestThermostat.plugin (6.0 KB)
Thank you very much!

I added the list of modes manually and all of them are shown now, thanks.

Do the commands work in Postman & CURL?

Yes they do! I double check it again… I guess the problem is the syntax in HR?

By the way, the error code is 404 and accordng to API Error Code Reference | Device Access | Google Developers it can be one of these:

  • A command was executed without a valid command name in the request body. Enter a valid command.
  • An invalid or missing device name was specified. Specify a valid device.
  • An invalid or missing Project ID was specified. Specify a valid Project ID.

This is a screen capture from Postman:

That’s not the same URL you are using in the plugin. Notice they have a colon before executeCommand & you have a slash.

Hard code temporary URLs. Test 1 thermostat. Take some of the chance for errors out of this.

You’re gonna be kind of on your own with the rest of this. Look over everything carefully.

I just changed that and it works! It as giving an error before and it might have been the variables…

The principal problem was that I did not know about the fact that Object keys are constants in JavaScript…
Thanks so much Bill I really appreciate your help ;.)

1 Like