I have an iOS app that uses a Nest Thermostat. Specifically, I want to set the Away/Home status, and then set a target temperature on it.
It works at first, but after some calls to the Nest API, i receive this error:
Error: Error Domain=com.firebase Code=9999 "{"error":"blocked","type":"https://developer.nest.com/documentation/cloud/error-messages#blocked","message":"blocked","instance":"cb7307d1-4fdc-4caf-9f80-f9ad57764dd8"}" UserInfo={NSLocalizedDescription={"error":"blocked","type":"https://developer.nest.com/documentation/cloud/error-messages#blocked","message":"blocked","instance":"cb7307d1-4fdc-4caf-9f80-f9ad57764dd8"}}
This happens both the simulator and the actual device.
I am based on the sample code provided in the Developers Nest website. It uses the Firebase API to connect to the NEST. I have seen this post with the same problem whilst authenticating, but I have this problem while trying to awake it. It takes around 20 minutes to be available again.
I also tried to call [Firebase goOffline] when I don't need to connect to it, and [Firebase goOnline] when I do, but it seems useless.
Do you know how it should be handled, and how to unblock the nest?