OpenHab 2.3 not working with Wemo

wemo
Tags: #<Tag:0x00007fd3142e2590>

(Jonathan Mabrito) #1

Installed OpenHab 2.3 on my Raspberry PI 3 and the Wemo Binding is not working it seems. I can’t discover nor control any Wemo’s. I had it working in 2.2, but its been a while and rebuilt on 2.3 recently, so can’t say for sure 2.3 is when it stopped working…or the Raspbian build. I am using Wemo Mini Sockets specifically.

Believe I have a compatible Java Version working:
openjdk version “1.8.0_152”
OpenJDK Runtime Environment (Zulu Embedded 8.25.0.76-linux-aarch32hf) (build 1.8.0_152-b76)
OpenJDK Client VM (Zulu Embedded 8.25.0.76-linux-aarch32hf) (build 25.152-b76, mixed mode, Evaluation)

Seeing these errors:

20:44:13.976 [DEBUG] [home.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-221734K010536E not yet registered
20:44:13.987 [DEBUG] [home.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@f413f8’ FAILED - service.isRegistered(this) is FALSE
20:44:14.010 [DEBUG] [home.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-221653K0101525 not yet registered
20:44:14.019 [DEBUG] [home.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@cb893e’ FAILED - service.isRegistered(this) is FALSE
20:45:08.094 [INFO ] [smarthome.event.ItemSt

The Wemo’s do work from the official Wemo app, so I know they are operational. Not sure what else to check? Happy to help and get any information that is needed!


(Vincent Regaud) #2

Did you try clearing the cache?


(Hans-Jörg Merk) #3

Please try the following
Login to openHABs KARAF console and enter
bundle:list | grep Wemo
bundle:stop [Number of Eclipse Smarthome Wemo Binding]
bundle:start [Number of Eclipse Smarthome Wemo Binding]

It could be a timing issue with JUPnP and the WeMo Binding.


(Jonathan Mabrito) #4

Hi,

@vzorglub I tried clearing the cache with no luck,

@hmerk I did what you suggested and now not seeing any errors, but nothing is still working :frowning: Nothing shows up in the karaf console logs, but the Wemo’s are not responding.

And to clarify in my original post…I did have the Wemo binding in 2.2, but since then I completely flashed and reinstalled the latest Raspbian OS (released on June 27, 2018). So this is a flesh install and nothing has been upgraded.


(Hans-Jörg Merk) #5

Could you please change your Java version to oracle and test again.


(Jonathan Mabrito) #6

@hmerk

Switched java to Oracle (I believe I did it correctly):

java -version
java version “1.8.0_171”
Java™ SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot™ Client VM (build 25.171-b11, mixed mode)

Still not seeing the Wemo’s respond. Scanning for them shows no devices found and trying to control the ones I originally had setup yield no success.

09:42:27.064 [DEBUG] [home.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-221734K010536E not yet registered
09:42:27.073 [DEBUG] [home.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@1aa6a70’ FAILED - service.isRegistered(this) is FALSE
09:42:27.104 [DEBUG] [home.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-221653K0101525 not yet registered
09:42:27.115 [DEBUG] [home.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@1e783a’ FAILED - service.isRegistered(this) is FALSE


(Hans-Jörg Merk) #7

Now I am out of ideas. I will setup a 2.3 test installation and try to reproduce this errors.