After .56 to 59 update Wemo stopped working

Couldn’t find anyone else with the issue yet, but on .56 I was having a problem with wemo switches not updating status, and I just updated to .59.0 and then .59.1 and started getting an “invalid config” error:

"the following components and platforms could not be set up:
wemo
switch.wemo

Please check your config.

So I hadn’t changed anything at all, and it passes validation. That said, there’s a number of errors in the logs:

`2017-12-05 02:33:36 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.
2017-12-05 02:33:36 WARNING (MainThread) [homeassistant.setup] Setup of device_tracker is taking over 10 seconds.
2017-12-05 02:33:36 WARNING (MainThread) [homeassistant.setup] Setup of light is taking over 10 seconds.
2017-12-05 02:33:40 WARNING (MainThread) [homeassistant.setup] Setup of wemo is taking over 10 seconds.
2017-12-05 02:33:48 ERROR (MainThread) [homeassistant.setup] Error during setup of component wemo
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py”, line 386, in _make_request
six.raise_from(e, None)
File “”, line 2, in raise_from
File “/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py”, line 382, in _make_request
httplib_response = conn.getresponse()
File “/usr/lib/python3.5/http/client.py”, line 1198, in getresponse
response.begin()
File “/usr/lib/python3.5/http/client.py”, line 297, in begin
version, status, reason = self._read_status()
File “/usr/lib/python3.5/http/client.py”, line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), “iso-8859-1”)
File “/usr/lib/python3.5/socket.py”, line 576, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/requests/adapters.py”, line 438, in send
timeout=timeout
File “/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py”, line 649, in urlopen
_stacktrace=sys.exc_info()[2])
File “/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/util/retry.py”, line 357, in increment
raise six.reraise(type(error), error, _stacktrace)
File “/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/packages/six.py”, line 686, in reraise
raise value
File “/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py”, line 600, in urlopen
chunked=chunked)
File “/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py”, line 388, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File “/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py”, line 308, in _raise_timeout
raise ReadTimeoutError(self, url, “Read timed out. (read timeout=%s)” % timeout_value)
requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host=‘192.168.1.30’, port=49153): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 194, in _async_setup_component
component.setup, hass, processed_config)
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/wemo.py”, line 89, in setup
port = pywemo.ouimeaux_device.probe_wemo(address)
File “/srv/homeassistant/lib/python3.5/site-packages/pywemo/ouimeaux_device/init.py”, line 30, in probe_wemo
timeout=10)
File “/srv/homeassistant/lib/python3.5/site-packages/requests/api.py”, line 72, in get
return request(‘get’, url, params=params, **kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/requests/api.py”, line 58, in request
return session.request(method=method, url=url, **kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/requests/sessions.py”, line 518, in request
resp = self.send(prep, **send_kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/requests/sessions.py”, line 639, in send
r = adapter.send(request, **kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/requests/adapters.py”, line 514, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host=‘192.168.1.30’, port=49153): Read timed out. (read timeout=10)
2017-12-05 02:34:09 WARNING (Thread-11) [netdisco.ssdp] Error fetching description at 192.168.1.75
2017-12-05 02:34:15 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of switch.wemo. Setup failed for dependencies: wemo
2017-12-05 02:34:15 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switch.wemo: Could not setup all dependencies.
2017-12-05 02:34:16 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of switch.wemo. Setup failed for dependencies: wemo
2017-12-05 02:34:16 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switch.wemo: Could not setup all dependencies.
2017-12-05 02:34:16 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of switch.wemo. Setup failed for dependencies: wemo
2017-12-05 02:34:16 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switch.wemo: Could not setup all dependencies.
2017-12-05 02:34:16 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of switch.wemo. Setup failed for dependencies: wemo
2017-12-05 02:34:16 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switch.wemo: Could not setup all dependencies.
2017-12-05 02:34:16 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of switch.wemo. Setup failed for dependencies: wemo
2017-12-05 02:34:16 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switch.wemo: Could not setup all dependencies.
2017-12-05 02:38:25 ERROR (Thread-24) [pychromecast.socket_client] Error reading from socket.
2017-12-05 02:38:25 WARNING (Thread-24) [pychromecast.socket_client] Error communicating with socket, resetting connection
2017-12-05 02:39:01 WARNING (Thread-24) [pychromecast.socket_client] Heartbeat timeout, resetting connection`

The IP’s are all internal not external, so I’m not bothering to go through this to censor.
THe big takeaway is that apparently there’s some dependency missing, but I have no idea what. I upgraded same way I always do with sudo pip3 install --upgrade homeassistant

Any ideas gang?

Also, I just noticed on the About page it still says this:

Home Assistant
0.54.0

Not sure why that isn’t updating. But when I run the updater it says I’m on 0.59.1

I’m having the same issue with Wemo since updating to 0.59 a couple days ago, thought, it was just me as I’m on Hassbian and upgraded to Stretch as well.

EDIT: Maybe something to do with Python?
Got the following when trying to install wemo manually=

pi@hassbian:~ $ sudo pip3 install wemo

Collecting wemo
Using cached wemo-1.0.4.tar.gz
wemo requires Python ‘~=3.6’ but the running Python is 3.5.3

Well, at least its not just me :slight_smile: I was starting to go nuts. That python version issues does seem a likely culprit

Hi,

you are trying wrong package. HA is using:

home-assistant/requirements_all.txt

# homeassistant.components.wemo
pywemo==0.4.20

So I’m not sure what’s happening, but the update indicator keeps popping up, saying I should update to .58, even though I’m on .59.1, and the about page says I’m on .54. When I run the upgrader, it says everything is up to date.

Tried that as well, still no go.

What do you get when you run the following?

$ sudo su -s /bin/bash homeassistant
$ source /srv/homeassistant/bin/activate
$ hass --version

I uninstalled pywemo and now get the following error after restarting HA.

2017-12-07 17:49:45 ERROR (MainThread) [homeassistant.setup] Error during setup of component wemo
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 387, in _make_request
    six.raise_from(e, None)
  File "<string>", line 2, in raise_from
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 383, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.5/http/client.py", line 1198, in getresponse
    response.begin()
  File "/usr/lib/python3.5/http/client.py", line 297, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.5/http/client.py", line 258, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.5/socket.py", line 576, in readinto
    return self._sock.recv_into(b)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/util/retry.py", line 357, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/packages/six.py", line 686, in reraise
    raise value
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 389, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 309, in _raise_timeout
    raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='192.168.200.123', port=49153): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 193, in _async_setup_component
    component.setup, hass, processed_config)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/wemo.py", line 89, in setup
    port = pywemo.ouimeaux_device.probe_wemo(address)
  File "/srv/homeassistant/lib/python3.5/site-packages/pywemo/ouimeaux_device/__init__.py", line 30, in probe_wemo
    timeout=10)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/adapters.py", line 521, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='192.168.200.123', port=49153): Read timed out. (read timeout=10)
2017-12-07 17:49:45 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_data=notification_id=invalid_config, title=Invalid config, message=The following components and platforms could not be set up:

 - [wemo](https://home-assistant.io/components/wemo/)

I just did a brand new fresh setup of HA .59.2 and am getting this in my error log:

Unable to prepare setup for platform switch.wemo: Could not setup all dependencies.
7:50 PM setup.py (ERROR)
Unable to setup dependencies of switch.wemo. Setup failed for dependencies: wemo
7:50 PM setup.py (ERROR)
Error during setup of component wemo
7:50 PM components/wemo.py (ERROR)

So something is definitely not right here.

Hi,

Same problem here, and I have this for several weeks now. I’m on hassbian.

 2017-12-07 12:35:07 WARNING (MainThread) [homeassistant.setup] Setup of wemo is taking over 10 seconds.
2017-12-07 12:35:13 INFO (MainThread) [homeassistant.setup] Setting up tts
2017-12-07 12:35:13 INFO (MainThread) [homeassistant.setup] Setting up conversation
2017-12-07 12:35:13 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=conversation, service=process>
2017-12-07 12:35:13 INFO (MainThread) [homeassistant.setup] Setup of domain conversation took 0.0 seconds.
2017-12-07 12:35:13 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=conversation>
2017-12-07 12:35:13 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=tts, service=google_say>
2017-12-07 12:35:13 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=tts, service=clear_cache>
2017-12-07 12:35:13 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.4 seconds.
2017-12-07 12:35:13 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=tts>
2017-12-07 12:35:15 ERROR (MainThread) [homeassistant.setup] Error during setup of component wemo
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 387, in _make_request
    six.raise_from(e, None)
  File "<string>", line 2, in raise_from
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 383, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.5/http/client.py", line 1198, in getresponse
    response.begin()
  File "/usr/lib/python3.5/http/client.py", line 297, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.5/http/client.py", line 258, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.5/socket.py", line 576, in readinto
    return self._sock.recv_into(b)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/util/retry.py", line 357, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/packages/six.py", line 686, in reraise
    raise value
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 389, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 309, in _raise_timeout
    raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='192.168.0.102', port=49153): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 193, in _async_setup_component
    component.setup, hass, processed_config)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/wemo.py", line 89, in setup
    port = pywemo.ouimeaux_device.probe_wemo(address)
  File "/srv/homeassistant/lib/python3.5/site-packages/pywemo/ouimeaux_device/__init__.py", line 30, in probe_wemo
    timeout=10)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/adapters.py", line 521, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='192.168.0.102', port=49153): Read timed out. (read timeout=10)
2017-12-07 12:35:15 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service_data=message=The following components and platforms could not be set up:

 - [wemo](https://home-assistant.io/components/wemo/)

Please check your config., title=Invalid config, notification_id=invalid_config, service=create, service_call_id=1971568336-7>
2017-12-07 12:35:16 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=persistent_notification.invalid_config, old_state=None, new_state=<state persistent_notification.invalid_config=notifying; message=The following components and platforms could not be set up:

 - [wemo](https://home-assistant.io/components/wemo/)

Please check your config., title=Invalid

Also having same issue after New install :sweat:

same here. Always worked until my upgrade…Ive also moved my ha install yesterday to a new docker install from a venv install and same issue.

Ended up switching to Hassio and its working fine on this

I guess I can’t show off my smart home over the holidays, when the family visits :grinning:

“We are proud to announce the availability of Home Assistant 0.59. To keep you in the loop: This is the second last release in 2017. We have stuck to our bi-weekly release cycle for another year but we decided that we will take a little break between Christmas and New Year.”

You can still use another sd card, put hassio on it and use the same config files from hassbian just for the holidays :wink:

Also been having this issue but it happened to coincide with the failure of my second wemo switch, so took the opportunity to switch to TP-Link HS110’s.

Yes, weighing reward for effort at the moment.

It’s a little frustrating, every time you get one issue resolved, something else breaks.

Had major issues with the Automatic ODB Module integration, when that was fixed, Lutron broke, when Luton broke, I thought that was the end for Lutron, so I started installing WeMo, now WeMo is broken, I got one of those Vision Z-Wave Dual Relay Modules setup this weekend, and that seems to be working well, I just may go all Z-Wave and hope for tge best.

Didn’t someone report issues with Hass.io as well?

After a power failure today, all my wemo came back!!! (I’m still using hassbian). So I don’t know where the problem is. I previously rebooted the raspberry pi several times with no success…

EDIT: they are all accessible on port 49153. When it didn’t work, [homeassistant.components.discovery] could find them on port 49153 or 49154

I have tried manually rebooting the switches a couple days ago and that didn’t make any difference, maybe I’ll try leaving them off for a while.

The issue is, HA finds them, but gives an error on setup, not sure what’s going on.

EDIT:
2017-12-11 11:11:38 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of switch.wemo. Setup failed for dependencies: wemo
2017-12-11 11:11:38 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switch.wemo: Could not setup all dependencies.