Kudos to @Entityxenon for creating this awesome app! Thank you!
NOTE: Scroll to the top of this thread for how I created a Padlocked Outlet to keep kids from unplugging the TV and plugging into a regular outlet.
Instructions for Installing TVTimer Manager
Install Device Types
- Centralite Keypad (I will post the Iris Keypad information at the end of this post)
- Smart Outlet with or without a built in Smart Meter (Any type that you are using to power your TV)
Metered Outlet Recommendation will be at the bottom of this post.
Install and Configure Smart outlet
General Instructions here: https://support.smartthings.com/hc/en-us/articles/205956950-How-to-connect-and-configure-new-devices
Install Centralite Keypad
Manually from Code
For this method you will need to have one browser window open on GitHub and another on the IDE.
Follow these steps to install the Centralite Keypad:
Thanks to @mitchp Mitch Pond for creating this custom device type
-
[IDE] Click on My Device Handlers
-
[IDE] Click + Create New Device Handler (top right corner)
-
[IDE] Click the From Code Tab
-
[GitHub] Go to the respository for the Centralite Keypad: https://github.com/mitchpond/SmartThingsPublic/tree/indev/devicetypes/mitchpond/centralite-keypad.src
-
[GitHub] Click Raw
-
[GitHub] Select all of the text in the window (use Ctrl-A if using Windows)
-
[GitHub] Copy all of the selected text to the Clipboard (use Ctrl-C if using Windows)
-
[IDE] Click inside the text box
-
[IDE] Paste all of the previously copied text (use Ctrl-V if using Windows)
-
[IDE] Click Create
-
[IDE] Click Save
-
[IDE] Click Publish --> For Me
Confirgure/Pair the Iris Keypad/Centralite Keypad
General Instructions here: https://support.smartthings.com/hc/en-us/articles/205956950-How-to-connect-and-configure-new-devices
For specific Help with the Iris Keypad: CentraLite Keypads
Install the TVTimer SmartApp
(You will be installing two SmartApps a Parent/Manager App and a Child/User App)
Install Manually from Code
For this method you will need to have one browser window open on GitHub and another on the IDE.
Follow these steps to install the TVTimer Parent/Manager App:
-
[IDE] Click on SmartApps
-
[IDE] Click + New SmartApp (top right corner)
-
[IDE] Click the From Code Tab
-
[GitHub] Go to the respository for the TVTimer Manager SmartApp: https://github.com/jebbett/TVTimer/blob/master/TVTimer_Manager.groovy.txt
-
[GitHub] Click Raw
-
[GitHub] Select all of the text in the window (use Ctrl-A if using Windows)
-
[GitHub] Copy all of the selected text to the Clipboard (use Ctrl-C if using Windows)
-
[IDE] Click inside the text box
-
[IDE] Paste all of the previously copied text (use Ctrl-V if using Windows)
-
[IDE] Click Create
-
[IDE] Click Save
-
[IDE] Click Publish --> For Me
-
[IDE] Click on SmartApps Above
-
[IDE] Verify that the SmartApp shows up in the list and is marked with Status Published
Now Follow these steps to install the TVTimer Child/User App:
-
[IDE] Click on SmartApps
-
[IDE] Click + New SmartApp (top right corner)
-
[IDE] Click the From Code Tab
-
[GitHub] Go to the respository for the TVTimer User SmartApp: https://github.com/jebbett/TVTimer/blob/master/TVTimer_User.groovy.txt
-
[GitHub] Click Raw
-
[GitHub] Select all of the text in the window (use Ctrl-A if using Windows)
-
[GitHub] Copy all of the selected text to the Clipboard (use Ctrl-C if using Windows)
-
[IDE] Click inside the text box
-
[IDE] Paste all of the previously copied text (use Ctrl-V if using Windows)
-
[IDE] Click Create
-
[IDE] Click Save - NOTE: DO NOT PUBLISH
-
[IDE] Click on SmartApps Above
-
[IDE] Verify that the SmartApp shows up in the list and is marked with Status Unpublished
Setup the TVTimer App
Go to the Smartthings App on your phone or tablet.
-
Select Marketplace -> SmartApps (Scroll Down to the Bottom) -> My Apps -> TVTimer Manager
-
Select Done (You could configure from here however if you are having network issues you may not want to do this yet).
-
Go Back to the Dashboard.
-
Select My Home -> SmartApps -> TVTimer Manager.
-
Scroll down to Advanced Settings and Tap
-
Go to Keypad Input and select your keypad
-
Go to Switch To Control and select your TV Outlet
-
Optional: Scroll down to When This Meter and select your Metered TV Outlet
-
Select Done
-
Select Create New User
-
Enter the Name, Quota Minutes and PIN Code
-
Optional: Scroll Down and setup Allowed Times. These are windows of time that reguardless of the Users allowed time the TV Outlet will not function. Think of this as Blackout times.
-
Select Done
-
Wait for the App to update. The User you just created will populate on the screen above Create New User
-
Now select Done.
Enjoy!
NOTE: Android Users there is a known bug with the Smartthings App on Android. Be sure when changing settings to ALWAYS press DONE. Do Not use the BACK button.
UPDATE: How to Use TVTimer
You can get the Iris Keypad here: http://www.lowes.com/pd_690406-41277-3405-L___?productId=999925326&pl=1&Ntt=iris
A good Smart Meter Outlet although you can use any. (2 listed below)
15 Amp: http://www.amazon.com/Enerwave-ZW15RM-Resistant-Receptacle-Screwless/dp/B00SXEMD9G
20 Amp: http://www.amazon.com/gp/product/B00SXEMALM/ref=pd_lpo_sbs_dp_ss_3?pf_rd_p=1944687642&pf_rd_s=lpo-top-stripe-1&pf_rd_t=201&pf_rd_i=B00SXEMD9G&pf_rd_m=ATVPDKIKX0DER&pf_rd_r=1KV017YDFNKD8GN6RSSS