No write permission for field: away (Nest Home Simulator)



I just started to develop an app for Nest thermostat. I started it on Nest Home Simulator and try to write a value on a virtual thermostat, and I received the permission error message.

Here’s what I did.

  1. Add structure and thermostat to Nest Home Simulator

  2. Register my application and assign read/write permission to structures (and most of them.)

  3. communicate with the simulator via REST (Postman in chrome)

  4. Get an access token.

  5. validate the token is working. I was able to read things such as structures

  6. I execute write API to
    with body, {“away”: “away”}.

and then I receive:

          "error": "No write permission(s) for field(s): away",
          "type": "",
          "message": "No write permission(s) for field(s): away",
          "instance": "xxxxxxxxxxxxxx",
          "details": {
            "fields": "away"

I made it sure to use the same OAuth token as read API, which works. I also give read/write permission to structures

What is the problem here? Otherwise, just I cannot write to the simulator?


Try a fresh token. Usually when this happens a developer is using a token that hasn’t been updated yet.


I used the same token for writing both “target_temperature_f” on a thermostat, and “away” on a structure while I have both permissions, but only “target_temperature_f” works.


Hi @bk7749,

Structure read/write does not allow you to write Home and Away states. You can only write the name of the structure with that permission.
In order to switch Home and Away states you actually need to select Away read/write.


Thanks. It’s working now :slight_smile: