Wemo Dimmer Switch

BTW - For those of you having problems detecting your Wemos or reliability problems down the road it is highly recommended to set them up with static IP’s within your router. You will also want to ensure UPNP is enabled on your local network. Mine used to flake out all the time (I have ~20 in my house). After I set static IP’s they have been rock solid.

1 Like

Hey Mike thanks for all the effort! As I’m quite new to Github and IDE, am I supposed to copy your code under my github account and integrate that to my ST IDE? For both grovy and smartapps? Thanks!

You can copy / paste the code if you wish. The better approach is to use GitHub integration. To do that, simply click on “My SmartApps”, then “settings”, then “add new repository”. For “owner” stick in “meatheadmike”. For “name” put “SmartThingsPublic”. And “branch” should be “master”. Now if you click on “Update from Repo” you should see it in the list. Check off “kris2k2:WeMo Dimmer Light Switch” from the list of new apps. Then select “Publish” and “Execute Update”. Repeat all that for the “My Device Handlers” section. You should now have the app on your phone!

2 Likes

I can’t get to work. I installed the app and handler. I see the Wemo dimmer app in my ST app, but can’t get it to discover my 2 switches.

Any idea? I installed them in the original Wemo app and they work just fine.

Thanks

Under : My locations, Events, all, i can see them

Source Name Value Changed
HUB ssdpTerm urn:Belkin:device:dimmer:1 … false

Just have no idea why i can’t add them to ST. Any way i can add them with the MAC?

Nevermind, i got it to work finally. I removed both handler and smartapp and re-installed them making sure i used Kris repo as master.

Weird thing is Google home still don’t take the vocal commands to open/close lights for some odd reason.

I’ve tried updating from GitHub repo and I can create the device handlers and updated the my smart app. When I go to the smart things app on my phone, it doesn’t find anything.
Do I need to create a device and then search or will it create the device once it’s found?

I’m using Kris2k repo, so not sure what step I’m missing.

I’ve got to say that I’ve used Wemo Dimmer successfully for a couple of months using this repo. Thank you very much for that. But it was only until very recently, must be after October 2018, when these dimmers got a firmware update from Wemo. It was supposed to add Apple Homekit functionality. However after that update, this device handler+smartapp is unable to find any dimmers. The already established links were forever showing the devices as offline, so I deleted them and tried scanning for them and adding them again, but no luck. This repo does not work anymore. I am not a developer, but I urge the original publishers to take another look at the wemo dimmer with the new firmware and see if they can make this repo functional again.

I’m having problems with using the repo for the dimmers … watching the logs it detects the dimmer but it never updates the dropdown for me to select the dimmer and install the device in ST. Tried messing with the code a bit to see if I could figure out what was going on, but haven’t had any luck yet. @meatheadmike or @kris2k2 … any thoughts? I’ve tried using both of your versions of the code and I have the same problem with both.

Here are the logs I was talking about … essentially it gets the device and then continously gets the event notifications with what looks like encoded data over and over again, with the refresh count going up, until you exit … the dropdown in the page never updates to be able to select the device, it just sits there saying discovery started. I’ve let it go for a long time and nothing changes.

602ed324-2de0-4d97-914a-42b95ff15d66 10:02:17 AM: debug getChildDevices(false), children=0

602ed324-2de0-4d97-914a-42b95ff15d66 10:02:17 AM: debug Uninstalling, removing child devices…

602ed324-2de0-4d97-914a-42b95ff15d66 10:02:17 AM: debug Uninstalling, removing child devices…

602ed324-2de0-4d97-914a-42b95ff15d66 10:02:14 AM: debug ParsedEvent: [mac:24F5A245F369, headers:SFRUUC8xLjEgNTAwIEludGVybmFsIFNlcnZlciBFcnJvcg0KU0VSVkVSOiBVbnNwZWNpZmllZCwgVVBuUC8xLjAsIFVuc3BlY2lmaWVkDQpDT05ORUNUSU9OOiBjbG9zZQ0KQ09OVEVOVC1MRU5HVEg6IDYwDQpDT05URU5ULVRZUEU6IHRleHQvaHRtbA==, body:PGh0bWw+PGJvZHk+PGgxPjUwMCBJbnRlcm5hbCBTZXJ2ZXIgRXJyb3I8L2gxPjwvYm9keT48L2h0bWw+, hub:421a7132-90cf-456a-882f-ec2e285ae87e]

602ed324-2de0-4d97-914a-42b95ff15d66 10:02:14 AM: debug Raw: physicalgraph.app.EventWrapper@174ad581

602ed324-2de0-4d97-914a-42b95ff15d66 10:02:14 AM: debug Raw: physicalgraph.app.EventWrapper@174ad581

602ed324-2de0-4d97-914a-42b95ff15d66 10:02:14 AM: debug Dicovered dimmer switches

602ed324-2de0-4d97-914a-42b95ff15d66 10:02:14 AM: debug REFRESH COUNT :: 1

602ed324-2de0-4d97-914a-42b95ff15d66 10:02:09 AM: debug [uuid:Dimmer-1_0-241829K1501549::urn:Belkin:device:dimmer:1:[devicetype:04, mac:24F5A245F369, ip:C0A80229, port:C001, ssdpPath:/setup.xml, ssdpUSN:uuid:Dimmer-1_0-241829K1501549::urn:Belkin:device:dimmer:1, ssdpTerm:urn:Belkin:device:dimmer:1, hub:421a7132-90cf-456a-882f-ec2e285ae87e]]

602ed324-2de0-4d97-914a-42b95ff15d66 10:02:09 AM: debug New device discovered

602ed324-2de0-4d97-914a-42b95ff15d66 10:02:09 AM: debug ParsedEvent: [devicetype:04, mac:24F5A245F369, ip:C0A80229, port:C001, ssdpPath:/setup.xml, ssdpUSN:uuid:Dimmer-1_0-241829K1501549::urn:Belkin:device:dimmer:1, ssdpTerm:urn:Belkin:device:dimmer:1, hub:421a7132-90cf-456a-882f-ec2e285ae87e]

602ed324-2de0-4d97-914a-42b95ff15d66 10:02:09 AM: debug Raw: physicalgraph.app.EventWrapper@43093266

602ed324-2de0-4d97-914a-42b95ff15d66 10:02:09 AM: debug Raw: physicalgraph.app.EventWrapper@43093266

602ed324-2de0-4d97-914a-42b95ff15d66 10:02:09 AM: debug Dicovered dimmer switches

602ed324-2de0-4d97-914a-42b95ff15d66 10:02:08 AM: debug Send discover command

602ed324-2de0-4d97-914a-42b95ff15d66 10:02:08 AM: debug Subscribe to location

602ed324-2de0-4d97-914a-42b95ff15d66 10:02:08 AM: debug REFRESH COUNT :: 0

I had everything working and last month my SmartThings Hub got reset for some reason so I had to redo everything.
I’ve tried using Kris2k2 and meatheadmike repos and neither will detect my Wemo Dimmers.
Any of the devs can take a look?

I have tried following the instructions to use GitHub integration but keep getting blocked. I have already been using github integration with other smartapps, but everytime i try and add new repository for either Kris2k2 or meatheadmike i get an error that says "you don’t have access to **/SmartThingsPublic. I know i have done this before but clearly I’m missing a step somewhere.

I’m also having problems. Tried to update / delete and re-add the SmartApps / Device Handlers. Overall, I’m really unhappy with the Wemo line in general. There’s no way you could get me to buy another Wemo for myself or anyone else. I can’t even get my Wemo Dimmer to work with my Amazon Echo!

1 Like

OK … not sure if the two other devs who had worked on this are active anymore and I got tired of waiting, so I forked the code and have made several changes, including fixing the detection of the dimmers.

You can use Github integration (owner: sirtwist, name: smartthings, branch: master) to get the latest version.

SmartApp:

Device Handler:

Please let me know if you have any issues with it.

1 Like

I’m getting the same thing with yours. “You don’t have access to sirtwist/smartthings” I know im missing something really simple because I’ve never had this problem before, but its been a while since I added anything with integration.

do you login to IDE at https://account.smartthings.com ?

Where are you getting that message at? Can you grab a screenshot?

Yes, i get in, i get to the my smartapps section. Go to settings button on right. Click Add new repository, then add the information: owner, name, branch and click save. It returns me to the smartapps page with my other smartapps listed, but has a red banner across the top saying "you don’t have access to sirtwist/smartthings.

I’m seeing recommendations from others reporting the same error message to disconnect from Github integration in the IDE and re-connect.

1 Like

That was it. Once i disconnected and reconnected i was able to complete the steps. Thank you guys so much!