FAQ: Logs and SmartThings - An intro into figuring out what went wrong

Logs and SmartThings:
https://graph.api.smartthings.com: This is the first place to go when SmartThings are not acting right. This is also the developer site, even if you’re not geek this is an excellent resource to check logs and forcibly delete smart apps and devices.

Live Logging:
https://graph.api.smartthings.com > Live Logging
This is where real time logs can be found. If you are having problems paring new devices or debugging code, this is a great place to start.

Hub logs:
https://graph.api.smartthings.com > My Hubs > List Events > From Hub
Great place to see hub connectivity all PING’s (I’m Alive) and hub disconnect/reconnect messages can easily be seen here. These entries are historical up to 7 days

Device logs:
https://graph.api.smartthings.com > My Devices > (Choose a device ie Switch1) > List Events
Want to see what your devices are doing and why? Then this is your stop. These entries are historical up to 7 days
DEVICE /physical: came from physical contact
APP_COMMAND: came from an app

Smart App job history:
https://graph.api.smartthings.com > My Locations > List SmartApps > (Choose a Smart App ie BigSwitch)
The job history keeps track of what parts of a smartapp are scheduled to run at what times. If scheduled jobs aren’t firing this is the place to look. These entries are historical up to 7 days

Smart App logs:
https://graph.api.smartthings.com > My Locations > List SmartApps > (Choose a Smart App ie BigSwitch) > List Events > All
This is a full historical list up to 7 days of every command the selected app has sent.

20 Likes

Just a quick note that SmartThings recently changed the retention period For the historical logs. I believe it’s now 2 days instead of 7.

1 Like

Is there any historical live logging? Something didn’t work as planned and I’d like to debug and the events listed don’t help me.

You might want to look at all the logs, other than live logging.

I’ve gone through all the logs linked above and can’t seem any historical live logging. I’m trying to trackdown a failure in a SmartApp in the middle of the night. It would have been output to the logs. Am I missing something?

Live logging is just that: the realtime flow. It doesn’t keep any history. It starts when you open it, and it stops when you close it, and as far as I know it’s not kept anywhere.

1 Like

I could have sworn that when I went to My Hubs and List Events it would populate all. Now it is showing nothing :weary:

Need to update this with the 2 additional shard addresses…

2 Likes

2018 update:

Instead of using the “graph” URLs mentioned above, everyone, regardless of country, can now use:

https://account.smartthings.com/

That will then take you to the correct “Shard” for your account.

(The original FAQ was written back when everybody was on the same shard.)

1 Like

Very correct! For some power-users, it is still helpful to understand the concept of “Shards”; and realize that if you have multiple Locations (Hubs) in your Account, they could actually live on distinct Shards. I am not exactly sure which Shard the account-login chooses, but I observe that if you click on a Location under My Locations, it still properly redirects to the correct Shard URL for that particular Location.

Ref:

1 Like