Wemo switch and insight smart plug

Thanks! I'll update my source.

Thank You Very Much @jason0x43! I have a basic WeMo switch and your driver and app found and loaded it straight out of the gate! Too Cool Man!!

@jason0x43

Suggestion for code change on all DHs for correct polling.

def poll() {
    log.debug 'poll()'
    if (device.currentValue('switch') != 'offline') {
        runIn(3, setOffline)
    }
    parent.childGetBinaryState(device)
}

Original was 30 which turns out to poll every 30 minutes. At least with the Insight you need more polling for energy state so I placed this as 3 so I wouldn’t have to make a RM to refresh every 3 min.

Just a suggestion.

2 Likes

How to connect a Wemo Switch, Insight or motion in Hubitat with the @jason0x43 App and Drivers

1- Add your Wemo object in the official Wemo App and give it a name. This part MUST work before going to step 2.

1b- Not required but highly recommended : In your router, reserve the ip address of your Wemo device.

2- Select the driver for your device in this page and copy is code : https://github.com/jason0x43/hubitat/tree/master/drivers
Use the Raw button to copy only the code.

3- In Hubitat, Drivers Code, Click New Driver

4- Paste the Drivers code

5- Copy the App code at this link : https://github.com/jason0x43/hubitat/blob/master/apps/jason0x43-wemo_connect.groovy
Use the Raw button to copy only the code.

6- Paste it in Hubitat in, Apps Code, New App, Save

7- In Hubitat, Apps, click Add User App

8- Select the WeMo Connect App

9- WAIT WAIT It can take 50 secondes or more for all your device to show. The 0 found will change…

10- Now you need to be fast to select the device you want to add and hit Done. Auto-Refresh every 30 secondes

11- Your Wemo device must now be visible in the Devices menu

You can now use Hubitat or the Wemo App to control your device. Working since Hubitat V2.0.0.104 and always working in 2.3.0.124
I wanted to share with you what i just did.

5 Likes

FYI that I made sure all my WEMO devices had permanent IP addresses in my router table so that the need to rediscover will be limited. I did this when I first found many issues on ST that were related to ghost WEMOs and incorrect IPs.

I have WEMO smartplugs (from Costco) and although the app finds the plugs, it never creates a device for them. Any help?

I got it. You really do have to be fast enough to keep the device populated in the app discovery.

1 Like

Yeahhhh...that was an amusing process for me as well. DO NOT BLINK!! Haaaaaa :sunglasses:

Do you mean that devices are disappearing from the dropdown (or the dropdown is being closed) before you have a chance to select anything?

For me it's this scenario. Just gotta be quicky nimble finger to check the box in time.

Ah, I see what happened there. I just pushed an update to the app that increases the refresh time for the device selector to 30 seconds (it was initially set to refresh every 5 seconds).

thanks @ jason0x43 it was too fast 5 seconds!! Great work man

@lehighkid, you mentioned that you had some success with getting your Wemo Maker to work. Which app and drivers were you using? I'm trying to get my Maker working using the code posted by @jason0x43 but it doesn't seem to be discovering my Maker.

I just installed @jason0x43's Wemo and it works great except it doesn't recognize my Wemo dimmer. I noticed a post from @lehighkid last year about a version of the app that did.
Should I install @lehighkid's app too?
Is there a chance the ability to work the Wemo dimmer will be added to @jason0x43's?
On a side note, how do I know when Discovery is done?
TIA,
Jim

I can add dimmer and Maker drivers, but I can't test them since I don't have a dimmer or a Maker.

Discovery is a never-ending process. When the connect app is open, it broadcasts a request every 25 seconds and waits for devices to respond.

I would be happy to test the dimmer driver. Just give me the driver and tell me what logs you want and I'm on it.
Thanks.

I have 2 WEMO switches:


and

I have installed the drivers, and the app, but neither one can be found. I actually let the discovery run for over an hour.
I have rebooted the hub, and tried again, but no joy.
Any idea what else I can try?

Try opening the Hubitat logs, then open the WeMo Connect app in a new tab. What does the log show from the app? Also, are the Hubitat and the WeMo devices on the same subnet?

HE and Wemo devices are on the same subnet, and all have fixed ip addresses.
Here is a screen shot of log. This just keeps repeating over and over. I gave up after about 1.5 hours.

I'd be happy to test out the Maker drivers. Just let me know what you need from me.

I have been searching and reading, but cannot find whether WEMO Dimmer drivers, etc. was ever made available for integration. I have @jason0x43 stuff installed and working. All other WEMO switches and plugs are working, just no dimmers.

Right now this is all I need to complete my project.