Wemo not working anymore

Tags: #<Tag:0x00007efecd1d05b0> #<Tag:0x00007efecd1d0498> #<Tag:0x00007efecd1d02b8>

Hello,

I currently have a docker installation of openhab 2.5.11 and openhab 3 (not running together). In both version (I tried v3 to see if it changed), Wemo binding have stopped working. The worst is there’s no error in logs anywhere. All my Wemo bindings does absolutly nothing (doesn’t toggle switch, dimmer or plug and state isn’t the right state). When going through the wemo app, everything work.

I tried reinstalling the 2.5.0 binding, removing and putting back the bindings, nothing work. And they show as online in the interface…

Thank you!

Did you put the binding’s logging into TRACE mode before checking the logs?

There have been no recent changes ti the Wemo Binding, so we need a TRACE log and more information about your installation.
Other users confirmed there are no issues with Wemo binding and oh3. Running fine in my installation too.

Binding always made some log before, specially when it stopped the connection and all event were logged, but nothing about wemo in my logs.

How do I put them on trace already? I tried something but it doesn’t seem to work

Enter

log:set TRACE org.openhab.binding.wemo

on karaf console.

Ok, I ran it and here’s what I got

2021-01-03 15:20:53.381 [DEBUG] [ng.wemo.internal.handler.WemoHandler] - Setting up WeMo GENA subscription for 'org.openhab.binding.wemo.internal.handler.WemoHandler@5822b07b' FAILED - service.isRegistered(this) is FALSE
2021-01-03 15:20:53.381 [DEBUG] [ng.wemo.internal.handler.WemoHandler] - Setting up WeMo GENA subscription for 'org.openhab.binding.wemo.internal.handler.WemoHandler@35a867a6' FAILED - service.isRegistered(this) is FALSE
2021-01-03 15:20:53.381 [DEBUG] [ng.wemo.internal.handler.WemoHandler] - Setting up WeMo GENA subscription for 'org.openhab.binding.wemo.internal.handler.WemoHandler@30290be3' FAILED - service.isRegistered(this) is FALSE
2021-01-03 15:20:53.385 [DEBUG] [ng.wemo.internal.handler.WemoHandler] - WeMo UPnP device Lightswitch-1_0-221742K1300E8F not yet registered
2021-01-03 15:20:53.386 [DEBUG] [ng.wemo.internal.handler.WemoHandler] - Setting up WeMo GENA subscription for 'org.openhab.binding.wemo.internal.handler.WemoHandler@69707217' FAILED - service.isRegistered(this) is FALSE
2021-01-03 15:20:53.450 [DEBUG] [ng.wemo.internal.handler.WemoHandler] - WeMo UPnP device Lightswitch-1_0-221742K13002E5 not yet registered
2021-01-03 15:20:53.451 [DEBUG] [ng.wemo.internal.handler.WemoHandler] - Setting up WeMo GENA subscription for 'org.openhab.binding.wemo.internal.handler.WemoHandler@3f4f030d' FAILED - service.isRegistered(this) is FALSE
2021-01-03 15:20:53.465 [DEBUG] [ng.wemo.internal.handler.WemoHandler] - WeMo UPnP device Socket-1_0-221630K010119E not yet registered
2021-01-03 15:20:53.465 [DEBUG] [ng.wemo.internal.handler.WemoHandler] - Setting up WeMo GENA subscription for 'org.openhab.binding.wemo.internal.handler.WemoHandler@241d36e' FAILED - service.isRegistered(this) is FALSE
2021-01-03 15:20:53.479 [DEBUG] [ng.wemo.internal.handler.WemoHandler] - WeMo UPnP device Lightswitch-1_0-221801K1300AEE not yet registered
2021-01-03 15:20:53.479 [DEBUG] [ng.wemo.internal.handler.WemoHandler] - WeMo UPnP device Lightswitch-1_0-221813K13000C6 not yet registered
2021-01-03 15:20:53.480 [DEBUG] [ng.wemo.internal.handler.WemoHandler] - Setting up WeMo GENA subscription for 'org.openhab.binding.wemo.internal.handler.WemoHandler@50c46efe' FAILED - service.isRegistered(this) is FALSE
2021-01-03 15:20:53.480 [DEBUG] [ng.wemo.internal.handler.WemoHandler] - Setting up WeMo GENA subscription for 'org.openhab.binding.wemo.internal.handler.WemoHandler@1141228a' FAILED - service.isRegistered(this) is FALSE
2021-01-03 15:20:53.496 [DEBUG] [ng.wemo.internal.handler.WemoHandler] - WeMo UPnP device Lightswitch-1_0-221742K1300D57 not yet registered
2021-01-03 15:20:53.496 [DEBUG] [ng.wemo.internal.handler.WemoHandler] - Setting up WeMo GENA subscription for 'org.openhab.binding.wemo.internal.handler.WemoHandler@2259bb4e' FAILED - service.isRegistered(this) is FALSE

You have an UPnP issue.
What‘s your java version when you enter
Java -v ?
Is your docker container configured to host?

funny thing is it was working about 2 weeks ago, and nothing changed.

java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)

But this is the java in my gentoo, unless I’m wrong, shouldn’t affect what’s in the docker?
In the docker container, it’s:

openjdk version "1.8.0_275"
OpenJDK Runtime Environment (Zulu 8.50.0.51-CA-linux64) (build 1.8.0_275-b01)
OpenJDK 64-Bit Server VM (Zulu 8.50.0.51-CA-linux64) (build 25.275-b01, mixed mode)

On 2.5.11 docker version.

As for the 2nd question, I’m unsure what that mean “configured to host”

edit: could it be my router? I just tried a small UPnp Test Program and here’s the result

TEST 1 - Operating System Support - PASSED
TEST 2 - SSDP Service Running Check - FAILED
TEST 3 - SSDP Service Automatic Check - FAILED
TEST 4 - UPnPHost Service Running Check - FAILED
TEST 5 - UPnPHost Service Automatic Check - FAILED
TEST 6 - UPnP Framework Firewall Exception Check - PASSED
TEST 7 - Adapter #0 - x.x.x.x - PASSED
TEST 8 - Get External IP Address (Result: x.x.x.x) - PASSED
UPnP Test Program v1.16 Copyright Mark Gillespie 2010

Hm, java looks ok.
Could you please try to send some commands to a wemo and post the according log.

2021-01-03 15:40:09.025 [DEBUG] [o.internal.handler.WemoDimmerHandler] - WeMo UPnP device Dimmer-1_0-241742K1502433 not yet registered
2021-01-03 15:40:09.025 [DEBUG] [o.internal.handler.WemoDimmerHandler] - Setting up WeMo GENA subscription for 'org.openhab.binding.wemo.internal.handler.WemoDimmerHandler@53918751' FAILED - service.isRegistered(this) is FALSE
2021-01-03 15:40:40.284 [TRACE] [ng.wemo.internal.handler.WemoHandler] - Command 'OFF' received for channel 'wemo:lightswitch:Lightswitch-1_0-221742K1300E03:state'
2021-01-03 15:40:40.285 [TRACE] [ng.wemo.internal.handler.WemoHandler] - Command 'OFF' received for channel 'wemo:lightswitch:Lightswitch-1_0-221742K13002E5:state'
2021-01-03 15:40:40.300 [TRACE] [ng.wemo.internal.handler.WemoHandler] - Command 'OFF' received for channel 'wemo:lightswitch:Lightswitch-1_0-221813K13000C6:state'
2021-01-03 15:40:40.305 [TRACE] [ng.wemo.internal.handler.WemoHandler] - Command 'OFF' received for channel 'wemo:lightswitch:Lightswitch-1_0-221746K13006AD:state'
2021-01-03 15:40:40.305 [TRACE] [o.internal.handler.WemoDimmerHandler] - Command 'OFF' received for channel 'wemo:dimmer:Dimmer-1_0-241742K1502433:brightness'
2021-01-03 15:40:40.319 [TRACE] [o.internal.handler.WemoDimmerHandler] - Command 'OFF' received for channel 'wemo:dimmer:Dimmer-1_0-241742K1502433:brightness'
2021-01-03 15:40:40.322 [TRACE] [ng.wemo.internal.handler.WemoHandler] - Command 'OFF' received for channel 'wemo:lightswitch:Lightswitch-1_0-221742K1300F07:state'
2021-01-03 15:40:40.328 [TRACE] [ng.wemo.internal.handler.WemoHandler] - Command 'OFF' received for channel 'wemo:lightswitch:Lightswitch-1_0-221801K1300AEE:state'

Strange, the binding seems not call the device at all. I have no clue atm.
Could you please post your item definition.

Sure

wemo.items
//Groups
Group wemo
Group:Switch:OR(ON, OFF) wemo_lumiere “Wemo lumières” (wemo, lumieres)
Group:Switch:OR(ON, OFF) wemo_sockets “Wemo sockets” (wemo)
Group:Switch:OR(ON, OFF) wemo_lumiere_exterieur “Wemo lumières extérieurs” (wemo_lumiere, lumieres_exterieurs)
Group:Switch:OR(ON, OFF) wemo_lumiere_interieur “Wemo lumières intérieurs” (wemo_lumiere, lumieres_interieurs)
Group:Switch:OR(ON, OFF) wemo_lumiere_interieur_etage “Wemo lumières intérieurs étage” (wemo_lumiere_interieur)
Group:Switch:OR(ON, OFF) wemo_lumiere_interieur_ss “Wemo lumières intérieurs sous-sol” (wemo_lumiere_interieur)
Group WEMO_SETTINGS “Wemo settings” (wemo)

// Variables
Number OutdoorLightSleepTime "Outdoor Light Sleep time [%d min]" (WEMO_SETTINGS)
Number MarcheLightSleepTime "Marche Light Sleep time [%d min]" (WEMO_SETTINGS)
Switch CloseOutdoorLight "Fermer auto lumières ext"  (WEMO_SETTINGS)

// Switch Lumière
Switch wemo_LightSwitchSS		        "Sous-sol" 			<light> 		(wemo_lumiere_interieur_ss)     	{ channel="wemo:lightswitch:Lightswitch-1_0-221742K1300F07:state",ga="Light" }
Switch wemo_LightSwitchBureau	        "Bureau" 			<light> 		(wemo_lumiere_interieur_ss)     	{ channel="wemo:lightswitch:Lightswitch-1_0-221801K1300AEE:state",ga="Light" }
Switch wemo_LightSwitchDA		        "Dehors Arrière" 	<light> 		(wemo_lumiere_exterieur)        	{ channel="wemo:lightswitch:Lightswitch-1_0-221742K1300E8F:state",ga="Light" }
Switch wemo_LightSwitchMarche	        "Marche"		 	<light> 		(wemo_lumiere_interieur_etage)       	{ channel="wemo:lightswitch:Lightswitch-1_0-221742K1300E03:state",ga="Light" }
Switch wemo_LightSwitchEntree	        "Entrée"		 	<light> 		(wemo_lumiere_interieur_etage)    	{ channel="wemo:lightswitch:Lightswitch-1_0-221742K13002E5:state",ga="Light" }
Switch wemo_LightSwitchDAv		        "Dehors Entrée"	 	<light> 		(wemo_lumiere_exterieur)          	{ channel="wemo:lightswitch:Lightswitch-1_0-221742K1300D57:state",ga="Light" }
Switch wemo_LightSwitchCuisineLavabo	"Lavabo" 	<light> 		(wemo_lumiere_interieur_etage)    	{ channel="wemo:lightswitch:Lightswitch-1_0-221813K13000C6:state",ga="Light" }
Switch wemo_LightSwitchPassage          "Passage"           <light>         (wemo_lumiere_interieur_etage)    	{ channel="wemo:lightswitch:Lightswitch-1_0-221746K13006AD:state",ga="Light"}
//Switch wemo_DimmerSwitchCuisine         "Cuisine"           <light>         (wemo_lumiere_interieur_etage)    	{ channel="wemo:dimmer:Dimmer-1_0-241742K1502433:state"} //fonctionne pas
Switch wemo_DimmerCuisineSwitch         "Cuisine"           <light>         (wemo_lumiere_interieur_etage)    	{ channel="wemo:dimmer:Dimmer-1_0-241742K1502433:brightness"}
Dimmer wemo_DimmerCuisine               "Dimmer Cuisine"    <slider>        (wemo_lumiere_interieur_etage)     	{ channel="wemo:dimmer:Dimmer-1_0-241742K1502433:brightness",ga="Light"}


// Prise de courant
Switch wemo_Socket						"Switch" 			<poweroutlet> 	(wemo_sockets) 	{ channel="wemo:socket:Socket-1_0-221630K010119E:state",ga="Outlet" }

// Settings
//Switch wemo_SocketSalonIsLight "Socket Salon est une lumière" <switch> 	(WEMO_SETTINGS)	
Switch wemo_TimerLightMarche		"Activer timer de marche" <switch>  (WEMO_SETTINGS)

Switch wemo_MaisonExtSun		"Allumer/Éteint avec le soleil"	<light>	(WEMO_SETTINGS)

Switch wemo_SalonSun		"Allumer/Éteint avec le soleil"	<light>	(WEMO_SETTINGS)

All things created through paperui

Edit: I just tried deleting the switch thing and see if it will discovery, so far not found :frowning:

for added debuging, I updated my whole system (docker included), didn’t fix. I also clear cache and tmp of openhab, still same issue and still unable to discover the wemo switch I removed

If discovery is not working, you have a strong UPnP issue in your system or your network.
This is not directly related to the Wemo binding but affecting it.

I just installed a fresh openhab3 installation on another computer and it’s discovery perfectly the wemos thus network wise it’s good. I’ll try to start from scratch in the docker too to see. I don’t get what I’m suppose to add for upnp to work

Set docker network mode to host?
I don‘t use docker, so just a guess.

yup already on host. I though it was bridge but just checked

There’s something either with docker or the machine. I’ll try to see to install natively from source openhab on my gentoo to see. Just tried with a fresh openhab3 install in docker and still no wemos, thus everything point to that machine. Funny, I switch to linux and docker thinking it would be simpler and more stable but for the past 2 years, my windows installation was better. Must be me XD

ok, so I installed zulu jdk 11 and a fresh install of openhab 3 directly on my gentoo installation. Same result, no wemo detected. Thus it seems something doesn’t work on the upnp side of the gentoo install. That sucks because until yesterday, the gentoo installation was the same for the past 6 months…

me again. I installed upnpc client to see if I can manually make a upnp discovery and port map. Turns out I discover the router no problem and can send a port map request without any problem.