Wemo binding

I am new to openHAB and I am trying to setup a Wemo Switch.

I have openHAB running on Windows 10.

I have a basic sitemap:

sitemap default label= “Main Menu”
Frame label=“My First Sensor”{
Switch item=sensor

I have the an items file:

Switch sensor “my first sensor” {wemo=“WeMoIN - RumpusTV”}

I am trying to build a bindings file.

The notes mention the wemo upn. It suggests getting this from the openhab.log.

2016-12-28 21:28:36.835 [INFO ] [.o.core.internal.CoreActivator] - openHAB runtime has been started (v1.7.1).
2016-12-28 21:28:37.334 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - mDNS service has been started
2016-12-28 21:28:37.431 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - Service Discovery initialization completed.
2016-12-28 21:28:38.096 [INFO ] [penhab.io.rest.RESTApplication] - Started REST API at /rest
2016-12-28 21:28:47.171 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'engimusing.sitemap’
2016-12-28 21:28:47.230 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'default.items’
2016-12-28 21:28:48.014 [INFO ] [.o.u.w.i.servlet.WebAppServlet] - Started Classic UI at /openhab.app
2016-12-28 21:28:58.973 [INFO ] [.service.AbstractActiveService] - Wemo Refresh Service has been started
2016-12-28 21:56:17.757 [ERROR] [.o.b.wemo.internal.WemoBinding] - Could not start wemo device discovery
java.net.BindException: Address already in use: Cannot bind
at java.net.TwoStacksPlainDatagramSocketImpl.bind0(Native Method) ~[na:1.8.0_111]
at java.net.TwoStacksPlainDatagramSocketImpl.bind0(Unknown Source) ~[na:1.8.0_111]
at java.net.AbstractPlainDatagramSocketImpl.bind(Unknown Source) ~[na:1.8.0_111]
at java.net.TwoStacksPlainDatagramSocketImpl.bind(Unknown Source) ~[na:1.8.0_111]
at java.net.DatagramSocket.bind(Unknown Source) ~[na:1.8.0_111]
at org.openhab.binding.wemo.internal.WemoBinding.wemoDiscovery(WemoBinding.java:179) [bundlefile:na]
at org.openhab.binding.wemo.internal.WemoBinding.wemoCall(WemoBinding.java:295) [bundlefile:na]
at org.openhab.binding.wemo.internal.WemoBinding.execute(WemoBinding.java:103) [bundlefile:na]
at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) [org.openhab.core_1.7.1.jar:na]
at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) [org.openhab.core_1.7.1.jar:na]

Don’t know where to go next?

This clearly states no issue of the WeMo Binding, but an issue of your machine running openHAB.
Another prozess/programm is using Port 1900 and prevents openHAB from using it.

Thanks hmerk

Even after your reply I don’t see the port in the error message, thanks.

I can’t find anything using that port on my PC so I will look at how to change the wemo port.


Better try openHAB 2.0 which is using UPnP for communicating with the WeMos.

I have installed OpenHab2 and set it up. I need to work out how to find the UDN for the wemo switch.

Thanks Luke

openHAB 2.0 and the ESH WeMo Binding use autodiscovery, just go to INBOX and start a scan for WeMo devices.
Don’t install the 1.9 Binding version.

From a beginner - Thank you so much.