# Updated UI for Nest

**URL:** <https://community.smartthings.com/t/updated-ui-for-nest/3170>\
**Category:** Devices & Integrations\
**Created:** [July 3, 2014, 10:36pm UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170 "2014-07-03T22:36:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![pstuart](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/pstuart/32/82936_2.png) [@pstuart](https://community.smartthings.com/u/pstuart)\
**Post date:** [July 3, 2014, 10:36pm UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/1 "2014-07-03T22:36:24Z")

</div>

Code:

> <https://gist.github.com/pstuart/17cdc5bf36d434baa6ab>

Screen shot:  
[https://plus.google.com/109218861040495449466/posts/9ZUwVuwkF9C](https://plus.google.com/109218861040495449466/posts/9ZUwVuwkF9C)

I updated the UI / UX for the Nest App to remove that horrible slider on android and add up and down temp buttons.

I also signed up for a github account, never had one before, I’m old school cvs/svn guy.

Apologies for potentially not following proper protocol for forking or attributing credit to the original owner…

---

<div class="post-metadata">

**Author:** ![brianlees](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/brianlees/32/267_2.png) [@brianlees](https://community.smartthings.com/u/brianlees)\
**Post date:** [July 3, 2014, 10:57pm UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/2 "2014-07-03T22:57:12Z")

</div>

Two questions

- does it work when the Nest is set to both heat and cool with the range
- can it set the Nest to _auto away_ rather than _away_? This is important for allowing the schedule to work and pre-cool/heat.

---

<div class="post-metadata">

**Author:** ![Mbhforum](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mbhforum/32/93879_2.png) [@Mbhforum](https://community.smartthings.com/u/Mbhforum)\
**Post date:** [July 3, 2014, 11:00pm UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/3 "2014-07-03T23:00:42Z")

</div>

Is this using the new API Nest released or an update to the original code out there?

---

<div class="post-metadata">

**Author:** ![pstuart](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/pstuart/32/82936_2.png) [@pstuart](https://community.smartthings.com/u/pstuart)\
**Post date:** [July 3, 2014, 11:13pm UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/4 "2014-07-03T23:13:34Z")

</div>

If the old code didn’t then no.

However I don’t see why it wouldn’t be too hard to do.

This is not using any official nest api.

As for away vs auto away. These are apples and oranges.

Away is a state. A Boolean. Either you are away or you are not.

Autoaway is a setting in nest sense that allows the nest sensor to determine if you are home or away and sets the state automatically.

Why do you want to change the auto away setting?

---

<div class="post-metadata">

**Author:** ![Mbhforum](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mbhforum/32/93879_2.png) [@Mbhforum](https://community.smartthings.com/u/Mbhforum)\
**Post date:** [July 3, 2014, 11:15pm UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/5 "2014-07-03T23:15:34Z")

</div>

Thanks. I updated my code, but I have iOS. Should I be noticing anything different because I still see the slider bar? I didn’t recreate my devices, rather just republished the device type code.

---

<div class="post-metadata">

**Author:** ![pstuart](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/pstuart/32/82936_2.png) [@pstuart](https://community.smartthings.com/u/pstuart)\
**Post date:** [July 3, 2014, 11:17pm UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/6 "2014-07-03T23:17:05Z")

</div>

If u see the slider then you didn’t publish your changes. Check your device settings as well

---

<div class="post-metadata">

**Author:** ![Mbhforum](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mbhforum/32/93879_2.png) [@Mbhforum](https://community.smartthings.com/u/Mbhforum)\
**Post date:** [July 3, 2014, 11:18pm UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/7 "2014-07-03T23:18:53Z")

</div>

Hmm…I replaced the code that was there and saved and hit Publish for Me for the Device Type. Anything else I should be doing? Will this work for iOS?

---

<div class="post-metadata">

**Author:** ![mattjfrank](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mattjfrank/32/100696_2.png) [@mattjfrank](https://community.smartthings.com/u/mattjfrank)\
**Post date:** [July 3, 2014, 11:23pm UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/8 "2014-07-03T23:23:31Z")

</div>

you need to exit the app not just close it

---

<div class="post-metadata">

**Author:** ![pstuart](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/pstuart/32/82936_2.png) [@pstuart](https://community.smartthings.com/u/pstuart)\
**Post date:** [July 3, 2014, 11:23pm UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/9 "2014-07-03T23:23:41Z")

</div>

Try force quiting the app on iOS and relaunch? Might cache the app

---

<div class="post-metadata">

**Author:** ![Mbhforum](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mbhforum/32/93879_2.png) [@Mbhforum](https://community.smartthings.com/u/Mbhforum)\
**Post date:** [July 3, 2014, 11:32pm UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/10 "2014-07-03T23:32:02Z")

</div>

Haha, I am one step ahead of you and that didn’t work either. I’ve never re-published a device type before, only a smartapp. Maybe with device types, you need to create devices over again? I hope not because that is a royal PIA.

---

<div class="post-metadata">

**Author:** ![Mbhforum](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mbhforum/32/93879_2.png) [@Mbhforum](https://community.smartthings.com/u/Mbhforum)\
**Post date:** [July 3, 2014, 11:35pm UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/11 "2014-07-03T23:35:28Z")

</div>

Got it! Logging OUT and IN fixed it. Just an FYI if anyone needs to do so. This looks great, nice job!!!

I just wonder how much improvement we will see with the Nest API now officially out.

---

<div class="post-metadata">

**Author:** ![pstuart](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/pstuart/32/82936_2.png) [@pstuart](https://community.smartthings.com/u/pstuart)\
**Post date:** [July 4, 2014, 2:21am UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/12 "2014-07-04T02:21:04Z")

</div>

@brianlees I made some significant changes to the code to allow for the range mode to work along with the other modes.

Take a look at the github and let me know what you think.

I also improved the accuracy of the temp coming back, it was truncating the temp instead of rounding. Should be a bit more accurate to what nest app shows.

Screenshot here… [https://plus.google.com/109218861040495449466/posts/VJXAosTYZGP](https://plus.google.com/109218861040495449466/posts/VJXAosTYZGP)

Code here… [https://gist.github.com/pstuart/17cdc5bf36d434baa6ab](https://gist.github.com/pstuart/17cdc5bf36d434baa6ab)

---

<div class="post-metadata">

**Author:** ![fightingmajor](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/fightingmajor/32/19676_2.png) [@fightingmajor](https://community.smartthings.com/u/fightingmajor)\
**Post date:** [July 8, 2014, 6:13pm UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/13 "2014-07-08T18:13:42Z")

</div>

I have tried many different times to get my Nest added into SmartThings and I was not successful. After trying it again with the code here it worked perfectly. Thanks.

---

<div class="post-metadata">

**Author:** ![a2thejay23](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/a2thejay23/32/108889_2.png) [@a2thejay23](https://community.smartthings.com/u/a2thejay23)\
**Post date:** [July 9, 2014, 7:03am UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/14 "2014-07-09T07:03:34Z")

</div>

it doesn’t update unless I manually click on the refresh tile…do all the versions of the Nest code do that?

---

<div class="post-metadata">

**Author:** ![pstuart](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/pstuart/32/82936_2.png) [@pstuart](https://community.smartthings.com/u/pstuart)\
**Post date:** [July 9, 2014, 11:06am UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/15 "2014-07-09T11:06:01Z")

</div>

You just need a smart app to subscribe to the nest presence event and use something, ie a motion sensor to set it back from away.

---

<div class="post-metadata">

**Author:** ![a2thejay23](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/a2thejay23/32/108889_2.png) [@a2thejay23](https://community.smartthings.com/u/a2thejay23)\
**Post date:** [July 9, 2014, 9:04pm UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/16 "2014-07-09T21:04:54Z")

</div>

whats the subscribe function code (For subscribing to nest present even specifically) look like so i can see if any of apps im planning on use with nest have it?

---

<div class="post-metadata">

**Author:** ![pstuart](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/pstuart/32/82936_2.png) [@pstuart](https://community.smartthings.com/u/pstuart)\
**Post date:** [July 10, 2014, 12:09am UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/17 "2014-07-10T00:09:22Z")

</div>

@a2thejay23,

Check out this code [https://github.com/pstuart/smartthings/blob/master/set%20tstat%20to%20not%20away.groovy](https://github.com/pstuart/smartthings/blob/master/set%20tstat%20to%20not%20away.groovy)

It sets the away mode of the Nest back to home after the Nest has either Auto-away set to Away or you manually set it in the Nest device.

---

<div class="post-metadata">

**Author:** ![brianlees](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/brianlees/32/267_2.png) [@brianlees](https://community.smartthings.com/u/brianlees)\
**Post date:** [July 10, 2014, 2:42am UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/18 "2014-07-10T02:42:35Z")

</div>

@pstuart - The updated UI is very nice. I like it. I loaded the Thermo reset on motion app, which we’ll be able to check out on Friday when my wife is home and not in the regular locations (or I’ll just cover the thermos up).

How do you get the Nest to go into Away mode as soon as the ST mode changes to Away? I know we have gone back and forth on auto-away (and I’m still looking for that long term :)), but I’m curious to see how you tell Nest that no one is present on the mode change.

---

<div class="post-metadata">

**Author:** ![pstuart](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/pstuart/32/82936_2.png) [@pstuart](https://community.smartthings.com/u/pstuart)\
**Post date:** [July 10, 2014, 2:58am UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/19 "2014-07-10T02:58:23Z")

</div>

Ok, hard to explain how to get to it in the app, but its already built in…

Go to dashboard, click the “Quote bubble” in the upper right corner.

Click the gear in bottom right corner

Choose a mode you want to use to set thermostat to away, ex Goodbye!

Scroll down to Set the Thermostat, choose your nest

set the other options to your liking

Change the mode to, set to away (default)

Set conditions to automatically put in goodbye to your choosing.

Should set Nest to away when mode = goodbye

FYI, I don’t use this, so haven’t tested it, but should work fine.

Also, did you check out the update to the away smartapp, I added a daily away and not away schedule event. So you can remove the nest from away at 4pm M-F if you want and set it to away at 8am M-F and then if any motion is detected in the house during that away time, it will take it out of away.

---

<div class="post-metadata">

**Author:** ![brianlees](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/brianlees/32/267_2.png) [@brianlees](https://community.smartthings.com/u/brianlees)\
**Post date:** [July 10, 2014, 3:00am UTC](https://community.smartthings.com/t/updated-ui-for-nest/3170/20 "2014-07-10T03:00:42Z")

</div>

Do I have to set the temp in the mode? I saw the settings, but I didn’t want to choose temps since I have that all setup on both Nests.

[Next page](https://community.smartthings.com/t/updated-ui-for-nest/3170.md?page=2)
