Difference between revisions of "WindowOrDoorOpen"

The Unofficial SmartThings Blog
Jump to navigation Jump to search
(Issue #2: I created the smartapp in the IDE, but I don't know where to execute it)
(Issue #2: I created the smartapp in the IDE, but I don't know where to execute it)
 
(5 intermediate revisions by the same user not shown)
Line 11: Line 11:
  
 
--------------------------------------------------------------------------------
 
--------------------------------------------------------------------------------
'''If you like My Ecobee Device and related smartapps, please support the developer by clicking on the paypal link below:
+
'''If you like this smartapp, please support the developer:
  
 
https://paypal.me/ecomatiqhomes
 
https://paypal.me/ecomatiqhomes
Line 20: Line 20:
  
 
== Summary ==
 
== Summary ==
WindowOrDoorOpen, the smartapp that warns you if you leave a door or window open (with voice notifications as an option).  
+
''WindowOrDoorOpen'', the smartapp that warns you if you leave a door or window open (with voice notifications as an option).  
 
It will turn off your thermostats (optional) after a delay and restore their mode when the contact is closed
 
It will turn off your thermostats (optional) after a delay and restore their mode when the contact is closed
 
   
 
   
 +
== Prerequisites ===
 +
 +
* An operational SmartThings hub fully configured (i.e. location set)
 +
    http://docs.smartthings.com/en/latest/publishing/index.html#ensure-proper-location
 +
* Some basic ST skills to create custom apps (see troubleshooting, item 1)
 +
* Use of the ST classic app (you can run both Samsung connect app and the ST classic app in parallel)
 +
* ST Contact sensors (optional) for door/window contacts to detect if open/closed
 +
* Determine your shard, please consult this thread:
 +
  https://community.smartthings.com/t/faq-how-to-find-out-what-shard-cloud-slice-ide-url-your-account-location-is-on/53923
 +
  Or the SmartThings documentation here:
 +
  http://docs.smartthings.com/en/latest/publishing/index.html#ensure-proper-location
 +
 +
* Ecobee thermostat (if any) controlled via ST by MyEcobee device. I recommend to increase the polling to every minute (in ''MyEcobeeInit'' under Automation/smartapps in the ST classic mobile app)
 +
    => see http://thingsthataresmart.wiki/index.php?title=My_Ecobee_Device
 +
 +
* Nest thermostat (if any) controlled via ST by MyNextTstat device. I recommend to increase the polling to every minute (in ''MyNextManagerV2'' under Automation/smartapps in the ST classic mobile app)
 +
    => see https://thingsthataresmart.wiki/index.php?title=My_Next_Tstat
 +
 
== Supported Features ==
 
== Supported Features ==
  
Line 35: Line 53:
 
'''Code location:'''
 
'''Code location:'''
 
http://github.com/yracine/device-type.myecobee/tree/master/smartapps
 
http://github.com/yracine/device-type.myecobee/tree/master/smartapps
 +
https://github.com/yracine/device-type-myNext/tree/master/smartapps
  
 
== Troubleshooting ==
 
== Troubleshooting ==
Line 84: Line 103:
  
  
''For any subsequent execution, under the ST mobile app, click on automations>smartapps in the bottom menu. The list of installed smartapps will then appear.
+
''For any subsequent execution, under the ST classic mobile app, click on automations>smartapps in the bottom menu. The list of installed smartapps will then appear.

Latest revision as of 16:46, 30 July 2020


Category: My Apps

Author:Yves Racine

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

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



If you like this smartapp, please support the developer:

https://paypal.me/ecomatiqhomes



Summary

WindowOrDoorOpen, the smartapp that warns you if you leave a door or window open (with voice notifications as an option). It will turn off your thermostats (optional) after a delay and restore their mode when the contact is closed

Prerequisites =

  • An operational SmartThings hub fully configured (i.e. location set)
   http://docs.smartthings.com/en/latest/publishing/index.html#ensure-proper-location
* Some basic ST skills to create custom apps (see troubleshooting, item 1)
* Use of the ST classic app (you can run both Samsung connect app and the ST classic app in parallel)
* ST Contact sensors (optional) for door/window contacts to detect if open/closed
* Determine your shard, please consult this thread:
  https://community.smartthings.com/t/faq-how-to-find-out-what-shard-cloud-slice-ide-url-your-account-location-is-on/53923
  Or the SmartThings documentation here:
  http://docs.smartthings.com/en/latest/publishing/index.html#ensure-proper-location
  • Ecobee thermostat (if any) controlled via ST by MyEcobee device. I recommend to increase the polling to every minute (in MyEcobeeInit under Automation/smartapps in the ST classic mobile app)
   => see http://thingsthataresmart.wiki/index.php?title=My_Ecobee_Device
  • Nest thermostat (if any) controlled via ST by MyNextTstat device. I recommend to increase the polling to every minute (in MyNextManagerV2 under Automation/smartapps in the ST classic mobile app)
   => see https://thingsthataresmart.wiki/index.php?title=My_Next_Tstat

Supported Features

  • Any door or window contact can be monitored
  • All ST connected thermostats are supported (wi-fi, zigbee, z-wave, etc.)
  • Multiple thermsostats can be selected
  • Delay between notifications can be set (optional parameter)
  • Maximum number of notifications can be set (optional parameter)
  • Voice notifications can be used (optional parameter)
  • The smartapp can be temporarily deactivated (on hold) with a power (virtual or physical) switch (optional parameter)

Code location: http://github.com/yracine/device-type.myecobee/tree/master/smartapps https://github.com/yracine/device-type-myNext/tree/master/smartapps

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.

  • a) Point your browser to you SmartThings IDE for your country (i.e. http://ide.smartthings.com or whatever your shard is) and Log In.

Loginscreen.jpg

  • b) 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

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

+NewSmartApp.png

  • d) 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

  • e) 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


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

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 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 subsequent execution, under the ST classic mobile app, click on automations>smartapps in the bottom menu. The list of installed smartapps will then appear.