89jd / hass-roborock

32 stars 16 forks source link

Entity does not show #8

Open Zeppen opened 3 years ago

Zeppen commented 3 years ago

Im a bit confused.. Did ok to extract the token and so on but after installation the roborock (s6 maxv) doesn't show up as an entity as described. Whats wrong? Screenshot_20210209-003312

Jelke87 commented 3 years ago

Same here no entity show up.

Logger: homeassistant.components.vacuum
Source: custom_components/roborock/vacuum.py:146 
Integration: Stofzuigen (documentation, issues) 
First occurred: 14 maart 2021 14:17:08 (1 occurrences) 
Last logged: 14 maart 2021 14:17:08

Error while setting up roborock platform for vacuum
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 200, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/roborock/vacuum.py", line 146, in async_setup_entry
    tuya_init(js_dir)
  File "/usr/local/lib/python3.8/site-packages/tuyapipc/__init__.py", line 106, in init
    Popen(['npm', 'install', 'tuyapi-ipc'], \
  File "/usr/local/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/local/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'npm
89jd commented 3 years ago

NPM needs to be installed to use.

See this forum here, lots of details on how to setup on docker, standalone etc. ->https://community.home-assistant.io/t/custom-component-roborock-communication/229032/120