NestGetTips

The Unofficial SmartThings Blog
Jump to: navigation, search


Nest T3021US Learning Thermostat, Easy Temperature Control for Every Room in Your House, Copper (Third Generation), Works with Alexa Small

Nest T3021US Learning Thermostat, Easy Temperature Control for Every Room in Your House, Copper (Third Generation), Works with Alexa Small

Category: My Apps

Author:Yves Racine

ST Community handle: http://community.smartthings.com/users/yvesracine/activity

Company Link: http://www.ecomatiqhomes.com#!home/mainPage


Prerequisites

 * Nest thermostat controlled via ST by MyNextTstat device
    => http://thingsthataresmart.wiki/index.php?title=My_Next_Tstat
  * If you have multiple Nest thermostats at your location, you can rename the smartapp' name in the last screen 
   (i.e. "Assign a name for this SmartApp").

Summary

MyNestGetTips, the smartapp that generates comfort and energy saving tips based on your actual indoor/outdoor conditions at your home.

Supported Features

  • The smartapp will look at your current indoor/outdoor conditions and will generate the energy and comfort tips for you.
  • The smartapp generates up to 5 tips at a time, and the tips are saved in the device to avoid repeating the same tips over and over.
  • It may be possible that, for a given date and time, no tips are generated. You may then want to try again later when indoor/outdoor conditions have changed.
  • In the smartapp, you can "reset" the tips and the smartapp will erase any saved tips so far. The smartapp will then restart all tips processsing from scratch.
  • You can also specify a "level" of tips [1..2].
   Level 1: basic energy & comfort tips about the location of your thermostat(s) in your house and humidity control
   Level 2: energy & comfort tips on how to reduce the number of HVAC cycles (if too many)


  • The tips can be generated through the NestGetTips smartapp or by interacting with Ask Alexa with the commands "give tip" or "play tip".
  • Each subsequent smartapp's run will generate new tips till there is no tips available. You then need to "reset" the tips to

be able to repeat the same level's tips again.


The following indoor/outdoor metrics will be used for the "tips feature":

  • current Indoor Humidity
  • current Indoor Temperature
  • current OutdoorTemperature
  • Ideal target Indoor Humidity calculated based on outdoor temp
  • average of Indoor Temperature over a given period of time (ex.weekly)
  • average outdoor temperature in the period
  • standard deviation of Indoor Temperature in the period
  • standard deviation of Outdoor Temperature in the period
  • count of Away commands sent to thermostat
  • count of Hold commands sent to thermostat

Configuration

Code location:

https://github.com/yracine/device-type-myNext/tree/master/smartapps

Instructions for MyNext Devices installation (readme):

https://github.com/yracine/device-type-myNext/blob/master/README.md

Instructions for MyNextTstat integration with Ask Alexa

http://thingsthataresmart.wiki/index.php?title=Ask_Alexa#MyEcobee_.26_MyNext_Devices.27_comfort_.26_energy_saving_tips

Instructions for NestGetTips installation

Refer to troubleshooting section below (item 1).

Troubleshooting

For specific MyNext Tstat Device's errors/issues, please check the following troubleshooting section:

   http://thingsthataresmart.wiki/index.php?title=My_Next_Tstat#Troubleshooting

.................................................................................................................................

Issue #1: I don't know how to create a custom smartapp

.................................................................................................................................

See the explanations of a fellow community member here:

http://community.smartthings.com/t/faq-an-overview-of-using-custom-code-in-smartthings/16772


And, here are some basic explanations with screenshots.

Loginscreen.jpg

  • Once you are logged in, find the My SmartApps link on the top of the page. Clicking My SmartApps will allow you to produce a new SmartApp.

MySmartApps.png

  • Find the button on this page labeled +New SmartApp and click it.

+NewSmartApp.png

  • Since you already have the code in your computer’s clipboard, find the tab along the top section called From Code. In the area provided, paste (typically CTRL+V) the code you copied from GitHub. Click Create in the bottom left corner of the page.

NewSmartAppCreate.png

  • This will bring up another page, with the code now formatted within the IDE. If the code was copied correctly, there are no other steps except to save and publish the code. In the upper right corner of the page, find and click Save. Now, click Publish (For Me), and you should receive a confirmation that the code has been published successfully.

SavePublish.png


You can also use the github integration and update your repo:


GitHub Settings:

Owner: yracine

Name: SmartThingsPublic

Branch: master

You then need to save & publish each "edited" smartapp.


.................................................................................................................................

Issue #2: I created the smartapp in the IDE, but I don't know where to execute it

.................................................................................................................................


For the initial setup, under the ST app, click on the Marketspace? item in the bottom menu, and then, on the smartapps link and finally, MyApps (last item in the list).

If you still do not see your smartapp, please make sure that you have published it in the IDE!

For any subs?equent execution, under the ST mobile app, click on automations>smartapps in the bottom menu. The list of installed smartapps will then appear.

.................................................................................................................................

Issue #3: I executed the smartapp in the ST mobile app, but there is no tips available

.................................................................................................................................

It may be possible, that for a given level, no tips are generated according to your actual indoor/outdoor conditions.

You may then want to try with a different level or try later when the indoor/conditions have changed.

  • In the smartapp, you can also "reset" the tips and the smartapp will erase any saved tips so far.The smartapp will then restart all tips processsing from scratch.


.................................................................................................................................

Issue #4: The verbal tips commands do not work with Ask Alexa

.................................................................................................................................

  • Ask Alexa v2.1.3a and higher is required
  • You'd need to update your list of operators, params, and utterances to be able to use the new verbal "tips" commands in Ask Alexa. Please refer to the link below for more details on how to update Ask Alexa

http://community.smartthings.com/t/ask-alexa-2-1-3/56898

  • You also need to activate the "tips" commands under Settings/Device Specific commands in Ask Alexa.

There is also a specific section about My Ecobee & My Next "tips" commands available under the ST community wiki which explains the new verbal commands.

http://thingsthataresmart.wiki/index.php?title=Ask_Alexa#MyEcobee_.26_MyNext_Devices.27_comfort_.26_energy_saving_tips

................................................................................................................................

Issue #5: I'd like to disable any notifications coming from the stats generation smartapps

.................................................................................................................................

If you disable all notifications in the stats generation smartapps, just answer 'no' to 'Send Push Notification' in the last page of the smartapps.