I am not using SHM anymore so I am not sure this still works in ST. If I trigger in Tasker I do not get any errors. I did use the HTTP Get. In the Server:Port I entered the following:
OK, thanks for your reply. I tried some other options going back to what you described, and I don’t get any errors, and it is not locking up anymore, but it also doesn’t appear to do anything.
@kevintierney@AndyRawson it seems that the API is not working anymore , it shows an error “This request is not authorized by the specified access token”. The same access token works on other switches and devices.
Any Ideas???
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
44
SmartThings has disabled the validity of “cross-SmartApp” Access Token’s, as this was a significant violation of the security model (and therefore, a significant security vulnerability).
At least I’m assuming they have disabled it (based on personal tests and observations). Since this was security related, they probably won’t announce it or list in release notes; though I think it should be announced now that the problem has been fixed.
There’s always a possibility that the vulnerability (or related vulnerabilities) are still not fully patched.
The solution: If you write / publish your own SmartApp that can possibly access SHM alerts (??), then you can issue your own Access Token(s). But since SmartThings has not published SHM methods, this is not likely to be possible.
Is there anyway any smartapp could access SHM alert? I see that “Smarttiles” can show SHM status, but even it cannot clear the alerts. So any other way around this ?
Even something like Reply to SMS should dismiss. Food for thought.
2 Likes
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
47
We’ve been told that there is no official API to SHM and not been given any timeline for one (if ever).
Perhaps it might help if you contact Support@SmartThings.com and ask the same question: Is there any way for a SmartApp to access and dismiss SHM alerts, etc. Please share the assigned Ticket number here, and consider contributing information to the http://ThingsThatAreSmart.wiki
This is just as logical as having the option to turn off reminders from SHM settings, but not something that occurred to ST developers since September 15 and counting. It was one of the reasons I stopped using SHM and moved on to a different security system.
I was able to dismiss my first alert directly via the UI, but recent testing (whereby I attempted to dismiss via Routine change) has left me with a stuck Alert message. In other words, doing anything other than directly managing the Alert may break the UI connection to the DB (with subsequent attempts to dismiss failing to map against the message).
Have also tried multiple variants of the GET post listed - A few resulted in “{“yippy”:“this worked”}” messages (but no updates), while the most promising link URL (using the smartAppId listed in the Intrusion Event Listing) resulted in the “Access Denied” messaging listed previously.
With this in mind, have a zendesk case logged with Support… Three days into setting up ST / SMH, I’m more than a little disappointed…
At this time there is no supported API or programatic way to get information about, or change the state, of Smart Home Monitor.
As we move forward we may provide a way to programmatically interface with SHM, and we’ll announce when we do so.
If you are having issues with SHM state, reaching out to support is your best course of action, as others have noted.
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
51
Thanks for the update. Can’t really “like” it because … well, for SHM to be truly useful, the SmartThings developer Community really badly needs an API. Please advocate for us as much as you can, thanks!!!
If this issue is not solved soon I’m going to take this hub and everything in my home that has ever touched it out to the desert for some destructive fun. In true smarthings fashion I’ll use the most cumbersome and idiotic disposal method I can devise. Maybe I’ll light it on fire and drop a piano on it… then I’ll collect each piece and ship it individually via overnight express to myself. When it arrives I’ll return to sender and when it is returned to me I’ll drive it to the ocean on my unicycle and drop in the nearest recycling bin. I may even buy some additional hubs expressly for this purpose… you know… just to get them off the street.
Sorry to bounce an old thread, but this is exactly what I’m after.
Do we know if this url involving the SHM ID no longer works? I can’t get it going, but I’m desperate for a way to automatically cancel intrusion alerts if I know someone has just arrived home.
Basically, my SHM turns off when Asus Wifi Presence kicks in - but that’s sometimes 15-20 seconds after the door is opened. I can write a CoRE piston to cancel the intrusion alert if someone arrives home within a minute of the door opening, but there’s the missing puzzle piece of actually interacting with SHM.
Funny you should bring this up. I just did a search looking for some answers on this. I have the same issue as you and find it way to cumbersome to dismiss the intrusion.
As far as I know, the only way is through the Smartthings app.
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
58
Maybe I’m missing it buried in the Topic somewhere… but what “url” are you referring to??
I’ve got my SHM ID from the IDE, using my username and password (I know it’s insecure, it’s just to see if it works right now) but I just get a text error in my browser saying I need to be logged in
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
60
… Yah… SmartThings has been, appropriately, closing those loopholes.
Still wish for a real SHM API; but don’t hold your breath… As mentioned above, several understandable reasons they are keeping it proprietary.