Smartthings and Wemo light switches finally working together


(Christopher Birkhimer) #1

I have been working to try to get my smartthings to work the Wemo light switches for months now and I have finally figured it out. I was having issues with smartthings not correctly showing that status of my lights or not controlling them correctly at all. I used multiple apps to try to figure out other ways to do it and I finally came across a combination of apps that when used together let smartthings and wemo work together…sorta, I will explain. This is a long explanation since there are a lot of steps but once you get your first light switch working it will come second nature. I have 9 switches working now flawlessly. First off let me list the apps I used.

  1. Smartthings - no explanation needed why I need this
  2. Tasker - This app automates functions on your phone
  3. Sharptools - This allows Tasker to see and control devices in Smartthings
  4. Wemomanager - Allows Tasker to control Wemo devices

The first step is to remove all my Wemo light switches from Smartthings. Then you go onto the Smartthings IDE page (https://graph.api.smartthings.com) and set up virtual On/Off buttons to take the place of the Wemo light switches you just removed from Smartthings. You can go back into Smartthings and name the new virtual On/Off buttons like you would if they were regular Wemo switches since botht he Wemo and the virtual On/Off switches are just switches with either an “On” or “Off” state.

Next you need to go into Sharptools and in the menu options authorize it to interact with Smartthings. You have to tell it what devices in Smartthings it is able to interact with, I just select every device in Smartthings. Once you do that and refresh Sharptools all the devices in Smartthings should show up under the “Things” menu. Fight the virtual On/Off switch you are using to replace the Wemo switch and long press on it. I subscription option should pop up, subscribe to it. This tells Sharptools which variable associated with the thing it is to control or look for. You also want to select the option for Tasker and Widgets. This allows Tasker to use Sharptools and set up widgets for any devices in smartthings.

Next you want to set up Wemomanager. I used static IP addresses for my light switches. This program controls the lights like the default Belkin Wemo app but provides a lot more options and abilities. The setup is pretty self explanatory.

Now that Wemomanager is set up, go to your light switch and look for the down facing arrow to the right of the green refresh button on the main screen. It should be the 4th icon to the left of the refresh button. When you click on it a pop-up should show at the top the name of the switch and 6 other buttons including “Turn On Intent”. When you click any of these buttons they will copy the information automatically. The Handled Intents are the commands the Wemo light switches receive telling them what to do. The Extras UDN stuff is the name for the light switch that Wemo uses. The broadcast events stuff is what Wemomanager server or the Wemo light switches actually broadcast out. So, click on the On button under the broadcast events.

Now it is onto Tasker where the real magic is. You will be using Tasker to send and receive “intents” to the light switches. In Tasker start a new profile and select Events when you start the new profile. At the button is a search area just search for “intent” and you should see “Intent Received”. Select that and in the options that pop up under the Action category paste in what you copied from Wemomanager. It should look something like mpp.android.WemoManager.On.Lightswitch-1_0-then a lot of numbers and letters. This is sets up the profile to react to an On signal from the particular light you selected in Wemomanager. Once you do that hit the back button in the lop left of Tasker, it will now ask you for a Task.

Select a new Task. In the task pop-up select plugins and select Sharptools. Select the option “A Thing”. In configuration select the pencil icon and select On/Off Button Tile and the type and then select the name of the virtual On/Off button you created in the Smartthings IDE page. Under the Command section select On since this in response to the profile seeing an On state of the light switch.

Back out to the main screen in Tasker, select the options in the top right and save to save what you just did. Now if you test it when the light switch is physically turn on or turned on using an app the virtual switch in smartthings should now also be off. You would just repeat the same steps for the “Off” condition just selecting the Off options instead of the On that you just did for everything.

This has Smartthings now only responding to a switch turning off/on. To get the virtual switch in smartthings to turn on/off a switch you need just a little more in Tasker.

Set up a new profile and again make it an Events profile but this time select Sharptools under plugins or just search for it. Select Thing Change in the option that comes up. Hit the pencil by configuration and type in the name of the virtual on/off button you made. You will notice it will say certain variables are set, keep them in mind and then hit apply. Select a new Task and search “intent”. This time you want to send an intent so select Send Intent. Now, hit the home button on your phone and wire up Wemomanager, don’t worry Tasker is running in the background. Go the light switch you are working with and select that option with all the intent info again, the 4th button after refresh with the downward facing arrow. This time you want to copy the top intent copy which is Turn On Intent. Bring up Tasker again and in the Action section paste in what you just copied. Go back to Wemomanager and copy the Extras UDN information which should look like a light switch identifying information with a bunch of numbers. Go back to Tasker and in the first Extras sections type UDN: and after the colon paste in what you just copied. Now save what you just did. These last steps now tell tasker to watch for the light switch to turn on in smartthings and when it does it sends out an ON command to the light switch you were just copying/pasting information for. Again, to respond to Off commands everything is the same except select the Off option instead of On appropriate places.

Let me know if you have any issues with this. This was just shows how to work stand alone lights. I have my set up with 9 switches where some of them are working as three way switches sorta so when one light switch turns on another light switch also turns on. The only change is that required some global variables to be set to tell tasker the state of some lights. The only real downside I see in this setup is that smartthings and Tasker isn’t really querying the light switches to know exactly what state they are, I am setting variables to On or Off after I send the On/Off intent command from tasker. So there is a slight chance that I could send the command but the switch doesn’t respond, been working for 4 days with heaving testing and never happened so far. The only thing i notices is sometimes there is a lag in tasker of a couple seconds, but that is usually only in the 3 way switch setups I have. No real big deal.

This now allows dashboard (such as actiON/Smart Tiles) for smartthings to control wemo devices relatively reliably as before it really wasn’t possible.

I hope this helps, again any questions feel free to ask. I have worked on this for a while and feel pretty confident I can help or explain any step.

Forgot to mention above, you need one instance of the wemomanager server running on one of your home screens on the phone or tablet you are using.


The Easiest way to solve WeMo sync Problem
Belkin WeMo Compatibility with SmartThings
Wemo issues
Wemo issues
Wemo issues
Wemo issues
Belkin WeMo
#2

Clever. Sharptools as a “man in the middle” makes a lot of sense.

@joshua_lyon should see this (he’s the author of SharpTools).

We should add two caveats:

1)this will only work if you have an android device

  1. it does require three additional third party apps, not all of which are free:
    Sharptools
    Tasker
    Wemo Manager (not the official WeMo app, this is third party for $)

(Emil M) #3

Wow - that seems like a lot of work for something SmartThings is supposed to support… Maybe I missed something.


(Christopher Birkhimer) #4

You missed nothing, sadly. I am as surprised as you that a single developer made wemomanager and smartthings team couldn’t figure it out. I know it seems like a lot, but it works. I want to make a wall mounted tablet with the actiON dashboard screen smartthings and I had to get wemo and smartthings to work to make the dashboard function


(Joshua Lyon (SharpTools.io Dashboard)) #5

Excellent work, Christopher! Thanks for sharing this - it’s always great to see interesting uses of the platform and supporting tools!


#6

You lost me here. “Go to your lightswitch”? No where can I find anything that looks like what you describe.


(Christopher Birkhimer) #7

When you have wemomanager open do you see your light switch? If so you should have a bunch of options to the right of the switch including a red Off, a green ON, and a green RESET which is an arrow going in a circle around a green button. Do you see that stuff, in wemomanager?


#8

This is weird because my interface looks very different from what you describe. The screen has the following from Left to Right

Device Switch Icon, drop down menu icon, Device name, Off button icon, On button icon.

All in all I did find that option in the dropdown menu.


#9

There are several products with similar names, not to mention the official manager. Can you provide the author’s name for the one you’re using, just to be sure?


(Christopher Birkhimer) #10

Author is MikeP and here is a link to the app


(Christopher Birkhimer) #11

That is weird, don’t know why it would show different for you, maybe it is phone dependent how it shows?!?!?


(Christopher Birkhimer) #12

Possibly, I am using a galaxy S5


(Nicolas) #13

I personally rewrote the WeMo App of SmartThings for my insight switch because it seems that theirs was a “beta” version:

If someone wants to adapt it for WeMo Lights…


(Christopher Birkhimer) #14

I am going to chat with customer support and show them the link to the setup I did. I would think they would be able to integrate what I did into the hub


(Christopher Birkhimer) #15

The more I use Tasker and Sharptools to control smartthings the more I am liking it. The use of Tasker is allowing more customization with devices in smartthings that currently is not possible using the built in apps/code of smartthings. It is also a lot more reliable.


#16

Despite all efforts I have not been able to get any of this to work. Maybe its because the confusion between different interfaces between our devices or different versions of software but I have not come close to getting even the first step/profile to work. I believe the problem lies with tasker as it appears never to receive the On intent from WemoManager.

Update: Talked to MikeP about my problem. Didnt realize that WemoServer had to be running on one of the Android home screens. Unfortunately this limits what I had hoped to achieve that is, use a wemo motion sensor to turn on Smartthing device (or St motion turn on wemo). This works well once the WemoServer Widget is installed on my mobile phone but it will stop working once I leave my home with my mobile in hand. Oh well, maybe time to “dump” my S3 and replace it with a nice shiny S6 :slight_smile: The S3 can then stay home and be my Wemo/ST liason :wink:


(Christopher Birkhimer) #17

I am thinking of getting a cheap 10 inch tablet to mount on wall to solve that issue with the Smarttiles dashboard


#18

I have actual have a Wemoserver (java) running at home that solves part of my problem. In tasker I use ST on/off switch which triggers a task containing HTTP Get (from server) to turn on/off a Wemo Switch. I cant quite figure out how I can capture a wemo event and trigger something in ST while my mobile is away from home.


(Christopher Birkhimer) #19

I would think you need an android OS running tasker on your home network for it to work right


#20

Doesn’t need to be connected to the home network for ST->SharptoolsTasker->WemoServer(Java) to work however, Can’t think how else WemoServer->Tasker could work without a home network connection.

I am thinking the cheap 10" tablet is the way to go. Wal-mart has some really cheap ones for well under $100… Going to check them out this weekend.

BTW: Did I miss the part in the instructions above about having WemoServer widget running on an android for this all to work. If not, you might consider updating the above instructions. Once I installed the widget, to implement your idea above was really a breeze. Without it was a nightmare :smile: