Search code examples
firebasenest-api

How to set the Nest Thermostat temperature with firebase?


I'm using Firebase with the Nest API in Swift, but when I try to use setValue on a key in the Firebase structure, it tells me that it is read-only. I'm using the access token authorization, so I really don't know how to set thermostat temperatures. Can someone help?


Solution

  • As it turns out, to set the temperature, you need to set target_temperature_f or target_temperature_c, instead of target_temperature.