home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.71k stars 30.45k forks source link

Harmony Platform Not Loading Anymore (With Discovery) #15293

Closed kosakoliver closed 6 years ago

kosakoliver commented 6 years ago

Home Assistant release with the issue:

0.72

Last working Home Assistant release (if known): all pre 0.70

Operating environment (Hass.io/Docker/Windows/etc.):

Hassbian in virtual environment

Component/platform:

harmony platform

Description of problem: since version 0.70 of home assistant, the harmony platform can't be loaded anymore. loading is done with the discovery component (it does not work with manual configuration as well)

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

discovery:

Traceback (if applicable):

Error while setting up platform harmony
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 129, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/lib/python3.5/asyncio/tasks.py", line 400, in wait_for
    return fut.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/remote/harmony.py", line 97, in setup_platform
    name, address, port, activity, harmony_conf_file, delay_secs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/remote/harmony.py", line 136, in __init__
    import pyharmony
  File "/srv/homeassistant/lib/python3.5/site-packages/pyharmony/__init__.py", line 5, in <module>
    from .__main__ import *
  File "/srv/homeassistant/lib/python3.5/site-packages/pyharmony/__main__.py", line 9, in <module>
    from pyharmony import client as harmony_client
  File "/srv/homeassistant/lib/python3.5/site-packages/pyharmony/client.py", line 9, in <module>
    import sleekxmpp
  File "/srv/homeassistant/lib/python3.5/site-packages/sleekxmpp/__init__.py", line 20, in <module>
    from sleekxmpp.stanza import Message, Presence, Iq
ImportError: No module named 'sleekxmpp.stanza'

Additional information:

dshokouhi commented 6 years ago

Interesting I am on 0.72.1 and my harmony hubs get detected just fine using discovery, did you try rebooting them and/or checking to make sure your harmony account doesn't have a spare hub or anything?

kosakoliver commented 6 years ago

(I now also jumped to 0.72.1) Jup, I rebooted the hub (I have only one in use) as well as my raspberry and of course home assistant. Unfortunately, nothing helped and the error is still present. All other platforms are loaded correctly. Any further Ideas?

dshokouhi commented 6 years ago

It looks like its having issues installing a required module, try to activate the virtual environment and install this module pip3 install sleekxmpp

kosakoliver commented 6 years ago

seems to be already installed, but I got another hint, occuring during install:

 pip3 install sleekxmpp
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: sleekxmpp in /srv/homeassistant/lib/python3.5/site-packages (1.3.3)
pyowm 2.8.0 has requirement requests<2.19,>=2.18.2, but you'll have requests 2.19.1 which is incompatible.

do you have a clue on this?

And by the way: thanks!

dshokouhi commented 6 years ago

Maybe double check your update steps? I wonder if something is not right.

the error you just posted is safe to ignore.

amelchio commented 6 years ago

This seems like a local issue. Did you get it fixed?

kosakoliver commented 6 years ago

Hi, sorry for being so unresponsive lately. I managed to solve my problem but Unfortunately only by starting over with a fresh installation. No idea what has been the problem. Issue can be closed. Thank you all :)