WeMo Discovery Failing

Can’t get my wemo switches to auto discover. I’m a complete noob at this so I appreciate all the help! ELI5.

Here’s the error’s I’m getting.

17-02-21 23:43:35 ERROR (MainThread) [homeassistant.bootstrap] Component wemo failed to setup
17-02-21 23:43:35 ERROR (MainThread) [homeassistant.bootstrap] Attempt made to setup wemo during setup of wemo
17-02-21 23:43:35 ERROR (MainThread) [homeassistant.bootstrap] Component wemo failed to setup
17-02-21 23:43:35 ERROR (MainThread) [homeassistant.bootstrap] Unable to prepare setup for platform switch.wemo because dependency wemo could not be initialized
17-02-21 23:43:40 WARNING (Thread-4) [homeassistant.components.zwave] zwave not ready after 30 seconds, continuing anyway
17-02-21 23:43:41 ERROR (MainThread) [homeassistant.bootstrap] Error during setup of component wemo
Traceback (most recent call last):
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/bootstrap.py”, line 152, in _async_setup_component
None, component.setup, hass, config)
File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/wemo.py”, line 81, in setup
devices = [(device.host, device) for device in pywemo.discover_devices()]
File “/home/homeassistant/.homeassistant/deps/pywemo/discovery.py”, line 28, in discover_devices
device = device_from_description(entry.location, mac)
File “/home/homeassistant/.homeassistant/deps/pywemo/discovery.py”, line 40, in device_from_description
return device_from_uuid_and_location(uuid, mac, description_url)
File “/home/homeassistant/.homeassistant/deps/pywemo/discovery.py”, line 56, in device_from_uuid_and_location
return Bridge(location, mac)
File “/home/homeassistant/.homeassistant/deps/pywemo/ouimeaux_device/bridge.py”, line 39, in init
self.bridge_update()
File “/home/homeassistant/.homeassistant/deps/pywemo/ouimeaux_device/bridge.py”, line 49, in bridge_update
endDeviceList = et.fromstring(endDevices.get(‘DeviceLists’))
File “/usr/lib/python3.4/xml/etree/ElementTree.py”, line 1326, in XML
return parser.close()
File “”, line None
xml.etree.ElementTree.ParseError: syntax error: line 1, column 0
17-02-21 23:43:41 ERROR (MainThread) [homeassistant.bootstrap] Component wemo failed to setup
17-02-21 23:43:41 ERROR (MainThread) [homeassistant.bootstrap] Unable to prepare setup for platform switch.wemo because dependency wemo could not be initialized

I’m not sure if my experiences will offer you any help but I find that after every upgrade of HASS that I need to restart 3 or 4 times before my Wemo switches come online. It has been like this for some time for me.

I did the whole manual thing and assigned all my wemo devices a static ip address using my router then added

wemo: !include wemo.yaml into the configuration.yaml

and inside wemo.yaml you just list all the address you have set static.

static:

  • 192.168.1.200
  • 192.168.1.202
  • 192.168.1.6
  • 192.168.1.204
  • 192.168.1.205

after that iv’e had 0 issues with wemo devices.

Thanks for the reply. I tried adding the ! include wemo.yaml and still getting the same error. Statics have been assigned to each light already. Still at a loss.

not sure if this helps but have you disabled discovery:?

# Discover some devices automatically
#discovery: