Goodnight SmartHome

The Unofficial SmartThings Blog
Jump to: navigation, search


Category: Safety & Security

Author:chrisb

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


Summary

Goodnight SmartHome is designed to provide a method of checking your home before going to bed. The app creates a virtual on/off tile (you must install my custom device type for the app to work correctly) which is uses as a trigger. This trigger can be turned on via a voice command with Alexa or manual via the ST Mobile App or via a remote (such as AEON button).

When the trigger is turned on the app will check any selected windows and/or doors and and report if any are left open. Reporting is done via a TTS option and/or push notification. If no windows are doors are left open a user customizable message will be played/sent.

Optional extra actions include: Turning on selected lights, turning off selected lights after a selected delay, and running a selected routine after a selected delay.

Example usage

When I'm ready for bed, I say to Echo: "Alexa, turn on Goodnight." This triggers the app to run. The app checks any doors/windows and alerts me, by name, which items may have been left open. The app turns on my Kitchen Light and my Upstairs Hallway light to provide illumination for me to get to bed. The App turns off all lights on the main floor and basement after 5 minutes. The app runs 'Goodnight' routine after 5 minutes to set my mode (and therefore my Alarm state).

Note that the App can be installed multiple times and used for other instances. It could be used as a good bye trigger to make sure you closed everything before leaving the house.

Code location: https://github.com/sirhcb/Goodnight-SmartHome

Instructions for installation (readme): https://github.com/sirhcb/Goodnight-SmartHome/blob/master/README.md

Troubleshooting

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

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

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

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

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

From your phone or tablet, within the smartThings app and on the main screen, click on '+' at the bottom, under SmartApps, scroll down to My Apps, find the smartapp, and click on it.

If you have upgraded to the new UI, click on the Smartapps link in the upper section of any of the following screens: Home & Marketspace, and then MyApps (last item in the list).

For more detailed explanations, refer to the ST documentation:

http://support.smartthings.com/hc/en-us/articles/200881864-How-do-I-find-SmartApps-that-I-ve-published-

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