[SOLVED] WeMo Reliability

Tags: #<Tag:0x00007f18760bb7c0> #<Tag:0x00007f18760bb6f8> #<Tag:0x00007f18760bb5e0>

I’m curious if anyone is having issues with WeMo devices, and the reliability of controlling those devices. I’m having very frequent issues, and it’s getting annoying.

I get a constant onslaugt of these, sometimes it’s for one or two devices, other times it’s for all of them (15 devices):

2017-12-12 18:33:52.603 [ERROR] [ome.binding.wemo.handler.WemoHandler] - Failed to get actual state for device 'wemo:lightswitch:GreatRoomFanMotor': Could not call WeMo

Those are innocuous in terms of my openHAB control features, but these are problematic:

2017-12-12 16:45:00.110 [ERROR] [ome.binding.wemo.handler.WemoHandler] - Failed to send command 'ON' for device 'wemo:socket:FrontWindowLedgeOutlet': Could not call WeMo

My WiFi access points are logging no errors and are stable. I also have had no errors controlling things with the WeMo app from my phone. If I reboot openHAB (running openHABian 2), it seems to be OK for a day or two, then goes downhill.

Has anyone else seen similar behaviors? Even if I’m hitting a wall with the Raspberry Pi 3, that’s fine…I’ll go build an Intel NUC, but I’d like to know it will solve the problem.

Thanks all!

1 Like

Hi Brian,
you are not alone seeing this stragen behaviour with WeMo devices, and unfortunately, there is nothing we can do about it.
Even if you face no errors with the WeMo app on your phone, you are on the lucky side, as I also see unresponsive devices there.

To explain the two errors you reported :
Due to the bad UPnP implementation in WeMo firmware, my binding sends SOAP messages to the devices, either to retreive their current state or to send controll information (ON/OFF).
WeMo devices should respond to theses messages, but sometimes they don’t, that’s when you see those errors logged.

Moving openHAB to a Intel NUC will definitely not solve your issues, my installation is running on a NUC.

Best
Hans-Jörg

Thanks Hans-Jörg.

I’m just starting to dig into WeMo programming, so this may be a stupid question, but can you avoid uPnP and target an individual switch by IP?

I’ve got a sizeable investment in WeMo, and the problem appears to get worse the more I get. I’d hate to have to sell them all off and switch to something else like ZWave due to time and cost.

Thanks!

UPnP is used only for discovery and receiving state updates from devices. Polling and command handling is implemented as regular HTTP SOAP calls.

Speaking from my own experience the WeMo Mr. Coffee Pot has been rock solid since @hmerk added support for it in the binding.

I do not see the errors that you mentioned in my logs…

Status is immediately reflected upon change…is there something special in the way the coffee pot communicates?

Squid

Thanks for your feedback, Squid.
From coding perspective, I don’t see any difference, using the same communication for all devices in the binding.

Interesting discovery. After my last reboot, I changed my rules to have a thread sleep of 1 second between WeMo commanda. It’s been two days, and no issues of not being able to control a device. Usually I’d have several fails by now.

I’ll keep you posted.

Hi,
same problem here. I don’t use original Wemo devices, but Tasmota-flashed switches with Wemo compatibility. After some days, they don’t react to openHAB (UI and rules) anymore. Alexa is still able to switch them (directly, not via openHAB). Any suggestions?

Thanks,
jens

Please post your TRACE log.

sure, tried to switch it on at 13:04:55.
I have several WeMo-compatible devices.

Thanks for your help,
jens

2018-12-18 13:00:55.224 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K00577DF2 not yet registered
2018-12-18 13:00:55.225 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@7a1818’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:00:55.231 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K00314DE2 not yet registered
2018-12-18 13:00:55.232 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@14576f3’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:00:55.233 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K005230C8 not yet registered
2018-12-18 13:00:55.234 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@17e80e7’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:00:57.681 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K0058556A not yet registered
2018-12-18 13:00:57.682 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@154aa27’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:00:57.686 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K00343089 not yet registered
2018-12-18 13:00:57.687 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@18ae496’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:02:55.227 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K00577DF2 not yet registered
2018-12-18 13:02:55.228 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@7a1818’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:02:55.234 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K00314DE2 not yet registered
2018-12-18 13:02:55.235 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@14576f3’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:02:55.236 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K005230C8 not yet registered
2018-12-18 13:02:55.237 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@17e80e7’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:02:57.690 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K00343089 not yet registered
2018-12-18 13:02:57.691 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@18ae496’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:02:57.694 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K0058556A not yet registered
2018-12-18 13:02:57.695 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@154aa27’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:04:55.179 [TRACE] [ome.binding.wemo.handler.WemoHandler] - Command ‘ON’ received for channel ‘wemo:socket:Socket-1_0-201612K005230C8:state’
2018-12-18 13:04:55.231 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K00577DF2 not yet registered
2018-12-18 13:04:55.237 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K00314DE2 not yet registered
2018-12-18 13:04:55.242 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@14576f3’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:04:55.243 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K005230C8 not yet registered
2018-12-18 13:04:55.243 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@17e80e7’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:04:55.232 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@7a1818’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:04:57.692 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K00343089 not yet registered
2018-12-18 13:04:57.692 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@18ae496’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:04:57.697 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K0058556A not yet registered
2018-12-18 13:04:57.698 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@154aa27’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:06:55.244 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K00314DE2 not yet registered
2018-12-18 13:06:55.246 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K005230C8 not yet registered
2018-12-18 13:06:55.247 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@17e80e7’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:06:55.248 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K00577DF2 not yet registered
2018-12-18 13:06:55.250 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@7a1818’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:06:55.250 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@14576f3’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:06:57.694 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K00343089 not yet registered
2018-12-18 13:06:57.695 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@18ae496’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:06:57.700 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K0058556A not yet registered
2018-12-18 13:06:57.701 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@154aa27’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:08:55.249 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K005230C8 not yet registered
2018-12-18 13:08:55.250 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@17e80e7’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:08:55.251 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K00577DF2 not yet registered
2018-12-18 13:08:55.252 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K00314DE2 not yet registered
2018-12-18 13:08:55.253 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@14576f3’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:08:55.253 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@7a1818’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:08:57.697 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K00343089 not yet registered
2018-12-18 13:08:57.698 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for ‘org.eclipse.smarthome.binding.wemo.handler.WemoHandler@18ae496’ FAILED - service.isRegistered(this) is FALSE
2018-12-18 13:08:57.704 [DEBUG] [ome.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-201612K0058556A not yet registered

I see. Your issue is that the devices don’t register completely at UPnP, that’s why the GENA events are not registered. This seems to be a general UPnP issue within your network.
I just readded another WeMo Insight Switch, using openHAB 2.4M6 and ist is working flawless.

I have a couple reliability issues as well.

My new Mini Socket Switch (first one i have, my other wemo devices are all the older kind).

During bundle restart I see this:

11:47:54.768 [DEBUG] [org.eclipse.smarthome.binding.wemo   ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.upnp.UpnpDiscoveryParticipant}={service.id=365
, service.bundleid=196, service.scope=bundle, component.name=org.eclipse.smarthome.binding.wemo.internal.discovery.WemoDiscoveryParticipant, component.id=241} - org.eclipse.sm
arthome.binding.wemo                                                                                                                                                           
11:47:54.780 [DEBUG] [org.eclipse.smarthome.binding.wemo   ] - BundleEvent STARTED - org.eclipse.smarthome.binding.wemo                                                        
11:47:54.788 [DEBUG] [ding.wemo.internal.WemoHandlerFactory] - Trying to create a handler for ThingType 'wemo:socket                                                           
11:47:54.797 [DEBUG] [ding.wemo.internal.WemoHandlerFactory] - Creating a WemoHandler for thing 'wemo:socket:Socket-1_0-221834K010A8D9' with UDN 'Socket-1_0-221834K010A8D9'   
11:47:54.805 [DEBUG] [home.binding.wemo.handler.WemoHandler] - Creating a WemoHandler for thing 'wemo:socket:Socket-1_0-221834K010A8D9'                                        
11:47:54.833 [DEBUG] [home.binding.wemo.handler.WemoHandler] - Initializing WemoHandler for UDN 'Socket-1_0-221834K010A8D9'                                                    
11:47:54.841 [DEBUG] [home.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for 'org.eclipse.smarthome.binding.wemo.handler.WemoHandler@c14ece' FAILED - s
ervice.isRegistered(this) is FALSE                                                                                                                                             
11:47:54.849 [DEBUG] [home.binding.wemo.handler.WemoHandler] - WeMo UPnP device Socket-1_0-221834K010A8D9 not yet registered                                                   
11:47:54.855 [DEBUG] [home.binding.wemo.handler.WemoHandler] - Setting up WeMo GENA subscription for 'org.eclipse.smarthome.binding.wemo.handler.WemoHandler@c14ece' FAILED - s
ervice.isRegistered(this) is FALSE                                                                                                                                             
11:47:54.853 [DEBUG] [ding.wemo.internal.WemoHandlerFactory] - Trying to create a handler for ThingType 'wemo:socket                                                           
11:47:54.867 [TRACE] [home.binding.wemo.handler.WemoHandler] - Command 'REFRESH' received for channel 'wemo:socket:Socket-1_0-221834K010A8D9:state'

I also have older LightSwitches and they tend to go offline regularly with this error:

11:59:08.537 [TRACE] [home.binding.wemo.handler.WemoHandler] - Command 'ON' received for channel 'wemo:lightswitch:Lightswitch-1_0-221333K130014B:state'                       
11:59:08.557 [DEBUG] [nding.wemo.internal.http.WemoHttpCall] - Could not make HTTP call to WeMo                                                                                
11:59:11.607 [TRACE] [home.binding.wemo.handler.WemoHandler] - Command 'OFF' received for channel 'wemo:lightswitch:Lightswitch-1_0-221333K130014B:state'                      
11:59:11.634 [DEBUG] [nding.wemo.internal.http.WemoHttpCall] - Could not make HTTP call to WeMo

I have uPNP disabled on my router, since I do not want anyone automatically opening ports to the outside world. Is this needed to be enabled to get this reliable?

Do we need to have static IPs to help with reliability?

Does OH 2.4 help? I am running 2.3.

Thank you for any insight. Great work.

There are no big changes in the WeMo Binding, so you could stay with openHAB 2.3.
And Yes, you need UPnP to be enabled, as the Binding uses the GENA event system. No static IPs needed.
The issue you reported with devices can not be called might be related to an ugly behaviour they show. From time to time the WeMos seem to change their responding port without sending a notify. I try to find a solution by triggering a new discocery when this occurs. Just need to find time to implement it.

Could you explain why I need to enable uPnP on my router? This is used for applications/devices to request port forwarding automatically, and I fail to see why this is needed for my raspberry pi and my wemo devices which are all on my same internal network.

Perhaps there is something else that my router will do when uPNP is enabled? Like re-broadcast?

of my 9 lights, currently 7 are working, without uPNP working. I will “reboot” my one light switch and that should fix it again for a while. My new mini-plug is the one with the odd FAILED messages above. Not sure what is going on with that one.

Thank you for your quick reply.

I don‘t know your router, so I cannot really comment on this.
Some routers block UPnP specific packets if you sisable it, even it is just meant to control your router.
What firmware versions are your WeMo devices running?

3 LightSwitches at 2.00.11057.
3 Older Plugs at 2.00.11057.
1 Mini Plug at 2.00.11143.

I have tried now changing my main router to 20Ghz on 2.4 range as I heard that can help with Wemo devices staying solid.

Hmm, I can see that the Miniplug uses a different firmware version than the other devices. So it might be that those act different than the other WeMo devices. Unfortunately, Miniplugs are not available in Germany, so I cannot test and debug.

Anything you would like to me run (ie. test cases and trace file collection) I can try to help.

Thank you.

I will think about it…

Hi,

but it works for 1-2 days after openHAB reboot. But you still think, it’s a network problem? Router settings (uPnP)? Or Tasmota firmware?

Thanks,
jens