HUB not showing up in my account. Please HELP?

Until, if ever, SmartThings decides to unpredictably migrate Locations from one Shard to another!

But if they ever do that, hopefully the shard address will become irrelevant and all connections will be automatically redirected. - Ha ha ha! :rofl:

1 Like

Also saw your other post on the oauth procedure which is a different thing altogether. Terry can probably point you in the right direction for that.

That does use the graph.api… url for the oauth callback.

Oh I definitely see this happening for sure.

Yup: This is clearly a “bug” in the “account.smartthings” login scheme. It “should” always work correctly but I can think of at least one reason for it to fail: An Account may have many Locations and such Locations could be on different Shards.

The harsh reality here? IDE Shards are not supposed to be used by anyone but developers and super-power-users. The entire IDE system was / is meant to be used by a “handful” of developers and power-users that know the heck what they are doing. Support is not provided for “us”.

1 Like

The most likely problems:

  • The OAuth flow in the source code is old and the developer hard-coded it to graph.api…?
  • There is some other bug that the developer is responsible for diagnosing and fixing.
  • or SmartThings platform is having a problem.
  • or the Account / Location for @johnnycashav is having a glitch that only can resolve … but good-luck with that.
1 Like

Oh, I will reach out to Terry because I think that this shard thing may be the reason why I cant get the authentication going.

Terry just replied to you :grin:

1 Like

You need to “reach out” to the developer of the “CrestronAPI SmartThings integration”. Who wrote it?

I am in contact with the person that created the CrestronAPI. His name is Jay Basen. He was saying that it may be something with my account that is causing the issue.

1 Like

This is interesting. Here’s the thread from Jay going back to 2016.

I am having the same issue he was having, I get the authentication but not I can’t can the token access to work for me.

I’m betting that y’all may not be processing the “getting the endpoint” step properly.

It is tricky (and, yes, SmartThings may be at fault and returning nonsense). Hand-parse the returned JSON to see if the values make sense.

If you don’t get an endpoint reference to “ap04”, then … the developer is probably doing it wrong; or the Account / Location is messed up and needs to be fixed by


I didn’t write the CrestronAPI. It was originally written by someone else. I ran into the problems referenced by my 2016 thread and was able to fix the problems with the code after getting help from the community.

The original author then handed the code off to me to post on my github for other people to use. So, I guess you could say I inherited it. The code has been working fine for me and others since 2016. JohnnyCashAV is the one person I haven’t been able to help resolve his problems. I only say it may be an account problem because I can’t see what else might cause the problems he is seeing when the code is working fine for other people. Thanks



Well… Indeed, it’s not unusual for “Account problems” to exist, but novice error is more likely.

  • Is the SmartApp loaded and self-published on the correct Shard (especially since he just learned what a Shard is and how to determine it)?
  • Does it have a Client ID and Secret?
  • etc…?
1 Like

Jay is helping me with everything he can, I passed the program to him so he can take a look and the account for ST to determine if I made any mistake. But it seems that everything I did is correct, Like you were saying before , “I don’t choose my shard, it’s done automatically according to my location”.
When I Published it I simply went to CrestronAPI and Publish- For Me, nothing hard to do here, I even was able to do the authorization and the communication with the device but only the Turn Off part was working, it wouldnt turn on.
I was not complaining about Jay, you asked me who wrote the code and I just wanted to mention him because he is a co-owner with someone else and he is helping to resolve this issue and we can benefit from that and be able to help others as well going along the road.
@tgauchat thank you for some clarification too.

The shard you are assigned by SmartThings just has to do with when your account is created. The only time where you live makes a difference is if you are in a region with different privacy laws.

So all UK accounts will be assigned to a UK shard.

US accounts are assigned to shards simply based on the point in time at which the current SmartThings space on a shard gets full and smartthings (not the individual customer) signs up for more space on a different shard.

So it started out with everybody being on na02-East1, then there came a calendar date when new North American accounts started getting assigned to Na04-east2 etc. (“na” means north America)

So if you signed up for a SmartThings account in 2015, whether you live in New York or Los Angeles, you were assigned to na02.

If you signed up for SmartThings account in late 2017, again whether you live in New York or Los Angeles, you were assigned to NA04.

Most companies, and smartthings appears to be among them, don’t try to assign their customers to Amazon servers based on what city they live in. Amazon does a good enough job for most use cases of delivering service everywhere within one region.

The legality issues involving privacy laws are an entirely separate issue, and do require being on a different shard. :sunglasses:

btw, I have no idea what happens to people who have Samsung accounts instead of SmartThings accounts, or what will happen once everybody’s migrated to the new app.


1 Like

That brings up a good point. I can’t recall now what happened being in the Account Migration Beta. I believe that my original ST account was on na04. As part of the migration process, we manually created a Samsung account (this was probably assigned na02-useast1 at this time). Then the actual migration script moved everything we had on our ST account over to the Samsung account which ultimately has me now on na02.

I’m not sure how the final shakeout of that script will affect the general public when they roll it out, but if the process is the same as we performed, I am going to assume people are going to end up on a different shard when creating the new Samsung account.

1 Like

I wish this were true; but I still think it is geographic except for NA02 which is currently being made the preferred Shard over NA01 (the original) for load balancing reasons.

A growing problem right now: Customers in Australia are landing on AP02 (Asia Pacific) and that’s causing trouble when they try to install ActionTiles because we are not deployed to that Shard yet.

1 Like

It’s been established by many previous posts in the forum that it’s not geographic for North American accounts. People from all over the US are in the same shard, whether it’s na02 or na04.

People in other countries definitely do have geography as a factor because, as mentioned, there are different privacy laws and they have to be assigned to a shard which uses the same legal structure for data storage.

So, i register when i was in US but now im in Europe, ST still works but on NA04, should i transfer all the data to the EU server? It is faster?