Wemo Mini Outlets

@jason0x43 I just sent you the logs in a PM. So after updating the code, I now see that every wemo device is changing the name of the last one in the list (not just the manual one). I have no idea why it changed back before, but now that one takes a turn at being everything in my WeMo environment lol.

Interesting. It looks like Wemos have 2 MAC addresses (one used for SSDP messages and one reported by the setup.xml), and that was causing some confusion in the device registration logic in the connect app.

I pushed a new version that tries to be a bit more definitive about what data is used for device registration. Give that one a try.

@jason0x43 so with the updated app code the wemo minis are now being discovered when I manually input the IP address! I'll play around with the wemo minis a bit later and confirm they work as expected.

Weird side effect though is that now all the rest of my WeMo devices show up twice in the list since there's 2 mac addresses for each. Looking at the info being returned for the old wemo switches I don't see any "good" way to correlate them back so they don't create duplicates. The mac addresses appear to be sequential (ex: one ends with A and the other on the same device ends in B) but it's not consistent. It's looking like the only thing unique about these is the IP address unless you can somehow correlate on the serial number, but I'm not sure what's returned by the discovery call.

I would guess the duplicates in the list are from discoveries made before the latest code update. The current code only uses the mac address listed in each device's setup.xml. Hmmm...I could clear the list periodically, or maybe add a control to do that.

I ran a few tests and the minis are responding as I would expect. On/Off/refresh and the automatic polling seems to be working (if I turn the switch on via the wemo app the hubitat updates to show the updated state).

Correct me if I'm wrong, but the list in the WeMo connect app interface is used exclusively to add new devices correct? So if I "uncheck" an item from the list it doesn't remove it or cause any problems with devices already added?

That is correct. When you click 'Done', the app creates or updates child devices (things that show up in Hubitat's devices list) for any checked devices in the discovered devices list. Unchecked devices are simply ignored. The only time the app will remove child devices is when it's uninstalled.

Hate to ask for more work but if there is any chance you add this to package manager it would be awesome :slight_smile:

2 Likes