Search code examples
jsonnest-api

Trouble with output JSON in Nest API


Recently I've started to work with Nest API. I've added a thermostat and make a call to NEST API to retrieve thermostat details. I've create a Java model According to Nest API Documentation. But I've noticed that some of the fields are missed - last_connection. Same thing with 'smoke_co_alarms' devices - last_connection, battery_health, co_alarm_state, smoke_alarm_state, ui_color_state - these fields are missed in Nest API response.

Tried to google this question - no results. Any thoughts? Thanks.


Solution

  • I've connected real thermostat, added it to my account and now I can see last_connection field in response. Looks like I need to CONNECT REAL DEVICE to see this field. I suppose that battery_health & ui_color_state fields also will be available for real connected device.