Virtual switch to change hello, home mode

I have successfully done this and it is awesome. I made myself a checklist to get through it though, maybe it will help you:

1. Online> Add device in IDE as momentary tile https://graph.api.smartthings.com/device/list  
2. Mobile> configure device +1 but no settings
3. Make sure there is a Hello home action ready
4. Mobile> +> My Apps> Big Switch for Hello Home Actions set up tile
5. Authorize new device  https://graph.api.smartthings.com/oauth/authorize?response_type=code&client_id=ab0528dd-9710-42f2-9712-ba7702e9f85c&redirect_uri=http://107.20.127.54/smartthings/exampleOauth.php&scope=app  
6. Find the right one and rt click copy link from on, copy to reference sheet
7. Send link to phone via evernote (or whatever)
8. Mobile> Open MyClips Pro app
9. Develop home page tile
10. done!
2 Likes

With the new updated app for iphone you can have your hello home modes in your notifications tab so when you swipe down they are easily triggered. I would love nfc triggers but I dont think that will ever happen.

ha! wish I had updated my IOS sooner and hadnā€™t gone to all that trouble! Oh well. A footnote is another way to add to the notifications page is to do it through the Launcher app - then you can customize what the tiles look like.

1 Like

Hey Tim, you rock my friend. This is the second app I used that you wrote (first one was the thermostat director) that really pull things together for me. My first floor is all Lutron switches controlled by Harmony Hub. I am using your big switch to tie the two floors together. And it just works. Kudos, for a job well done!

Thanks for the kind words sir! Always happy to see my work helping other people! Definitely let me know if there is something you think the community could benefit from. Always looking for ideas for my next app :slight_smile:

God Bless!

1 Like

Am i correct in assuming the link you have provided (https://graph.api.smartthings.com/oauth/authorize?response_type=code&client_id=ab0528dd-9710-42f2-9712-ba7702e9f85c&redirect_uri=http://107.20.127.54/smartthings/exampleOauth.php&scope=app) is actually provided someone at http://107.20.127.54 access to anyones data for the client ID ab0528dd-9710-42f2-9712-ba7702e9f85cā€¦ this should be unique data.

For example if i clicked that link and provided access; its access to something i dont know; you could be providing access to everyones devices to anyone?

[quote=ā€œicepicknz, post:27, topic:2823ā€]
Am i correct in assuming the link you have provided
[/quote]umā€¦ nope. It does allow anyone to install that smartapp into their account (thatā€™s how oauth works, since you have to log into your account in that step, youā€™d be granting the app access to your account.)

It takes a bit to get ones head around oauth.

http://blog.varonis.com/introduction-to-oauth/

The link above in step 5 is Step 2 in the blog post. The SmartApp is the clientID, and the secret is not even there, so nothing is actually going to work, but later, in step 7, weā€™d have an actual link you could use to access the REST endpoint you authorized. If you give THAT link out, then that link + the auth token does give access to the REST endpoint. You can always delete the SmartApp to revoke all links, so even then, itā€™s not a permanent leak.

1 Like