peterbuga / HASS-sonoff-ewelink

Home Assistant component to control Sonoff/eWeLink devices with original firmware
MIT License
792 stars 296 forks source link

First setup issues #250

Open kall3 opened 3 years ago

kall3 commented 3 years ago

Hi,

I've setup a headless RPi 3B+ with hassio. I am not getting this working... What I've done is the following:

Changes made according to specifications in configuration.yaml aswell as copied the *.py files to .homeassistant/custom_components/sonoff/

First issue log

Logginformation (ERROR) Logger: homeassistant.setup Source: setup.py:127 First occurred: 13:26:17 (8 occurrences) Last logged: 13:26:17

Setup failed for entity_prefix: Integration not found. Setup failed for username: Integration not found. Setup failed for grace_period: Integration not found. Setup failed for sonoff: Integration not found. Setup failed for debug: Integration not found.

Second issue log

Logginformation (ERROR) Logger: homeassistant.loader Source: custom_components/sonoff/init.py:28 First occurred: 13:26:17 (1 occurrences) Last logged: 13:26:17

Error loading custom_components.sonoff. Make sure all dependencies are installed Traceback (most recent call last): File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/loader.py", line 436, in _load_file module = importlib.import_module(path) File "/usr/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "/home/homeassistant/.homeassistant/custom_components/sonoff/init.py", line 28, in import websocket ModuleNotFoundError: No module named 'websocket'

Any ideas?

IacopoOrtis commented 3 years ago

If you used virtual environment: 1) enter virtual env 2) pip3 install websocket-client OR pip install websocket-client.

And you should good to go