Is there other way to use websocket to get notification of thermostat condition changed?


I’m developing a beta server that connects with nest server to control nest thermostats.

In the developing process, I’d like to ask a question.

That’s event notification when thermostat event occured.

I’ve already known the way to get event notification from nest server to my server, from nest developer site.

The site’s said to use curl command (curl -L -X GET -H “Accept:application/json” -H “Accept:text/event-stream” "

When I test the command, it works without problems.

On the other hand, it shoud keep connection continuously… it makes a probme in my beta server, if many user uses the thermostats through my beta server.

So, is there other way to get event notification in real-time when thermostat state’re changed without constant connection? like push or etc… not websocket.


There are currently 3 ways to get updates from Nest servers.

  1. Firebase SDK which uses websockets - good for device-to-cloud connections.
  2. REST Streaming connections - persistent REST connection using Server Sent Events.
  3. REST polling - not real-time as polling should be no more frequent than once per minute.