Web Dashboard 2.0

If you have the access token, you’re in.

Sorry for not following. But if I take the url, form of https://graph.api.smartthings.com/api/smartapps/installations/1111111-1111-1111-1111-11111111/ui or the addition of token (https://graph.api.smartthings.com/api/smartapps/installations/1111111-1111-1111-1111-11111111/ui?access_token=2222222-2222-2222-2222-2222222) from different computers, never prompted for authorization. I was expecting first one to at least prompt me. Haven’t worked with OAuth before, so my expectations/understanding is off.

I also tried re-editing the device type and changing the OAuth keys. Every time I go in, the OAuth section is collapsed (suggesting to me it is off…probably just a UI thing).

That’s not what I see. No token (or even editing just 1 char in it) = no access. Sure you don’t have some kind of browser cache going on here?

I am clicking the [ + ] in ST, selecting the My App > Web Dashboard 2.0 (that was added via IDE into custom apps), then configuring it. Going to log, I see URL. That url, if I take to any machine can run it. I thought the OAuth would prevent that from happening? URL includes the access_token. But even stripping that portion out, it still can be accessed. Guess my concern is me sharing the URL with Wife or family member and somehow it gets exposed to other’s.

Any way to initiate “hello home” actions from the dashboard?

Like I said previously… not here. No token (or wrong token), and I get “Authentication required”.

So looks like if you are logged into the IDE on a machine, then it doesn’t prompt you.

Side question, if I create a dashboard from my phone and provide wife with URL, can she use her login? If not, then just means I will have to help her setup her own dashboard rather than customize it for her.

if you provide the full link to your wife or anyone, no login in needed. The login happens automatically based on the access token and info in that url

https://graph.api.smartthings.com/api/smartapps/installations/xxx-xxx-xxx-xxx-xxx/ui?access_token=xxx-xxx-xxx-xxx-xxx

[quote=“Malathan, post:59, topic:5518, full:true”]
So looks like if you are logged into the IDE on a machine, then it doesn’t prompt you.[/quote]
That’s 'cause you are already authenticated.

If she has url with token she needs nothing else.

So, I figured out a way to use “mode” as a good method for initiating hello-home-like options. Use another smartapp called “scenes” to trigger actions upon mode change.

Hello Home is coming to a Web Dashboard near you in a couple of days.

6 Likes

625alex, do you have a paypal account that I can send you some money for your effort?

I tried this out last night, very cool! I will have to go back up and review the thread to see how I can have a unique view for other members of the household.

@eibyer

Check out Alex’s latest:

Wow, thanks! I just got on 2.0, wasn’t aware there was a new one already :slight_smile:

Hey WD 3.0 is super cool @625alex, I tinkered with temperature tiles and was able to display my HEM readings too. It may be interesting to look into using gauges from google analytics :slight_smile:

What are HEM readings?

Home Energy Meter such as Aeon Labs Aeotec Smart Energy Meter:

Thanks @beckwith, @625alex will try to post a link of google gauges, my hub is having issues at the moment.

@625alex https://graph.api.smartthings.com/api/smartapps/installations/fcf8c89c-a9d3-48df-83f1-bd0f168230a2/test?access_token=54581545-8e8a-4d03-a99d-4db5607273b5 “HEM Readings on Google Analytics Gauges”