Greetings,
I’m reposting my original reply from a post started by @Kriskit in hopes there are others in addition to Chris who may be able to help.
I have two Wemo Makers; one that works well with my garage door through IFTTT. The other I plan to set up to drive an alarm horn. With IFTTT integration, there comes an inherent security risk; that is if internet is cut, subsequent communication to the Wemo Maker would also be interrupted - rendering my security system ineffective. Thus the reason I’d like the Maker recognized by my SmartThings Hub.
This being my first attempt creating a SmartApp, I have to say I’m somewhat confused and probably should have tried creating something less complicated for my first SmartApp.
I used the code attached in this post…
https://community.smartthings.com/t/release-wemo-maker/46098
Here is how it progressed as I worked to create the app…
The first thing I did was install the Wemo (Connect) SmartApp on my iOS device from within the SmartThings App, followed by copying the first code set to My SmartApps IDE. Then, I copied the second code set to My Device Handlers in IDE - and saved both, but did not publish anything (I read somewhere that if I’m not a developer, I don’t need to or shouldn’t publish the app). I then went to Create Device and noticed at the bottom of the list a Wemo Maker. I selected this and attempted to create it, but got a 500 Internal Server Error. Also, I tried to create a simulator in My Device Handlers, but it comes up blank. Then, I attempted the same thing in My SmartApps (IDE) and it began searching for a Wemo Maker, found my Garage Door opener, but returned the error “java.lang.NullPointerException: Cannot get property ‘value’ on null object @ line 181”.
I assumed the instruction “Copy the Wemo Maker device type into the IDE:” meant to put the code in the Device Handler’s section. But if not there, then where? I don’t see anything labeled Device Type. So, I kept futzing with things and ended up successfully adding a new Device (Wemo Maker) in the IDE. Much to my surprise, it showed up (with an ACTIVATE button) in My Things list on my iOS App! However, it didn’t last long - because it’s still there, but is now showing as OFFLINE.
Clearly I’m not doing something right, or I’m doing everything wrong. Honestly, I didn’t expect it to work because I wasn’t sure I was doing anything correct in the first place. I have looked at (but not perused) the SmartThings Developer Documentation and have watched a YouTube video SmartApps Workshops 101 by @matthewnohr only to realize that I may be in over my head. All this said, I believe I can do this, but it may take a considerable amount of time (aka much trial and error) before I get it to work.
Any help anybody can provide is most appreciated. Thank you for your time.