Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

"wemo list" Returns Nothing #80

Closed
joshpennington opened this issue Mar 17, 2015 · 21 comments
Closed

"wemo list" Returns Nothing #80

joshpennington opened this issue Mar 17, 2015 · 21 comments

Comments

@joshpennington
Copy link

I currently have 3 WeMo devices on my network and the wemo command returns nothing. The output of my debug when I run the command:

[root@localhost .wemo]# wemo -d list
DEBUG:ouimeaux.discovery:Binding datagram server to 10.1.200.1:54321
INFO:ouimeaux.environment:Discovering devices
DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900
DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900
DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900
DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900
DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900

This is a pretty much a new install of Ouimeaux so pointing me toward any config options would be appreciated! I am running it on CentOS 7.

@joshpennington
Copy link
Author

I punched a few holes in my firewall (port 54321) and I get the following output now (still comes back with no results):

[root@localhost .wemo]# wemo -d list
DEBUG:ouimeaux.discovery:Binding datagram server to 10.1.200.1:54321
INFO:ouimeaux.environment:Discovering devices
DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.150:60723
DEBUG:ouimeaux.discovery:Received a response from 10.1.0.1:36791
DEBUG:ouimeaux.discovery:Found WeMo at 10.1.0.1:36791
INFO:ouimeaux.environment:Unrecognized device type. USN=uuid:ebf5a0a0-1dd1-11b2-a90f-0050f1800000::upnp:rootdevice
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.208:4965
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.20:36185
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.19:47425
DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.150:64830
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.2.2:52367
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.0.1:43251
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.2.2:52370
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.34:1900
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.208:4966
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.19:44854
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.20:43794
DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.150:60716
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.2.2:52373
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.0.1:41853
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.208:4967
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.20:38779
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.19:55851
DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.150:54983
DEBUG:ouimeaux.discovery:Received a response from 10.1.0.1:37896
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.19:59754
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.208:4968
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.20:51985
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.34:1900
DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.150:49802
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.2.2:52376
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.0.1:58660
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.20:34506
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.19:38866
DEBUG:ouimeaux.discovery:Received a response from 10.1.2.2:52379
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.208:4969
[root@localhost .wemo]#

@fritz-fritz
Copy link
Contributor

what wemo devices are you using? This shows it found one wemo device but could not classify it...

@joshpennington
Copy link
Author

My network has 3 WeMo devices. 2 of the regular switches and 1 insight switch.

I'll attach the setup.xml files for the regular switches.

Here is the setup.xml of one of the regular switches:




  
    1
    0
  
  
urn:Belkin:device:controllee:1
WeMo Switch 1
    Belkin International Inc.
    http://www.belkin.com
    Belkin Plugin Socket 1.0
    Socket
    1.0
    http://www.belkin.com/plugin/
221228K01002E4
uuid:Socket-1_0-221228K01002E4
    123456789
08863B7049E8
WeMo_WW_2.00.8326.PVT-OWRT-SNS
0|49153
0
     
       
        jpg 
        100 
        100 
        100 
         icon.jpg 
       
    
    
      
        urn:Belkin:service:WiFiSetup:1
        urn:Belkin:serviceId:WiFiSetup1
        /upnp/control/WiFiSetup1
        /upnp/event/WiFiSetup1
        /setupservice.xml
      
      
        urn:Belkin:service:timesync:1
        urn:Belkin:serviceId:timesync1
        /upnp/control/timesync1
        /upnp/event/timesync1
        /timesyncservice.xml
      
      
        urn:Belkin:service:basicevent:1
        urn:Belkin:serviceId:basicevent1
        /upnp/control/basicevent1
        /upnp/event/basicevent1
        /eventservice.xml
      
      
        urn:Belkin:service:deviceevent:1
        urn:Belkin:serviceId:deviceevent1
        /upnp/control/deviceevent1
        /upnp/event/deviceevent1
        /deviceservice.xml
            
      
        urn:Belkin:service:crockpotevent:1
        urn:Belkin:serviceId:crockpotevent1
        /upnp/control/crockpot1
        /upnp/event/crockpot1
        /jardenservice.xml
          
    
        urn:Belkin:service:jardenevent:1
        urn:Belkin:serviceId:jardenevent1
        /upnp/control/jardenevent1
        /upnp/event/jardenevent1
        /jardenservice.xml
      
      
        urn:Belkin:service:firmwareupdate:1
        urn:Belkin:serviceId:firmwareupdate1
        /upnp/control/firmwareupdate1
        /upnp/event/firmwareupdate1
        /firmwareupdate.xml
      
      
        urn:Belkin:service:rules:1
        urn:Belkin:serviceId:rules1
        /upnp/control/rules1
        /upnp/event/rules1
        /rulesservice.xml
      
      
      
        urn:Belkin:service:metainfo:1
        urn:Belkin:serviceId:metainfo1
        /upnp/control/metainfo1
        /upnp/event/metainfo1
        /metainfoservice.xml
      
      
        urn:Belkin:service:remoteaccess:1
        urn:Belkin:serviceId:remoteaccess1
        /upnp/control/remoteaccess1
        /upnp/event/remoteaccess1
        /remoteaccess.xml
      
       
      
        urn:Belkin:service:deviceinfo:1
        urn:Belkin:serviceId:deviceinfo1
        /upnp/control/deviceinfo1
        /upnp/event/deviceinfo1
        /deviceinfoservice.xml
      
       
      
        urn:Belkin:service:smartsetup:1
        urn:Belkin:serviceId:smartsetup1
        /upnp/control/smartsetup1
        /upnp/event/smartsetup1
        /smartsetup.xml
      
    
      
        urn:Belkin:service:manufacture:1
        urn:Belkin:serviceId:manufacture1
        /upnp/control/manufacture1
        /upnp/event/manufacture1
        /manufacture.xml
      
    
   /pluginpres.html



@joshpennington
Copy link
Author

Sorry about the comment above. I cannot seem to be able to get it to display the XML properly. You can download the file from http://ocaff.com/switch1.xml

@fritz-fritz
Copy link
Contributor

hmm... not really sure what went wrong. I did notice however that the switch for which you gave the xml was on firmware version 2.0 which wasn't supported until a couple hours ago. Perhaps git pull the latest version and try again?

I don't see why the devices wouldn't be recognized though... could there be a firewall interfering?

@joshpennington
Copy link
Author

I pulled down the latest source and that didn't change anything.

I disabled by firewall on CentOS and that did not do anything

[root@localhost ouimeaux]# service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
[root@localhost ouimeaux]# service iptables stop
Redirecting to /bin/systemctl stop iptables.service
[root@localhost ouimeaux]# wemo list
[root@localhost ouimeaux]# service iptables status
Redirecting to /bin/systemctl status iptables.service
iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled)
Active: inactive (dead)

Mar 19 06:55:08 localhost.localdomain systemd[1]: Stopped IPv4 firewall with ...
Hint: Some lines were ellipsized, use -l to show in full.

Here is the debug from getting the list:

DEBUG:ouimeaux.discovery:Binding datagram server to 10.1.200.1:54321
INFO:ouimeaux.environment:Discovering devices
DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.153:52232
DEBUG:ouimeaux.discovery:Received a response from 10.1.200.2:65273
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.0.1:53164
DEBUG:ouimeaux.discovery:Found WeMo at 10.1.0.1:53164
INFO:ouimeaux.environment:Unrecognized device type. USN=uuid:ebf5a0a0-1dd1-11b2-a90f-0050f1800000::upnp:rootdevice
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.20:58093
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.208:4074
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.34:1900
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.19:33113
DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.153:60187
DEBUG:ouimeaux.discovery:Received a response from 10.1.200.2:65276
DEBUG:ouimeaux.discovery:Received a response from 10.1.0.1:60681
DEBUG:ouimeaux.discovery:Received a response from 10.1.200.2:65279
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.20:34849
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.208:4075
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.19:33438
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.34:1900
DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.153:58920
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.200.2:65282
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.34:1900
DEBUG:ouimeaux.discovery:Received a response from 10.1.0.1:47398
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.19:42322
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.200.2:65285
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.20:51189
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.208:4077
DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.153:60875
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.0.1:59882
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.200.2:65291
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.208:4079
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.20:44306
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.19:55703
DEBUG:ouimeaux.discovery:Broadcasting M-SEARCH to 239.255.255.250:1900
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.153:56667
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.200.2:65294
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.255.254:44117
DEBUG:ouimeaux.discovery:Received a response from 10.1.0.1:39455
DEBUG:ouimeaux.discovery:Received a response from 10.1.200.2:65298
DEBUG:ouimeaux.discovery:Received a response from 10.1.200.2:65299
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.34:1900
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.19:38884
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.208:4080
DEBUG:ouimeaux.discovery:Received a response from 10.1.1.20:33437

Some things to note here. The device that it found at 10.1.0.1:53164. That device is my router, not a WeMo.

I also noticed this morning that in the debug it is not listing any IP addresses of my actual WeMo devices. This morning I have 2 of them on my network and their IP addresses are 10.1.1.150 and 10.1.1.151.

Could the issue be that I am running a /16 network and that there are too many possible IP addresses to find?

@fritz-fritz
Copy link
Contributor

It may be possible the list command is timing out without getting a response due to such a large network? I would think it would still work but why don't you try running wemo -d -t 120 server and see if it picks them up with a 2 minute discovery?

@joshpennington
Copy link
Author

A 2 minute discovery didn't pick anything up. I will try a 10 minute one to see if that yields anything different.

@joshpennington
Copy link
Author

The 10 minute crawl didn't pick anything up either.

@fritz-fritz
Copy link
Contributor

FWIK we are sending out a multicast packet to the router to elicit a response from all UPnP devices on the network. All UPnP devices are required to send their response to the sender of the multicast packet.

UPnP seems to be enabled on the router as you are receiving responses. Do you have multiple routers in the environment? This is sometimes a headache for UPnP from a quick google.

@fritz-fritz
Copy link
Contributor

I also notice you are running ouimeaux on an ip of 10.1.200.1 while your devices are on 10.1.1.X. Maybe your wemo devices don't support your Subnet Mask? Maybe try setting their IPs or your servers IP to be within the same /24 subnet? I don't think it is a problem with UPnP in general to be used across a /16 subnet but maybe the Belkin implementation is causing them not to respond?

@joshpennington
Copy link
Author

That would not surprise me much. I've noticed that Belkin struggles on the software end of things (hence the reason I feel the need to control these things on my own).

Off topic question (and if this belongs in another topic, let me know).

Is it possible to use ouemeaux using just the IP address of the device? I have my devices setup to use a reserved IP address on my router so I can easily locate them on my network.

@fritz-fritz
Copy link
Contributor

Essentially that is what ouimeaux is doing. The devices are UPnP devices which means that they most be communicated with using SOAP. There is not a REST API builtin. Unfortunately your devices are not responding to a UPnP discovery request which is a problem. You may be able to re-use the code and hardcode the IPs but you still need to communicate with SOAP on the correct ports (which change) and so it's not as simple as pointing your web browser at them.

I would suggest trying the set your DHCP reservations to be on 10.1.200.X first to see if that resolves the problem.

@joshpennington
Copy link
Author

Just want to let you know I'm not falling off the wagon. I tried getting the IP address closer and that did not help.

I changed my network from a /16 to a /24 network in hopes that a smaller network would help move things along. Doing that so far has caused my WeMo's to not respond to the app at all. I think I will have to readd them to the app (after waiting for the DHCP leases to expire).

@fritz-fritz
Copy link
Contributor

Maybe try resetting the firmware from the switches themselves and re-pair them to your network? I'm kind of lost for reasons why it's not working at this point!

@joshpennington
Copy link
Author

I think I want to chalk it up to Belkin at this point. These things have been so temperamental ever since I got them.

Right now my router can see that they are connected and I am able to ping them, but the WeMo app cannot see them (and neither can Ouimeaux).

I think that whatever Belkin did with the last software update, they messed up the outlet's ability to respond to a UPnP message.

@joshpennington
Copy link
Author

I just noticed that Ouimeaux can see the Roku devices on my network, but not my outlets.

I am going to unplug all the devices, let them sit for awhile and then try to add again. That worked once.

@fritz-fritz
Copy link
Contributor

Maybe it was a botched firmware update and the app had the devices cached and then once you changed their IPs it couldn't find them again? Either way I'd recommend holding the reset button on the switches themselves to re-initialize them and then go through the setup process with the app.

@elijahchancey
Copy link

Since you've got two different subnets is it possible that some of your devices are behind a comcast/dsl router and some of your other devices are behind a wifi router/switch? Maybe consolidating everything onto the same subnet will fix the issue.

@pjessesco
Copy link

Hi @joshpennington, did you solve this issue?

@joshpennington
Copy link
Author

The problem was with my Comcast modem / router. I put a new router in front of it and had my modem / router put into gateway mode and that worked better.

The router I used was a pfSense router that I built.

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

No branches or pull requests

4 participants