Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WeMo Mini Plug #60

Open
1git opened this issue Dec 28, 2017 · 7 comments
Open

WeMo Mini Plug #60

1git opened this issue Dec 28, 2017 · 7 comments

Comments

@1git
Copy link

1git commented Dec 28, 2017

Hi,

I have recently bought a WeMo Mini plug, I have read that this isn't supported in this project yet.
What can I do to help integrate this product?
Thanks.

@timonreinhard
Copy link
Contributor

It might work already without changing stuff (I'd guess it gets discovered as a "switch", so you should be able to run the switch example with it). If not, enabling the debug output and posting the lines starting with "found device" here is a good start to get you going.

@philpownall
Copy link

I tried wemo.discover with a Wemo Mini, and got no output at all, even with debug on...it seems UPNP is not responding.

I presently use James Borkowski's wemo shell script from node with child_process.exec, and it works just fine, but I'd rather use a node package.

From the trace output from Borkowski's wemo, I got the device IP address and port (Host: 10.0.0.108:49153 in my case), and I was able to use your wemo.load function successfully.

This confirmed that the Wemo Mini IS a wemo type switch: Wemo.DEVICE_TYPE.Switch

But that still leaves me with having to specify a specific IP for the wemo... so no wemo.discover

@philpownall
Copy link

A follow on from last year - I've had some success with wemo.discover by periodically calling it with a heartbeat if wemo is still null - eventually it finds the Wemo Mini, and thereafter it works fine. This may also have something to do with the known WiFi issues with the wemo mini (see the wemo forums for details).

@jjfeore
Copy link

jjfeore commented Dec 3, 2019

@philpownall Any more progress or info on this since March? What sort of interval do you use for your heartbeat?

@philpownall
Copy link

I have fallen back to using wemo.load with a specific URN as mentioned above, as I continued to have periodic issues where the uPNP interface would not respond or required a reboot of the Wemo Mini. The interval I used when I was using wemo.discover was 4 minutes.

I reserved the IP address for the wemo mini on my router, and I haven't had an issue using wemo.load since.

@jjfeore
Copy link

jjfeore commented Dec 4, 2019

Sounds good. I'll give that a shot tonight. Does the Wemo Mini tend to change IPs on your router if one isn't reserved? Is 1234 just the default port?

Sorry the continuous questions, and thanks for the help. It just sounds like you've managed to experiment your way through this black box already, and any pain you can help spare would be appreciated.

@philpownall
Copy link

Yes, the wemo mini changes IP address on my D-Link router on reboot/power outage - it all depends on which device finishes powerup first, and I have many devices...
The default port is 49153 for me.
The urn I use in wemo.load is "http://10.0.0.115:49153/setup.xml"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants