Alexis Purslane
Alexis Purslane

Reputation: 1390

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?

Upvotes: 1

Views: 274

Answers (1)

Alexis Purslane
Alexis Purslane

Reputation: 1390

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

Upvotes: 1

Related Questions