cancel
Showing results for 
Search instead for 
Did you mean: 
Replies are disabled for this topic. Start a new one or visit our Help Center.

How to obtain the away/home status using the API's

fortean
Community Member

Folks,

Anybody here who knows if there is an API "trait" to obtain the away/home status of the Nest?

When I leave my home, the Nest dutifully switches to ECO mode. But the sdm.devices.traits.ThermostatEco.mode is always OFF, even when I am at home and the Nest is happily glowing orange. So, is there some other parameter I can query / API call I can make to obtain the Away/Home status using the Google SDM API's?

1 Recommended Answer

That's a cool idea. Sorry I don't have any suggestions. I wonder if there are other communities out there. With Android Development you can always go to reddit or XDA but with this API you are trying to use I have no idea where else you can go. 

View Recommended Answer in original post

10 REPLIES 10

CarlosS
Bronze
Bronze

This is more of an end user forum than a developer forum. You probably want to checkout developer resources like the Google API docs or stackoverflow.com

fortean
Community Member

I have checked the docs, alas no cigar. From what I read on (yes) stackoverflow etc. there is no SDM API for  the Home/Away function. Seems that Google never implemented this feature - beats me why not. It is appreciated that this is a forum for end-users, but you never know, I thought I'd give it a shot. 

Is there a similar forum where folks that have a say in what is or is not in the SDM API can be contacted?

Totally understand, I'm a developer myself and sometimes you just run out of places to ask questions at. I think the Home/Away stuff is pretty limited, like if you look at the routines, the top two routines are very limited on what they can do whereas other more normal routines can do a lot more. I don't really know why it is that way. 

fortean
Community Member

What I wanted to achieve is related to this graph:

 
 

temp.20230117.png

 

The black line represents the outside temperature, the orange line the inside temperature, the thin red line represents the target room temperature and the green line indicates if the system was in HEATING state (if it is above the red line) or not (if it is under it). A bit crude, but it works for me.

Now, as you can see, roughly between 900 and 1400 hours, the room temperature falls, though the target temperature is 18 degrees. This is because I was not at home during that period. What I want to do is plot an indicaton on the graph that the autofencing feature (or humble me myself) has switched "Away" on, and later on "Home" on again.

 

For example, something like this:

temp.20230117.png

 

So, any suggestions on how to achieve this would be welcomed.

Perhaps we should have some kind of "coders" or "developers" section here? Or do you have other suggestions (apart from Stackoverflow) where I can find help on these issues?

That's a cool idea. Sorry I don't have any suggestions. I wonder if there are other communities out there. With Android Development you can always go to reddit or XDA but with this API you are trying to use I have no idea where else you can go. 

Jeran
Community Specialist
Community Specialist

Thank you for helping out on this thread, InstantBits!

Hey there fortean,

I'm just checking up on this thread, do you have any more questions or need any additional help? 

Best regards,
Jeran

fortean
Community Member

Well, I have got my answer - so, in that respect, I don't have much to ask for. However, my problem was not solved..

Jeran
Community Specialist
Community Specialist

Hey there fortean,

 

No problem at all. With the forum users being mostly just normal users, The Google Nest Forums are not the best resource for development. It looks like you mentioned that the developers over at Stack Overflow weren't aware of any API that allowed you to find that status. In this case, the best course of action would be to submit feedback to Google to allow you to access this feature.

 

I'm sorry we couldn't be more help, but if you have any more questions, let me know.

 

Best regards,

Jeran

fortean
Community Member

Thanks, Jeran 🙂

Jeran
Community Specialist
Community Specialist

Hiya fortean,

Of course! Let me know if you need help with anything else, otherwise, I'll go ahead and lock this thread in 24 hours. If you have any more questions in the future, feel free to create a new thread.

I wish you luck!

Best regards,
Jeran