JSON or XML status for smart things hub v 2

I am wondering if there is a way to get dump the entire status of a smart things hub into a JSON or XML format file? I am trying to data into a reporting visualization system. Any pointers would be appreciated. Ideally I will be pulling status every minute. Getting any updates (in another syslog type feed) would be a bonus!

What do you mean by dump the entire status? The current values of all devices?

1 Like

It requires a login, but you can get device status from here


ID Hash String can be found by logging into the IDE and clicking on my hubs. if you have more then one, you’ll have to click on the one you want the ID for

The url you will see when you go to my hubs will be

Great, thanks… That is exactly what I was looking for. Now just to figure out how to authenticate to it via command line ( via wget/or script) :smile:

currentStates{}.name currentStates{}.type currentStates{}.value typeName label
Z-Wave Lock Front Door

Think I got that myself… http://docs.smartthings.com/en/latest/smartapp-web-services-developers-guide/tutorial-part1.html

Looks like you can do a curl…
curl -H "Authorization: Bearer " “/switches”

Just need to get tokens now… slow but sure…

I am no where near enough of a programmer to figure this out. I’m trying to get that XML file with statuses via a URL request from an application. http://docs.smartthings.com/en/latest/smartapp-web-services-developers-guide/tutorial-part1.html dives deep into writing smart apps and doesn’t explain clearly for me how I might authenticate the request.

Any help?